B4J Question [ABMaterial] Get ThemeName

micro

Well-Known Member
Licensed User
Longtime User
Hi
It's possibile Get the Theme(name) used for a cell in ABMTable or however typically for each object?
Thanks
 

micro

Well-Known Member
Licensed User
Longtime User
It is not exposed in the framework. For what purpose would you need it?
I set a appropriate color in a cell for special situations (connect, online, offline, ecc.) and reading the current theme I manage the right code.
it is just not possible I will use another system.
Thanks as always for your availability.
 
Upvote 0

micro

Well-Known Member
Licensed User
Longtime User
I'll see! In 1.08 every component will have a Tag property that will be an object, so I guess I could add a CellTag property for the table cell too.
Thanks Alain
considering my need to continue in the project when you expect to make available the new version 1.8 (to donators)?
 
Upvote 0

alwaysbusy

Expert
Licensed User
Longtime User
There is the Colorize method (see [ABMaterial] Framework for WebApps), but if it is a project you already worked on and you've set themes yourself through the BuildTheme() methods, you've got to make sure it is not overriden by you yourself. It's easier to use when you start a program.

Some components have a UseTheme() but I haven't got the time to test them all.

Note: I see you mention 'dynamically', as in at run time? Then the answer is no for most components. When you start the server, a lot of css is generated and cannot be changed at runtime.
 
Upvote 0
Top