PxPlus User Forum

Twitter Twitter Twitter

Author Topic: Change colour of Titlebar  (Read 812 times)

Ron Klassen

  • Member
  • **
  • Posts: 16
    • View Profile
Change colour of Titlebar
« 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? 

Mike King

  • Diamond Member
  • *****
  • Posts: 3811
  • Mike King
    • View Profile
    • BBSysco Consulting
Re: Change colour of Titlebar
« Reply #1 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.
Mike King
President - BBSysco Consulting
eMail: mike.king@bbsysco.com

Ron Klassen

  • Member
  • **
  • Posts: 16
    • View Profile
Re: Change colour of Titlebar
« Reply #2 on: December 08, 2022, 07:09:57 PM »
I thought that might work as well, but it didn't

Ron Klassen

  • Member
  • **
  • Posts: 16
    • View Profile
Re: Change colour of Titlebar
« Reply #3 on: December 08, 2022, 09:55:55 PM »
I ended up using a combination of 'rectangle' and 'text' and it worked perfectly.