- This topic has 2 replies, 3 voices, and was last updated 9 years, 5 months ago by .
Viewing 3 posts - 1 through 3 (of 3 total)
Viewing 3 posts - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.
Integrated Application Platform
Integrated Application Platform › Forums › General › Is it possible to change the Controller background color?
Hi, I would like to change the default gray background color of the Controller windows, AccessControls, etc… Is it possible?
I tried to change the RegisterClass for “SuBtnfaceArrow” in the Init function, in this way:
hBrush = CreateSolidBrush(0xeeffee) //***added by me
// button face background, arrow cursor
RegisterClass(Object(
style: CS.DBLCLKS | CS.REDRAW,
wndProc: defWndProc,
instance: Instance(),
className: "SuBtnfaceArrow",
icon: LoadIcon(Instance(), IDI.SUNEIDO),
cursor: LoadCursor(NULL, IDC.ARROW),
background: hBrush // <--- CHANGED TO hBrush (before was: 1 + COLOR.BTNFACE)
))
but it works only until I don’t resize the Window and it doesn’t work for all the GUI elements. Any suggestions?
Hi,
Not sure how much help I can be on this one. Maybe it is using another window class that you have not changed the color on? You could try examining the calls to CreateWindowEx to see what classes are being used.
Jeff
Hi Mauro,
Controller itself does not paint the background.
The window class is part of it, but as you found, other things are involved.
I have never tried to do this, so I do not know how many changes would be required, but there is no simple solution – sorry!