how to use TableClass library

mrjaw

Active Member
Licensed User
Longtime User
Hi!
I am trying to use new module TableClass to do a table when I select an option from spinner but I dont know how to put the table in the place that I want.

I dont know if I need to put first the panel or not or how to tell to the table what is their panel?

Another question:
How can I go to one specific tab. I mean when I select an option from spinner this send me to a specfic tab. Can I do that ?

How can I disable a specific tab if i cant ?

I put the example that I want. I use an example from Klaus to try to do mine but I cant


Any help will be so appreciated.

Thks
 

Attachments

  • Mytable.zip
    12 KB · Views: 168

klaus

Expert
Licensed User
Longtime User
Could you explain more in detail what exactly you want to do?
You load layout files to the Tabs, but you put the Tables on Panels.
If you need layouts in your Tabs with the Tables you should load the layout files to the Panels and add these Panels to the Tabs.
But I don't understand the logic with the Spinner in the first Tab.

Best regards.
 
Upvote 0

mrjaw

Active Member
Licensed User
Longtime User
Klaus, I'm trying to display a table when I select an option from the spinner. In the spinner I have several options which show a different table each spinner why is this in the first layout. Apparently there is a difference between a layout and a panel. I assumed that the layout can contain panels and in Delphi. All I did programming using the designer directly.
What I need to know is how to create the table at the time you want in the layout.
The command Table1.Addactivity (panel, 0%, 0%, 100%, 100%) do not understand how it behaves.
This table show SQLite data tables that are created in the application.
 
Upvote 0

mrjaw

Active Member
Licensed User
Longtime User
The idea to select an option and show me a different table with different data. What should I do in this case? Having a different panel for each table when you create it?

Sorry the english is not my native language. :(
 
Upvote 0

klaus

Expert
Licensed User
Longtime User
It depends if you want to keep the tables.
If when selecting a new option you don't need the previous one any more you should replace the table otherwise you should have different tables on panels.
I would use one table and replace its content.

Attached your code modified.

Best regards.
 

Attachments

  • Mytable1.zip
    12 KB · Views: 190
Upvote 0

mrjaw

Active Member
Licensed User
Longtime User
Really, I dont need it. I want to do just have one table and replace its contents.
That's i need....
 
Upvote 0

mrjaw

Active Member
Licensed User
Longtime User
Seeing your example I understand that there is much difference between panel and layout. I thought I could use the same space where is the spinner to show the new table. I'm a little confused about panel layout. For me, one was a screen layout as in desktop, where I could have multiple objects including panels but apparently not the same here. Apparently a panel and a layout are the same. I thought I could add objects to a layout as in desktop.
Where I can find out about differences between panel and layout.?
Sorry for inconvenience
 
Upvote 0

klaus

Expert
Licensed User
Longtime User
You need to be much more clear in your explanations on what you want or need as already asked in post #3.
I modified your program on your basis to get it working without knowing what exactly you want to do. It's not the solution I would use.
I dodn't understand either what the TabHost is for.
If you want a Spinner and a Table you should put this directly onto the Activity.
Explanations:
A Panel is an object that can contain other child objects. You can load a layout file onto it. A Panel can have other Panels as child views.
A layout file defines a set of views. You need to load it either to an Activity or a Panel.

Best regards.
 
Upvote 0

mrjaw

Active Member
Licensed User
Longtime User
Klaus, using your example I could do that I needed. Maybe my problem is that I am trying to think like a desktop programmer

Anyway your help is sooooo apreciated you could help me to stuck off.

Thks!!!
I am using tables so fine now :)
 
Upvote 0
Top