Re: [WIN] Win32Lib tab items: programmatically select; and disable?

new topic     » goto parent     » topic index » view thread      » older message » newer message

Hi Dan,
use setFocus() to select a specific tab item.

The standard Windows tab control does not support disabling a given tab
item. Your best bet would be to create a sequence that contains all the IDs
for the controls in each tab item and then use setEnabled(tabitemseq,
False). This would still allow people to click on the tab item, but all the
controls in there would be gray.

In a way, this is analagous to having a menu selectable but all its menu
items disabled.

If there is a pressing need to really disable a tab item, I'll work on a way
to do that in future.

----
Derek.

----- Original Message -----
From: "Dan Moyer" <DANIELMOYER at prodigy.net>
To: "EUforum" <EUforum at topica.com>
Sent: Saturday, October 06, 2001 11:40 AM
Subject: [WIN] Win32Lib tab items: programmatically select; and disable?


>
> In Win32Lib, is there any way to programmatically select a tab item?
>
> And is there a way to "disable" a specified tab item, so as to make its
> title "gray out"?   When I try, it disables the whole tabcontrol (so *no*
> tab items at all work), not just the specified tabitem, and doesn't change
> the tab title(s) appearance.  Works similarly for setVisible: set a
tabitem
> to invisible, and the whole tabcontrol disappears.
>
> Dan Moyer
>
>
>

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu