-
Notifications
You must be signed in to change notification settings - Fork 16
Compiler error with ThemeManager #8
Comments
Forgot to mention: IDE version is 10.4. |
With this code, I got rid of the compiler errors and could compile the project:
But now, when I select an item in the combobox at run-time, I get an AV!! |
Now I managed to eliminate the AV:
But it does not work like in the demo from the library: When I click on any item in the combo box, nothing happens! |
Since the |
PeterPanino, I wasn't sure what you are wanting to do, but I'd guess you want to change the UCL theme while using a regular TForm. If you do it that way the UCL components will have to all be changed in code, it won't be automatic. I played around with some code and came up with this:
Note that I added a UPanel for testing as well. It seems to work OK but you'll have to update each component you want to use the theme color separately. And Vuio may have a better way to do this, but the code above works for me. If this is not what you are wanting to do you might post what it is you need. |
In my own project, this code generates a compiler error (although I use the same uses clause as in your demo project):
ThemeManager.ThemeType := TUThemeType(comboChooseTheme.ItemIndex);
[dcc32 Error] MainForm.pas(991): E2003 Undeclared identifier: 'ThemeManager'
[dcc32 Error] MainForm.pas(991): E2066 Missing operator or semicolon
The text was updated successfully, but these errors were encountered: