Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


Welcome, Guest
Guest Settings
Help

Thread: Changing Font Size of Popup Menu Items??


This question is not answered. Helpful answers available: 2. Correct answers available: 1.


Permlink Replies: 2 - Last Post: Feb 6, 2017 2:13 PM Last Post By: Bradley MacDonald
Bradley MacDonald

Posts: 40
Registered: 10/10/99
Changing Font Size of Popup Menu Items??  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jan 31, 2017 6:59 PM
Hello Everyone,

I know I can change the size of the menu items in the main menu - with the code Screen.MenuFont.Size := 12; for example

However, this does not seem to change the size of the Popup menus...

Is there a way to change the size of the Popup menus fonts across the entire application - like I can with the Main Menu?

G. Bradley MacDonald
brad_AT_timeacct_DOT_com
Remy Lebeau (Te...


Posts: 9,447
Registered: 12/23/01
Re: Changing Font Size of Popup Menu Items??  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Feb 2, 2017 11:05 AM   in response to: Bradley MacDonald in response to: Bradley MacDonald
Bradley wrote:

I know I can change the size of the menu items in the main menu -
with the code Screen.MenuFont.Size := 12; for example

However, this does not seem to change the size of the Popup menus...

A PopupMenu uses the Screen.MenuFont only when a menu item is custom-drawn,
which is the case when either:

1. the item's OwnerDraw property is true.

1. the Parent menu has an ImagList assigned to it.

1. the item has a Bitmap assigned to it.

--
Remy Lebeau (TeamB)
Bradley MacDonald

Posts: 40
Registered: 10/10/99
Re: Changing Font Size of Popup Menu Items??  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Feb 6, 2017 2:13 PM   in response to: Remy Lebeau (Te... in response to: Remy Lebeau (Te...

A PopupMenu uses the Screen.MenuFont only when a menu item is custom-drawn,
which is the case when either:

1. the item's OwnerDraw property is true.

1. the Parent menu has an ImagList assigned to it.

1. the item has a Bitmap assigned to it.

--
Remy Lebeau (TeamB)
Remy - that was the solution - change to OwnerDraw - and it all works as I want it to.

thank you!!
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02