Changing Title Bar colour on a window

Visto 80 veces
Saltar al primer mensaje no leído

Julian Ford

no leída,
2 oct 2019, 23:27:092/10/19
a 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

no leída,
4 oct 2019, 2:11:264/10/19
a 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

no leída,
4 oct 2019, 8:41:164/10/19
a 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

no leída,
4 oct 2019, 9:16:484/10/19
a 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

no leída,
4 oct 2019, 9:19:004/10/19
a 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

no leída,
16 oct 2019, 12:53:1416/10/19
a VA Smalltalk
not so easy, even more in Smalltalk. The following link might interest you.


Ok, is Delphi, what the hell.:)

Julian Ford

no leída,
17 oct 2019, 14:02:0717/10/19
a 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
Responder a todos
Responder al autor
Reenviar
0 mensajes nuevos