Hi List,
Recently I created an Audio Settings dialog with the modern ttk:combobox replacing the menu popup construct. It is not perfect yet, but nice to look at: http://fjkraan.home.xs4all.nl/digaud/puredata/combobox/index.html
Fred Jan Kraan
Looks a lot better :) About the font issue on Windows, there is a special Tk font for any menu called '::menufont'. If you use that, it should solve the tiny menu fonts on Windows.
While you're at it, want to try running the whole Pd GUI with ttk?
.hc
On 05/21/2013 04:01 PM, Fred Jan Kraan wrote:
Hi List,
Recently I created an Audio Settings dialog with the modern ttk:combobox replacing the menu popup construct. It is not perfect yet, but nice to look at: http://fjkraan.home.xs4all.nl/digaud/puredata/combobox/index.html
Fred Jan Kraan
Pd-dev mailing list Pd-dev@iem.at http://lists.puredata.info/listinfo/pd-dev
Hi Hans-Christoph,
Thanks for the reply.
Looks a lot better :) About the font issue on Windows, there is a special Tk font for any menu called '::menufont'. If you use that, it should solve the tiny menu fonts on Windows.
It makes a difference, but not directly what I expected. Specifying "option add *font ::menufont" makes the font much larger. It will take some more time before it makes sense to me.
While you're at it, want to try running the whole Pd GUI with ttk?
That would be a logical next step, but probably it is a good idea to coordinate it with Jonathan's centralized "Preferences" effort.
.hc
Fred Jan
On 05/21/2013 04:01 PM, Fred Jan Kraan wrote:
Hi List,
Recently I created an Audio Settings dialog with the modern ttk:combobox replacing the menu popup construct. It is not perfect yet, but nice to look at: http://fjkraan.home.xs4all.nl/digaud/puredata/combobox/index.html
Fred Jan Kraan
Pd-dev mailing list Pd-dev@iem.at http://lists.puredata.info/listinfo/pd-dev
Pd-dev mailing list Pd-dev@iem.at http://lists.puredata.info/listinfo/pd-dev
On 2013-05-22 22:13, Fred Jan Kraan wrote:
It makes a difference, but not directly what I expected. Specifying "option add *font ::menufont" makes the font much larger. It will take some more time before it makes sense to me.
It looks like 'menufont' is not exactly the same as '::menufont', and results in a somewhat larger sized font. But the dialogs look fine now.
'::menufont' would be ok when the definition in pd-gui.tcl is changed too.
New images and files at: http://fjkraan.home.xs4all.nl/digaud/puredata/combobox/index.html.
Fred Jan
Hi Fred, I'm currently working on a centralized "Preferences" Dialog that has a tab for Audio, MIDI, and GUI (probably will change that tab name to "General")
It uses the ttk::combobox for those devices as well as moving the Audio Api selection to a ttk::combobox, too. It's definitely a big improvement. :)
-Jonathan
________________________________ From: Fred Jan Kraan fjkraan@xs4all.nl To: pd-dev@iem.at Sent: Tuesday, May 21, 2013 4:01 PM Subject: [PD-dev] What the Pd GUI would look like with the ttk:combobox widget
Hi List,
Recently I created an Audio Settings dialog with the modern ttk:combobox replacing the menu popup construct. It is not perfect yet, but nice to look at: http://fjkraan.home.xs4all.nl/digaud/puredata/combobox/index.html
Fred Jan Kraan
_______________________________________________ Pd-dev mailing list Pd-dev@iem.at http://lists.puredata.info/listinfo/pd-dev
Hi Jonathan,
Thanks for the reply.
If you have anything I could help with, like testing, let me know.
Fred Jan
Hi Fred, I'm currently working on a centralized "Preferences" Dialog that has a tab for Audio, MIDI, and GUI (probably will change that tab name to "General")
It uses the ttk::combobox for those devices as well as moving the Audio Api selection to a ttk::combobox, too. It's definitely a big improvement. :)
-Jonathan
*From:* Fred Jan Kraan fjkraan@xs4all.nl *To:* pd-dev@iem.at *Sent:* Tuesday, May 21, 2013 4:01 PM *Subject:* [PD-dev] What the Pd GUI would look like with the ttk:combobox widget
Hi List,
Recently I created an Audio Settings dialog with the modern ttk:combobox replacing the menu popup construct. It is not perfect yet, but nice to look at: http://fjkraan.home.xs4all.nl/digaud/puredata/combobox/index.html
Fred Jan Kraan
Pd-dev mailing list Pd-dev@iem.at mailto:Pd-dev@iem.at http://lists.puredata.info/listinfo/pd-dev
Hi List,
The Windows-only ttk::combobox dropdown font issue is known in the Tcl/Tk community and actually fixed for version 8.6.
The search phrase field is a ttk::combobox that displays the problem. The genre selector is also a ttk::combobox but additional code fixes the font issue. Both can be fixed by adding just one line: 'option add *font menufont'.
BTW, the search phrase field functionality is very close to that of the "Tcl:" field in the main window. This latter field uses an Entry widget to optionally display a list of previous entries.
There is still another problem with the search phrase field; suppressing the arrow at the right side does not work for Windows. The issue does not seem to be in the Tk sourceforge tracker.
Fred Jan
P.S. The actual ttk::combobox font issue: 2011-03-24 (bug fix)[3239768] Win menu font support (wehle) (Called a bug here, but in the Tk sourceforge tracker it is filed as a patch). It appears to be fixed with 8.6 and all 8.5 versions are considered obsolete by Tcl/Tk developers.
________________________________ From: Fred Jan Kraan fjkraan@xs4all.nl To: pd-dev@iem.at Sent: Monday, May 27, 2013 3:57 PM Subject: [PD-dev] ttk::Combobox font issues. Was: What the Pd GUI would look like with the ttk::combobox widget
[...]
There is still another problem with the search phrase field; suppressing
the arrow at the right side does not work for Windows. The issue does not seem to be in the Tk sourceforge tracker.
I believe the ttk::combobox is a native widget on Windows, so I didn't try messing with it.
-Jonathan