Insensitive Tabblad item

ozgurnurali

New Member
Hi all,

does anyone know how can I make a tabblad item insensitive?

chTabframe:tabStrip:Tabs:ITEM(2):SENSITIVE = FALSE does not work.

Thanks,
Özgür Nurali
 
Hi,

Here some generic piece of code....

Code:
ch-tabstrip = chCtrlFrame:TabStrip.
ch-tabs = ch-tabstrip:Tabs.
if valid-handle(ch-tabs)
then do.
    ch-tabs:Clear().
    /*build the tabs */
    do i = 1 to num-entries(cp-tabs).
        ch-tab = ch-tabs:Add("Tab" + string(i), entry(i, cp-tabs), i - 1).
        ch-tab:Enabled = l_somecondition.
    end.
end.

HTH,

Casper.
 
Back
Top