Android Question For Erel - Doubt on using Tabstrip Control

beelze69

Active Member
Licensed User
Longtime User
Dear Erel, I am a new user of B4A and I have a doubt. I am trying your TABSTRIP control. I have 2 different activities which are independently running files (via seperate programs). The programs are running fine and I can create seperate APKs out of them. Now I want to use the TABSTRIP control to place each LAYOUT in EACH 'PAGE of the TAB CONTROL' I saw your program for TABSTRIP. My questions are: i) Assuming I use the menu feature to navigate through the different tabs (accomplished via your TABSTRIP1.SCROLLTO(n,True) and place this TABSTRIP control in a MAIN.b4A program, where should I place my STARTACTIVITY function for each LAYOUT [each LAYOUT is associated with a PROGRAM X that will initialize a database, CARRY OUT SQL OPERATIONS and display output on WEBVIEW control] should i do something like: sub mnu1_click Tabstrip1.scrollto(0,True) StartActivity("Program1") end sub sub mnu_click Tabstrip1.scrollto(1,True) StartActivity("Program2") end sub ii) Assuming I do not use the TABSTRIP control at all, how do I do this via only the MENU Selection. iii) Assuming I use ONLY THE TABSTRIP control and NOT the MENU Item a) Where will I trap the event for CLICKING of a particular TAB ? Thanks, sorry if the questions sound too elementary.
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…