Discussion:
Bug inTabStrip control
(too old to reply)
kobolds
2009-07-13 09:45:54 UTC
Permalink
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.
Benoît Minisini
2009-07-13 09:51:00 UTC
Permalink
Post by kobolds
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
kobolds
2009-07-13 10:14:15 UTC
Permalink
qt . version 2.14

using binary from Guillermo Ballester Valor.


on opensuse 11.1 x64 kde 4.3 RC2 release 142
Post by Benoît Minisini
Post by kobolds
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
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.
Benoît Minisini
2009-07-13 10:31:25 UTC
Permalink
Post by kobolds
qt . version 2.14
using binary from Guillermo Ballester Valor.
on opensuse 11.1 x64 kde 4.3 RC2 release 142
OK, but please provide the real code (i.e. a project archive), as what you
described is not coherent.

Regards,
--
Benoît
kobolds
2009-07-13 10:49:15 UTC
Permalink
the whole project I doing now still in very messy status . but I confirm the
problem exist by create a new project to see if it happen or not .

now that you said that , I also not sure whether the problem is because of
kde 4.3 qt 4.5 .

I guess this is why I unable to compile gambas3

on the yast the gambas version I using showing 2.14.0-2.2
Post by Benoît Minisini
Post by kobolds
qt . version 2.14
using binary from Guillermo Ballester Valor.
on opensuse 11.1 x64 kde 4.3 RC2 release 142
OK, but please provide the real code (i.e. a project archive), as what you
described is not coherent.
Regards,
--
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
https://lists.sourceforge.net/lists/listinfo/gambas-user
--
View this message in context: http://www.nabble.com/Bug-inTabStrip-control-tp24458745p24459455.html
Sent from the gambas-user mailing list archive at Nabble.com.
Benoît Minisini
2009-07-13 11:06:10 UTC
Permalink
Post by kobolds
the whole project I doing now still in very messy status . but I confirm
the problem exist by create a new project to see if it happen or not .
now that you said that , I also not sure whether the problem is because of
kde 4.3 qt 4.5 .
I guess this is why I unable to compile gambas3
on the yast the gambas version I using showing 2.14.0-2.2
I need the actual code, because the code you wrote in your e-mail is not
coherent. Please read it again to see what I mean.

Regards,
--
Benoît
kobolds
2009-07-13 11:32:15 UTC
Permalink
sorry here the code

http://www.nabble.com/file/p24460070/test.zip test.zip
Post by Benoît Minisini
Post by kobolds
the whole project I doing now still in very messy status . but I confirm
the problem exist by create a new project to see if it happen or not .
now that you said that , I also not sure whether the problem is because of
kde 4.3 qt 4.5 .
I guess this is why I unable to compile gambas3
on the yast the gambas version I using showing 2.14.0-2.2
I need the actual code, because the code you wrote in your e-mail is not
coherent. Please read it again to see what I mean.
Regards,
--
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
https://lists.sourceforge.net/lists/listinfo/gambas-user
--
View this message in context: http://www.nabble.com/Bug-inTabStrip-control-tp24458745p24460070.html
Sent from the gambas-user mailing list archive at Nabble.com.
Werner
2009-07-13 12:19:40 UTC
Permalink
Post by kobolds
sorry here the code
http://www.nabble.com/file/p24460070/test.zip test.zip
Post by Benoît Minisini
Post by kobolds
the whole project I doing now still in very messy status . but I confirm
the problem exist by create a new project to see if it happen or not .
now that you said that , I also not sure whether the problem is because of
kde 4.3 qt 4.5 .
I guess this is why I unable to compile gambas3
on the yast the gambas version I using showing 2.14.0-2.2
I need the actual code, because the code you wrote in your e-mail is not
coherent. Please read it again to see what I mean.
Regards,
--
Benoît
I run compiled version 2.14 on openSUSE 11.1/64 with KDE 3.5
What I see is when I single step
through the Button_Click routine

tabstrip1[0].visible = false 'Index becomes -1
tabstrip1[1].visible = true 'Index becomes 1
tabstrip1[2].visible = false

but what is shown is still tab strip 0.

Regards
Werner
kobolds
2009-07-13 12:23:48 UTC
Permalink
mine show tab strip 1 , but the button also show out
Post by Werner
Post by kobolds
sorry here the code
http://www.nabble.com/file/p24460070/test.zip test.zip
Post by Benoît Minisini
Post by kobolds
the whole project I doing now still in very messy status . but I confirm
the problem exist by create a new project to see if it happen or not .
now that you said that , I also not sure whether the problem is because of
kde 4.3 qt 4.5 .
I guess this is why I unable to compile gambas3
on the yast the gambas version I using showing 2.14.0-2.2
I need the actual code, because the code you wrote in your e-mail is not
coherent. Please read it again to see what I mean.
Regards,
--
Benoît
I run compiled version 2.14 on openSUSE 11.1/64 with KDE 3.5
What I see is when I single step
through the Button_Click routine
tabstrip1[0].visible = false 'Index becomes -1
tabstrip1[1].visible = true 'Index becomes 1
tabstrip1[2].visible = false
but what is shown is still tab strip 0.
Regards
Werner
------------------------------------------------------------------------------
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
https://lists.sourceforge.net/lists/listinfo/gambas-user
--
View this message in context: http://www.nabble.com/Bug-inTabStrip-control-tp24458745p24460761.html
Sent from the gambas-user mailing list archive at Nabble.com.
Werner
2009-07-13 12:33:10 UTC
Permalink
Post by Werner
Post by kobolds
sorry here the code
http://www.nabble.com/file/p24460070/test.zip test.zip
Post by Benoît Minisini
Post by kobolds
the whole project I doing now still in very messy status . but I confirm
the problem exist by create a new project to see if it happen or not .
now that you said that , I also not sure whether the problem is because of
kde 4.3 qt 4.5 .
I guess this is why I unable to compile gambas3
on the yast the gambas version I using showing 2.14.0-2.2
I need the actual code, because the code you wrote in your e-mail is not
coherent. Please read it again to see what I mean.
Regards,
--
Benoît
I run compiled version 2.14 on openSUSE 11.1/64 with KDE 3.5
What I see is when I single step
through the Button_Click routine
tabstrip1[0].visible = false 'Index becomes -1
tabstrip1[1].visible = true 'Index becomes 1
tabstrip1[2].visible = false
but what is shown is still tab strip 0.
Regards
Werner
...whereas if I change the code a little

tabstrip1[1].visible = true 'Index remains as it was
tabstrip1[0].visible = false 'Index becomes 1
tabstrip1[2].visible = false

and the result is as it should be.

Regards
Werner
kobolds
2009-07-13 12:49:42 UTC
Permalink
You're right . thanks
Post by Werner
Post by Werner
Post by kobolds
sorry here the code
http://www.nabble.com/file/p24460070/test.zip test.zip
Post by Benoît Minisini
Post by kobolds
the whole project I doing now still in very messy status . but I confirm
the problem exist by create a new project to see if it happen or not .
now that you said that , I also not sure whether the problem is
because
of
kde 4.3 qt 4.5 .
I guess this is why I unable to compile gambas3
on the yast the gambas version I using showing 2.14.0-2.2
I need the actual code, because the code you wrote in your e-mail is not
coherent. Please read it again to see what I mean.
Regards,
--
Benoît
I run compiled version 2.14 on openSUSE 11.1/64 with KDE 3.5
What I see is when I single step
through the Button_Click routine
tabstrip1[0].visible = false 'Index becomes -1
tabstrip1[1].visible = true 'Index becomes 1
tabstrip1[2].visible = false
but what is shown is still tab strip 0.
Regards
Werner
...whereas if I change the code a little
tabstrip1[1].visible = true 'Index remains as it was
tabstrip1[0].visible = false 'Index becomes 1
tabstrip1[2].visible = false
and the result is as it should be.
Regards
Werner
------------------------------------------------------------------------------
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
https://lists.sourceforge.net/lists/listinfo/gambas-user
--
View this message in context: http://www.nabble.com/Bug-inTabStrip-control-tp24458745p24461127.html
Sent from the gambas-user mailing list archive at Nabble.com.
Benoît Minisini
2009-07-13 13:47:44 UTC
Permalink
Post by kobolds
sorry here the code
http://www.nabble.com/file/p24460070/test.zip test.zip
OK, got it! The gb.qt TabStrip should be fixed in revision #2111.

Regards,
--
Benoît
Loading...