|
-
July 14th, 2004, 12:43 AM
#1
Changing the size of top level menu items
I tried to increment the size of menu items using the owner draw but could make it for submenus not the top level menu items. Can any one tell me whether its possible to resize the top-level menu items or not?
If yes, pls give some sample code or hints to do that.
Thanks and regards
skpradhan
-
July 14th, 2004, 02:07 AM
#2
implement owner draw.
determine the size of font and etc.
here is the snippet ( using simple routine )
e.DrawFocusRectangle();
Graphics g = e.Graphics;
float x= 10;
if ( e.Index == 0 )
x = 10 ;
else if ( e.Index == 1 )
x = 30;
g.DrawString(mainMenu1.MenuItems[e.Index].Text, this.Font, Brushes.Red, x, 25) ;
something like that.
Paresh.
- Software Architect
-
July 14th, 2004, 07:36 AM
#3
Hi Paresh
Thanks for the reply. Still I am not able t change the size of top level menu items like File,Edit etc.
Can you please help me on that? Is it possible to resize the top level items?
Thanks
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|