Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

Can a widget be notified when a font changes?
Hi all,

I am trying to use the SelectFont BWidget widget, and I am not sure I am
using it correctly.

I have defined 3-4 named fonts (through font create) which are used
in a canvas widget for text items. I also use the SelectFont widget as
a toolbar, to configure these fonts. However, as the app may have multiple
windows, many SelectFont widgets are visible. All of them can be used
to configure the same named fonts, but I haven't find a way to also update
the rest SelectFont widgets to get them all in sync.

I suppose that for this to happen, we need traces on font changes?
I suppose that widgets at the C lever get somehow notified (as configuring
a font seems to redraw anythin the font is used), but is a way to get this
information
at the tcl level?

(I suppose I can do this in the widget's callback, where I reconfigure the
font
myself, but it would be good if this could be automated somehow...)

George



Report this thread to moderator Post Follow-up to this message
Old Post
Georgios Petasis
10-09-04 09:23 PM


Re: Can a widget be notified when a font changes?
On Sat, 9 Oct 2004 17:47:24 +0300, "Georgios Petasis"
<petasis@iit.demokritos.gr> wrote:

>Hi all,
>
>I am trying to use the SelectFont BWidget widget, and I am not sure I am
>using it correctly.
>
>I have defined 3-4 named fonts (through font create) which are used
>in a canvas widget for text items. I also use the SelectFont widget as
>a toolbar, to configure these fonts. However, as the app may have multiple
>windows, many SelectFont widgets are visible. All of them can be used
>to configure the same named fonts, but I haven't find a way to also update
>the rest SelectFont widgets to get them all in sync.
How about having just one SelectFont widget, and each visible toolbar
button invokes this sole instance?
Helmut Giese

Report this thread to moderator Post Follow-up to this message
Old Post
Helmut Giese
10-09-04 09:23 PM


Re: Can a widget be notified when a font changes?
Georgios Petasis wrote:
> I suppose that for this to happen, we need traces on font changes?

Yes, this is a hole in the font level code.  I would recommend
adding a -command callback to 'font create' for 8.5.

--
Jeff Hobbs, The Tcl Guy
http://www.ActiveState.com/, a division of Sophos

Report this thread to moderator Post Follow-up to this message
Old Post
Jeff Hobbs
10-24-04 08:57 PM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

Tcl archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 05:47 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.