From: SourceForge.net <no...@so...> - 2004-05-22 17:22:13
|
Patches item #946106, was opened at 2004-05-02 00:38 Message generated for change (Comment added) made by petasis You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=312997&aid=946106&group_id=12997 Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: Georgios Petasis (petasis) Assigned to: Jeffrey Hobbs (hobbs) Summary: XP visual styles support for native Tk widgets... Initial Comment: I simply post here an updated version of my patch that adds drawing of native tk widgets (button, radiobutton, checkbutton, spinbox, entry) using the XP style engine. This patch adds a new option to all these widgets (-stylexp boolean) which controls the drawing. ---------------------------------------------------------------------- >Comment By: Georgios Petasis (petasis) Date: 2004-05-22 20:22 Message: Logged In: YES user_id=92283 I will try to, but I am a little pressed at least till the end of the month :-) A better approach however would be: 1) To use a global variable to control behaviour (as you suggest) 2) On a widget level, to check whether a widget is configured to have custom drawing. When such a custom appearence is wanted (i.e. the user has set the -background option) no visual style to be used. In this way, somebody that does "button .b -text {}" will get a button drawn with the XP themes, but when he does ".b configure -background yellow" to get a button drawn by tk facilities. I think its the best compromise for those who do not want to use the tile package, and for alder apps. What do you think? George ---------------------------------------------------------------------- Comment By: Jeffrey Hobbs (hobbs) Date: 2004-05-21 20:44 Message: Logged In: YES user_id=72656 Could you please resubmit this patch against the cvs head where all the source changes are Tcl style compliant? That would be 4-space indentation levels with interleaved tabs/spaces. I also would want this to work with one global ::tk::useXpStyle linked var instead of per-widget. While the per-widget idea is nice for examples, I think the all-or-nothing is the right way to go in general. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=312997&aid=946106&group_id=12997 |