PopupMenu control: How to change font size of body text?
rwashenfelder
PopupMenu has the parameter fsize to change the font size of the title. Is there a way to change the font size of the body text (the text in the pull-down menu)? I'd like the size of the title text and the body text to be the same, but haven't found a way to do that.
Not for one specific PopupMenu control.
Perhaps the DefaultGUIFont operation's popup setting might be of assistance.
June 28, 2019 at 09:36 am - Permalink
Thanks for the reply. I've tried DefaultGUIFont, but it doesn't apply to the font size of PopupMenu body text. (At least not for Igor 7.08 on Windows 7.)
Here's an example. The title "Choose a color:" is font size 30, but the text in the pull-down menu isn't:
NewPanel
DefaultGuiFont all={"Arial",30,0}
PopupMenu popup0, value="Red;Green;Blue;", title="Choose a color:"
End
- Rebecca
June 28, 2019 at 12:04 pm - Permalink
Are you just wanting larger controls?
Here's what I use for that:
PauseUpdate; Silent 1 // building window...
NewPanel /W=(594,87,894,287)
DefaultGuiFont/W=#/Mac popup={"_IgorLarge",13,0},all={"_IgorLarge",13,0}
DefaultGuiFont/W=#/Win popup={"_IgorLarge",0,0},all={"_IgorLarge",0,0}
PopupMenu popup0,pos={34.00,33.00},size={165.00,24.00},title="Choose a color:"
PopupMenu popup0,mode=2,popvalue="Green",value= #"\"Red;Green;Blue;\""
EndMacro
June 28, 2019 at 01:39 pm - Permalink
In reply to Are you just wanting larger… by JimProuty
I see now. In DefaultGuiFont, the "all" group includes the PopupMenu title, but not the PopupMenu body text. In DefaultGuiFont, I can use the "popup" group to set that font size. Thanks!
June 28, 2019 at 02:05 pm - Permalink