Page 1 of 1

Changing TaskMenu font size

Posted: 30 Dec 2017 21:55
by Frank
Happy 2018 to everyone.
Does anyone know how to:
1- Change the font size of the Project TaskMenu items such as, File, Help, etc.
2- Is it possible to maximize the size of a dialog box when it is initially cterated, e.g. by calling some predicates (wsf_Maximized) that is used for Windows?

Best regards,
Frank

Re: Changing TaskMenu font size

Posted: 31 Dec 2017 0:02
by Harrison Pratt
1. I think you are locked-in to the global Windows font for Task Window menus.
2. To maximize a dialog, do the following in the Dialog Expert:

Set the Dialog Properties:
MaximizeBox: True
MinimizeBox: True
SizeBorder: True

Create a Dialog Event handler:
ShowListener: on Show

Add code like the following to have the dialog maximize automatically:

Code: Select all

predicates     onShow : window::showListener. clauses     onShow(_Source, _Data):-         setState( [wsf_Maximized] ).   % 2017-12-30 testing dialog resize

Re: Changing TaskMenu font size

Posted: 31 Dec 2017 3:10
by Frank
Thanks so much Harrison, I will try it.

Re: Changing TaskMenu font size

Posted: 31 Dec 2017 4:12
by Frank
Thanks again, I followed your clear instructions- it worked!!!!