Hi Powerbuilders...!
In order to give a prettier UI, sometimes, I use singleline controls, in combination with roundrectagle controls. The singlelineedit control is without border, so the result could be like this:
When using themes, the controls obey theme colors, but RoundRectangles don't (which of course is good).
As you expect, when using themes, the appearance is ruined. The SingleLineEdit uses the color setting of the theme, while the RoundRectangles uses Window background.
Is it possible to know the real color of a the SingleLineEdit so I can dynamicaly adjust the color of the RoundRectangle?
(You have to assume that the application can use any available theme)
Any ideas?
AND - it becomes tricky because you can define hover effect using themes so that background color changes as mouse pointer moves across certain controls. So you would need to check for color changes during pointer movement. Difficult to do high performance in regular PowerScript.
So, I think we need these GetThemeXxxxx() methods Chris...!