follow my example to emulate the bug .

1 create a form
2. drag and drop a tabstrip control to the form
3. set the count to 3 , it will create 3 tab
4. add a button to tab1
5. at form _open() event add the following code
    '  only left tab1 visible , hide the rest

    tabstrip1[1].visible = true
    tabstrip1[2].visible = false


6. at button click event add the following code
    'hide tab1 and tab3
    tabstrip1[0].visible = false
    tabstrip1[1].visible = true
    tabstrip1[2].visible = false

try to run
on the form show only one tab (name tab1) with a button in it . click on the
button . the tab change to tab2 but the button still showing . 
the button should not show up since button is belong to tab1 not tab2 .

work around ? on the button click event , 
' must set all tab visible first
    tabstrip1[0].visible = true
    tabstrip1[1].visible = true
    tabstrip1[2].visible = true

    tabstrip1.index = 1

    tabstrip1[0].visible = false
    tabstrip1[1].visible = true
    tabstrip1[2].visible = false
 
this way the button won't show up in tab2 . 



   


-- 
View this message in context: 
http://www.nabble.com/Bug-inTabStrip-control-tp24458745p24458745.html
Sent from the gambas-user mailing list archive at Nabble.com.


------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
Gambas-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to