Disabling a TGListBox?


In my gui program I can disable a TGTextButton while some background processing is going on to prevent user input using TGTextButton::SetState(kButtonDisabled/kButtonUp). But I also have a TGTextBox whose entries the user can click on to trigger an action - is there any similar function which “greys out” the TGTextBox to let the user know that input is not possible?


Hi Peter,

I assume youre talking about TGListBox (as a TGTextBox doesn’t exists in ROOT :wink:), and the answer is no, there is no way of disabling it…

Cheers, Bertrand.

Hi Bertrand,

woops - you’re right of course.

ok - thanks for the answer