0
I was wondering if there’s a way enable / disable the items of a Tbuttongroup or at least add the property to it?
And I’ve tried it in the following ways.
ButtonGroupRelatorios.Items.Items[2].Enabled := False; //Exception 000000
ButtonGroupRelatorios.ItemIndex(0).Enabled := False; //Exception 000000
TCustomControl(ButtonGroupRelatorios.Items.Items[2]).Enabled := False; //Exception 000000
TButton(").Enabled := False; //Exception 000000
TWinControl(").Enabled := False; //Exception 000000
When I put these lines presents this msg.
[dcc32 Error] UntPrincipal.pas(6617): E2003 Undeclared identifier: 'Enabled' [dcc32 Error] UntPrincipal.pas(6619): E2066 Missing operator or semicolon
Have I tried searching on the website of http://docwiki.embarcadero.com/ but I couldn’t find anything to help me.
However I had to improvise using a Tscrollbox with Tbitbtn, it looks good but I can not change the color of Tbitbtn, while I wait for a solution I will use it.
Boy... I found a code on a forum that says solve this issue there... The site is delphiaccess.com i have not tested more I will leave the code as answer. to see if it helps you. Detail the site is in Spanish.
– ProsTecnologia
When it comes to unusual components the Embarcadero kind of fails to develop some useful properties.
– ProsTecnologia