B4J Tutorial TabPane Example

tdocs2

Well-Known Member
Licensed User
Longtime User
Greetings, all.

Thank you, Erel for this example.

I want to use the Tabs as an alpha index to a TableView.

How do I control the size of the tab and the top when the arrow is clicked (see two jpgs - All indices show outside of form - I just did an Alt-PrtScr). I also attach project.

Thank you in advance for your replies.

Sandy



 

Attachments

  • 0 Test TabPane2.zip
    274 KB · Views: 526
Last edited:

tdocs2

Well-Known Member
Licensed User
Longtime User
Thank you, Erel.

I had not considered using a ComboBox as an index - seems a better solution. I will experiment with it.

Back to my question on the tab pane....

Can I control the top location of where the tab pane is displayed once it is expanded (as in the example above)?

Best regards.

Sandy
 

Cableguy

Expert
Licensed User
Longtime User
Hi Guys

Seems that using the Visual Designer, I cannot add a treeview to a tabPage, can I do it in code? how?
 

Phayao

Active Member
Licensed User
Longtime User

Hi, silly question: what is the RunMethod to ENABLE the tab again please ?
"setEnable" or "setEnabled" did not work for me :-(
Or is there a reference about all available methods ?

Thanks in advance,

Chris
 

IslandMedic

Member
Licensed User
Longtime User
when using the visual designer to create a tabpane I see how it shows up in the wysiwyg display. It shows three tabs. Now how do I select each page in the pane to add form content on to it? I see the code example above but I would rather use the designer to add all my elements for each tab. I am not seeing tabpages in the tree view? Am i missing something really obvious here?
 

IslandMedic

Member
Licensed User
Longtime User
Thank you very much, I was missing the layout file for each tab. makes sooooo much more sense. Again thank you.

Brad
 

aidymp

Well-Known Member
Licensed User
Longtime User
Hi I cant understand how to add something in code?

I was using 1 form, and 1 page and used this code to add a custom list view

B4X:
MainForm.RootPane.AddNode (lw,15,90,490,275)

I have now decided I need more space so have switched to the TabPane. however and obviously the above custom list is on all the tabs, (hovering over all the tabs)

How can I add it to just tab1?

Thanks

Aidy
 

nadhiras

Member
Licensed User
Longtime User
can we use single layout for 3 - 4 tab ?.....
cause every layout for each tab is same. just tableview or listview for displaying data
the tabpane only for separate data by category...

using different layout for each tab i think wasting time.. cause all the view is same for each tab only tableview...
 

nadhiras

Member
Licensed User
Longtime User
Yes. You can load the same layout file multiple times.

The global views variables will point to the last added views.


if I use single layout for 3 -4 tab and each tab load data from DB..
only last tab can display data.. first,2nd tab cannot load data from DB.. just displying tableview, like empty data... however the data at DB not empty
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…