Subscribe for automatic updates: RSS icon RSS

Login icon Sign in for full access | Help icon Help
Advanced search

Pages: [1]
  Reply  |  Print  
Author Topic: font-size for Action- and Ringmenue  (Read 10507 times)
Stefan S.
Posts: 90


« on: September 29, 2008, 10:43:16 am »

Hello,
is there a style-attribute to have a different font / fontsize for the action and the ring menues ?

tia

Stefan Serwe
Lionel F.
Four Js
Posts: 83


« Reply #1 on: September 29, 2008, 06:55:36 pm »

Hello Stefan,

You might, for instance, do something like this :

Code
  1. MENU ATTRIBUTE(STYLE="foo")
  2. COMMAND "exit"
  3. EXIT MENU
  4. END MENU

and in your .4st style file :
Code
  1. <Style name=".foo">
  2.     <StyleAttribute name="fontFamily" value="monospace" />
  3.     <StyleAttribute name="fontSize" value="18pt" />
  4.  </Style>

Normally it should work. I invite you to consult the FGL documentation in order to get more details about the use of fonts : https://4js.com/online_documentation/fjs-fgl-2.11.01-manual-html/User/PresentationStyles.html#USING_FONTS.

I hope it helps,
Best regards,

Lionel
Ullrich M.
Posts: 11


« Reply #2 on: October 10, 2008, 12:04:59 pm »

ok, this works for the ringMenu.
What about the action panel?

in the form file, this does not compile:
action defaults
  action act1 ( text = "Act1", accelerator = Fx, style = "my buttonstyle" )
end

action defaults ( style = "my buttonstyle" )
  action act1 ( text = "Act1", accelerator = Fx  )
end

in the styles file these attributes are missing:
 actionPanelButtonFontFamily = ....
 actionPanelButtonFontSize = ...

Any idea, how to apply a style to the actionPanelButtons?

Thanks,
Umo
Lionel F.
Four Js
Posts: 83


« Reply #3 on: October 13, 2008, 11:34:28 am »

Hello Ullrich

Yes, you're right. For now, there is no way to apply specifically a style on Action Panels.
Nevertheless, you could possibly do this by inheritance. For instance, you inherit the style of your Action Panel from your Window, and after this, you still have the possibility to apply a specific style to the various children widgets.

Regards,
Lionel
Pages: [1]
  Reply  |  Print  
 
Jump to:  

Powered by SMF 1.1.21 | SMF © 2015, Simple Machines