font-size for Action- and Ringmenue

Started by Stefan S., September 29, 2008, 10:43:16 AM

Previous topic - Next topic

Stefan S.

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

tia

Stefan Serwe

Lionel F.

Hello Stefan,

You might, for instance, do something like this :

Code (genero) Select
MENU ATTRIBUTE(STYLE="foo")
COMMAND "exit"
EXIT MENU
END MENU


and in your .4st style file :
Code (xml) Select
<Style name=".foo">
     <StyleAttribute name="fontFamily" value="monospace" />
     <StyleAttribute name="fontSize" value="18pt" />
  </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.

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.

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