I'm using C++ Buider 6.0 and I have this idea of enabling/disabling toolbuttons and menuitems using the settings in a Database. I use this so when the user logs in the application enables or disables these buttons depending of the permissions he has. Instead of writing the all code like:
ToolButton1->Enabled = False;
I would like to read the name of buttons from the database and its attributes, something like this;
for (int i=0; iEnabled = database.RecordButtonValue;
But the problem is that I cannot convert AnsiString to TToolButton.
Any idea how to make this or another system?
Sorry about the newbie questions.