From: SourceForge.net <no...@so...> - 2008-04-18 10:44:20
|
Patches item #1477426, was opened at 2006-04-27 06:55 Message generated for change (Comment added) made by patthoyts You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=312997&aid=1477426&group_id=12997 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: 33. Generic Dialog Support Group: TIP Implementation Status: Open Resolution: None Priority: 8 Private: No Submitted By: ghanke (ghanke) Assigned to: Donal K. Fellows (dkf) Summary: tk_chooseFont Dialogbox (Win32, generic) Initial Comment: This patch implements a new standard dialog box as a new command: tk_chooseFont There is a Tk-only implementation and a Win32 implementation. The Mac implementation is missing :-( The Win32 implementation uses the Win32 API function ChooseFont. Input parameters: none at this time Output parameters: Font description as a list "family size ?style...?" style is bold, italic The label description of the generic Tk implementation is currently in German but stored in a array inside tk_choosefont. The Win32 implementation is build with the Borland Free Command Line Tools Greetings from Leipzig G"oran ---------------------------------------------------------------------- >Comment By: Pat Thoyts (patthoyts) Date: 2008-04-18 11:44 Message: Logged In: YES user_id=202636 Originator: NO Another patch update. This has more tests and now uses Keith Vetter's script implementation with suitable updates for scripting and key navigation. File Added: tk_chooseFont-20080418.patch ---------------------------------------------------------------------- Comment By: Pat Thoyts (patthoyts) Date: 2008-04-15 01:19 Message: Logged In: YES user_id=202636 Originator: NO Updated the TIP and the sample implementation to permit MacOSX style usage. The script implementation is my ttk version of dkf's dialog but Keith Vetter has provided another that closely follows the Windows font chooser that possibly the unix people may prefer. File Added: tk_chooseFont-20080415.patch ---------------------------------------------------------------------- Comment By: Pat Thoyts (patthoyts) Date: 2008-04-03 00:28 Message: Logged In: YES user_id=202636 Originator: NO Added some tests and fixed a couple of bugs that appeared. File Added: tk_chooseFont-20080403.patch ---------------------------------------------------------------------- Comment By: Pat Thoyts (patthoyts) Date: 2008-04-02 15:48 Message: Logged In: YES user_id=202636 Originator: NO I've added a patch against 8.6 that merges the tkchat choosefont code for windows into a tk_chooseFont command. For platforms that don't implement a C tk_chooseFont tk.tcl will call to tk::choosefont::choosefont which is a rewrite of dkf's fontSel dialog code but using ttk widgets. This is in library/fontdlg.tcl The interface to tk_chooseFont is close to that in the tip except for using -apply instead of -updatefont as all the currently extant implementations that I know of are using -apply. A Mac implementation is welcome but I'll not be doing it. File Added: tk_chooseFont.patch ---------------------------------------------------------------------- Comment By: Pat Thoyts (patthoyts) Date: 2006-11-30 15:20 Message: Logged In: YES user_id=202636 Originator: NO I think that how mac users expect to see this work is pretty much irrelevant. At the moment they don't get anything and neither do windows and X users. We can arrange to have something done correctly for win32 and something nice for X users and leave the Mac people with something that at least lets them choose a font using a dialog. Once some enterprising mac person sorts out how to do it for that platform then great. In the meantime I have a couple of critcl units that provide a Win32 and a Gtk standard font dialog and the package degrades to use DKFs tcl font dialog. Currently this stuff is in the tkchat application. ---------------------------------------------------------------------- Comment By: Donal K. Fellows (dkf) Date: 2006-04-27 09:38 Message: Logged In: YES user_id=79902 The key problem with doing this sort of thing is that Win users expect font dialogs to behave one way (modal, with OK button, etc.) and Mac users expect font dialogs to behave another (non-modal, with main menu item to show/hide the dialog). Resolving these differences is tricky. :-( (TIP#213 http://tip.tcl.tk/213 is related, so classifying as a TIP impl...) ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=312997&aid=1477426&group_id=12997 |