[Gambas-user] Bug inTabStrip control

kobolds kobolds at ...2041...
Mon Jul 13 12:14:15 CEST 2009


qt .  version 2.14

using binary from Guillermo Ballester Valor. 


on opensuse 11.1 x64 kde 4.3 RC2 release 142



Benoît Minisini wrote:
> 
>> 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 .
> 
> Which version of Gambas do you use? Do you use gb.qt or gb.gtk?
> 
> -- 
> Benoît
> 
> ------------------------------------------------------------------------------
> 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
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
> 
> 

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





More information about the User mailing list