PxPlus User Forum

Main Board => Discussions => Nomads => Topic started by: Ron Klassen on December 08, 2022, 04:22:00 PM

Title: Change colour of Titlebar
Post by: Ron Klassen on December 08, 2022, 04:22:00 PM
Does anyone have any ideas on changing the colour of a Titlebar after it has already been displayed?

This is for a menu panel, and there are options to change theme colours etc. If they change the colour I can have the colour of the other controls changed automatically, but I'm not sure if this can be done on a Titlebar.

This is a resizable panel and if I manually change the size, the titlebar colour is changed. So, any way to simulate a panel size change? 
Title: Re: Change colour of Titlebar
Post by: Mike King on December 08, 2022, 04:32:17 PM
Try PREINPUT -1105 which is the resize event.  This may cause the redraw logic to kick in.
Title: Re: Change colour of Titlebar
Post by: Ron Klassen on December 08, 2022, 07:09:57 PM
I thought that might work as well, but it didn't
Title: Re: Change colour of Titlebar
Post by: Ron Klassen on December 08, 2022, 09:55:55 PM
I ended up using a combination of 'rectangle' and 'text' and it worked perfectly.