Change FONT name, size and style in MENU items

Creative ideas/suggestions for HMG

Moderator: Rathinagiri

Post Reply
User avatar
Pablo César
Posts: 4059
Joined: Wed Sep 08, 2010 1:18 pm
Location: Curitiba - Brasil

Change FONT name, size and style in MENU items

Post by Pablo César »

Is it possible to change font in menuitem, dropdown, popup menus in HMG ?
 
Image
 
In Minigui Extended there is a _DefineFont to create a FONT as control... :?

Code: Select all

        DEFINE FONT font_0 FONTNAME GetDefaultFontName() SIZE 10
	DEFINE FONT font_1 FONTNAME 'Times New Roman' SIZE 10 BOLD
	DEFINE FONT font_2 FONTNAME 'Arial'   SIZE 12 ITALIC
	DEFINE FONT font_3 FONTNAME 'Verdana' SIZE 14 UNDERLINE  
	DEFINE FONT font_4 FONTNAME 'Courier' SIZE 16 STRIKEOUT

        DEFINE MAIN MENU
                POPUP "F&onts" FONT Font0
			ITEM "10- Bold"       FONT Font1
			ITEM "12- Italic"     FONT Font2
			ITEM "14- UnderLine"  FONT Font3
			ITEM "16- StrikeOut"  FONT Font4
		END POPUP
See at \MiniGUI\SAMPLES\Advanced\MenuEx.

I think is not the only one who is needing this:
http://www.pctoledo.com.br/forum/viewto ... ff5#p81887
viewtopic.php?p=35249&sid=53c47b0e8ec64 ... 37f#p35249

And one old friend is needing to in this case:
 
Screen120.png
Screen120.png (49.74 KiB) Viewed 4933 times
 
But I'd like to change the font. Would we have to create a new control for this ?
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
User avatar
serge_girard
Posts: 3161
Joined: Sun Nov 25, 2012 2:44 pm
DBs Used: 1 MySQL - MariaDB
2 DBF
Location: Belgium
Contact:

Re: Change FONT name, size and style in MENU items

Post by serge_girard »

That would be GREAT !

Serge
There's nothing you can do that can't be done...
Marin
Posts: 33
Joined: Tue Dec 20, 2016 1:39 pm
DBs Used: DBF
Location: Bulgaria, Sofia
Contact:

Re: Change FONT name, size and style in MENU items

Post by Marin »

Excellent idea, may I join to it too? This would make HMG much more attractive and good looking.
But maybe it will not be so simple to implement the font size and font type properties, isn't it...

Regards,
Marin
User avatar
Anand
Posts: 595
Joined: Tue May 24, 2016 4:36 pm
DBs Used: DBF

Re: Change FONT name, size and style in MENU items

Post by Anand »

Pablo César wrote: Thu Mar 09, 2017 5:58 pm But I'd like to change the font. Would we have to create a new control for this ?
serge_girard wrote: Thu Mar 09, 2017 6:08 pmThat would be GREAT !
+1

Regards,

Anand
Regards,

Anand

Image
radohabjan
Posts: 99
Joined: Mon Nov 30, 2009 7:17 am
Location: Slovenia
Contact:

Re: Change FONT name, size and style in MENU items

Post by radohabjan »

+1

I work with touch displays and this menu is very inconvinient for touch users

br Rado
Post Reply