1. setVisible in a TabItem
- Posted by Dan-Åke Engqvist <danake_engqvist at hotmail.com> Apr 17, 2007
- 506 views
I have put a control (Combo) in a TabItem. setVisble(Combo,w32False) should hide the control, but it doesn't work (IDE, win32Lib) Is it a bug or have I done something wrong? /Dan-Åke Engqvist
2. Re: setVisible in a TabItem
- Posted by CChris <christian.cuvier at agriculture.gouv.fr> Apr 17, 2007
- 522 views
Dan-Åke Engqvist wrote: > > > I have put a control (Combo) in a TabItem. > setVisble(Combo,w32False) should hide the > control, but it doesn't work (IDE, win32Lib) > Is it a bug or have I done something wrong? > /Dan-Åke Engqvist It is a bug, which I had noticed long ago. The next version of win32lib should correct this. The fix is not trivial, since it amounts to no less than separating logical visibility (whether you used setVisible()) and physical visibilty (IsVisible() API returns 0 or 1). That's how my modified version fixes it. No timetable has been set so far for the next release. This depends on Derek. CChris
3. Re: setVisible in a TabItem
- Posted by Pete Lomax <petelomax at blueyonder.co.uk> Apr 17, 2007
- 495 views
- Last edited Apr 18, 2007
CChris wrote: > The fix is not trivial, since it amounts to no less than separating > logical and physical visibilty. Hmm, I think I see what you mean, but I think I would be more in favour of forcing calls to setVisible(False) within/after a change tab event? Regards, Pete
4. Re: setVisible in a TabItem
- Posted by CChris <christian.cuvier at agriculture.gouv.fr> Apr 18, 2007
- 494 views
Pete Lomax wrote: > > CChris wrote: > > The fix is not trivial, since it amounts to no less than separating > > logical and physical visibilty. > Hmm, I think I see what you mean, but I think I would be more in favour of > forcing > calls to setVisible(False) within/after a change tab event? > > Regards, > Pete On a tab change, there's some set of controls that becomes hidden and another becomes visible. The current official lib sets everyone visible no matter what user had requested. So I just keep the info so that controls marked as inviible remain so. Same problem and fix with control sets as built with setControlSets(). CChris
5. Re: setVisible in a TabItem
- Posted by Pete Lomax <petelomax at blueyonder.co.uk> Apr 18, 2007
- 494 views
CChris wrote: > Same problem and fix with control sets as built with setControlSets(). I was unaware of such a thing and a search on EUforum came up blank. Regards, Pete