From: WANGNICK S. <seb...@eu...> - 2003-09-30 12:52:45
|
The possibility to respond to system color changes was also mentioned by Jim Ingham in reply to TIP #154. I would appreciate modifiable named colors very much, albeit with a different intention. I'm currently going through quite a nightmare of canvas item tags and variable traces to separate the design of a "brightness control" window (which allows the user to change the brightness of different kind of colors used, e.g., by canvas items presenting an air-traffic situation) from the rest of the application in a performant manner. Regards, Sebastian -- Dipl.-Inform. Sebastian <dot> Wangnick <at eurocontrol dot int> Office: Eurocontrol Maastricht UAC, Horsterweg 11, NL-6199AC Maastricht-Airport, Tel: +31-433661-370, Fax: -300 -----Original Message----- From: Mic...@fr... [mailto:Mic...@fr...] Sent: Tuesday 30 September 2003 14:03 To: tcl...@li... Subject: [TCLCORE] Re: FINAL CALL FOR COMMENT: TIP #145 'Enhanced Tk Font Handling' > The toplevel Windows message message handler function WmProc must > handle the > WM_SETTINGCHANGE message by calling the TkWinSetupSystemFonts > function. > This must call TkDeleteNamedFont and then TkCreateNamedFont to properly > re-define the font and to propagate this change to all Tk widgets concerned. The last time I looked at the implementation I noticed that it deletes & re-creates fonts on *each* WM_SETTINGCHANGED message. That message is sent for many, many reasons. Clearly fonts should only be modified (and windows updated) when necessary. A good model here will make it possible to also respond to system *color* changes down the road. ____ This message and any files transmitted with it are legally privileged and intended for the sole use of the individual(s) or entity to whom they are addressed. If you are not the intended recipient, please notify the sender by reply and delete the message and any attachments from your system. Any unauthorised use or disclosure of the content of this message is strictly prohibited and may be unlawful. Nothing in this e-mail message amounts to a contractual or legal commitment on the part of EUROCONTROL unless it is confirmed by appropriately signed hard copy. Any views expressed in this message are those of the sender. |