1. setVisible in a TabItem

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

new topic     » topic index » view message » categorize

2. Re: setVisible in a TabItem

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

new topic     » goto parent     » topic index » view message » categorize

3. Re: setVisible in a TabItem

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

new topic     » goto parent     » topic index » view message » categorize

4. Re: setVisible in a TabItem

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

new topic     » goto parent     » topic index » view message » categorize

5. Re: setVisible in a TabItem

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

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu