Changing Title Bar colour on a window

80 views
Skip to first unread message

Julian Ford

unread,
Oct 2, 2019, 11:27:09 PM10/2/19
to VA Smalltalk
Hi.....

I have a feature in my application, for which the user's attention must be drawn.

I am popping the window to the front, and ringing the OSWidget bell,
but my users are asking me if the title bar colour can be changed.

Has anyone tried this?

Thanks in advance for any and all replies....

Regards,
Julian

Vince Refiti

unread,
Oct 4, 2019, 2:11:26 AM10/4/19
to VA Smalltalk
Hi Julian

I too had been looking to do this, and have failed to find an obvious solution in either VA or Dolphin Smalltalks.

What I was thinking of doing was to have a shell with a form on it that is slightly smaller than the shell thus forming a thin border around the form. I then change the background colour of the shell in response to an event etc. Ugly, but I couldn't think of anything else.

Vince

Louis LaBrunda

unread,
Oct 4, 2019, 8:41:16 AM10/4/19
to VA Smalltalk
Hi Julian,

If you are on windows, I would look for a platform function that could do what you want.  Sorry but I don't have time to look for you.

Lou

Julian Ford

unread,
Oct 4, 2019, 9:16:48 AM10/4/19
to VA Smalltalk
Thanks, Louis.

I had looked for a platform function before posting here, but have not found one.
Especially in Windows 10, the OS wants to control things like title bar colour...
presumably to handle their "theme" concept.

I was just wondering if anyone had found a way to do this...

Julian

Julian Ford

unread,
Oct 4, 2019, 9:19:00 AM10/4/19
to VA Smalltalk
An interesting approach, Vince.

I think the main cause of not finding anything obvious...is that there may actually not be a way of doing it.

One thing I wonder about, though, is that certain programs are able to change the colour of their minimized
icons in the desktop tray...there must be a platform function to do THAT, then....

Thanks for the reply!

Julian

Ralf

unread,
Oct 16, 2019, 12:53:14 PM10/16/19
to VA Smalltalk
not so easy, even more in Smalltalk. The following link might interest you.


Ok, is Delphi, what the hell.:)

Julian Ford

unread,
Oct 17, 2019, 2:02:07 PM10/17/19
to VA Smalltalk
Thanks for the message, Ralf.  A great article!

Given the trickiness of this, however, I have decided not to pursue it.

Best Regards,
Julian
Reply all
Reply to author
Forward
0 new messages