Changing TaskMenu font size

Discussions related to Visual Prolog
Frank
Posts: 22
Joined: 23 Nov 2014 20:41

Changing TaskMenu font size

Unread post by Frank » 30 Dec 2017 21:55

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

Harrison Pratt
VIP Member
Posts: 313
Joined: 5 Nov 2000 0:01

Re: Changing TaskMenu font size

Unread post by Harrison Pratt » 31 Dec 2017 0:02

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

Frank
Posts: 22
Joined: 23 Nov 2014 20:41

Re: Changing TaskMenu font size

Unread post by Frank » 31 Dec 2017 3:10

Thanks so much Harrison, I will try it.

Frank
Posts: 22
Joined: 23 Nov 2014 20:41

Re: Changing TaskMenu font size

Unread post by Frank » 31 Dec 2017 4:12

Thanks again, I followed your clear instructions- it worked!!!!

Post Reply