Create Large Buttons with .NET

Create Large Buttons with .NET

Ruffy85
Collaborator Collaborator
496 Views
3 Replies
Message 1 of 4

Create Large Buttons with .NET

Ruffy85
Collaborator
Collaborator

Hello Forumsmembers,

 

how can i create Largebuttons through the Api? For Example the Button Place First View under Place Views in the Drawing Enviroment.

 

Actually i use Commandcontrols.AddButton (cmd) with 24x24 and 16x16 pictures for my Buttons, but for the older guys its to small 🙂

 

Thanks for help

If my reply was helpful, please give a "Kudo" or click the "Accept as Solution" button below (or both).
0 Likes
Accepted solutions (1)
497 Views
3 Replies
Replies (3)
Message 2 of 4

matt_jlt
Collaborator
Collaborator
Accepted solution

I have my large icons drawn at 32x32 and when you add the button to the panel, specify it to be the large icon style. I'm not sure if this is what you were after but that's as big as I can make the icons as standard. There may be a way to adjust the overall scale but i'm not sure.

 

' This following adds the button to the panel with the 'large' option enabled. This is the ',True' after adding the button definition.
oPanel.CommandControls.AddButton(button_definition, True)

Regards, Matt.

Message 3 of 4

Ruffy85
Collaborator
Collaborator

Thanks, i will try this, but i think the buttons are more then 32x32 i think it should 48x48 oder 64x64

If my reply was helpful, please give a "Kudo" or click the "Accept as Solution" button below (or both).
0 Likes
Message 4 of 4

Ruffy85
Collaborator
Collaborator

Thanks @matt_jlt

 

Thants thats what i am looking for

If my reply was helpful, please give a "Kudo" or click the "Accept as Solution" button below (or both).
0 Likes