xsharp.eu • Create a toolbar and and attach to a shell window - Page 2
Page 2 of 2

Create a toolbar and and attach to a shell window

Posted: Wed Jan 27, 2021 9:37 pm
by Neale
Thanks Chris that worked, but the bitmaps are not showing there full image, I have tried a single bitmap 48x48
created in VS with the same result ?

Create a toolbar and and attach to a shell window

Posted: Wed Jan 27, 2021 10:37 pm
by robert
Neale,

The bitmaps in the ribbon are 24 bits.
Try this:

oTb:ButtonSize := Dimension{24,24}
oTb:Bitmap := ShellWindowRibbon{,,24,24}

oTB:AppendItem(2, IDM_ShellMenu_Help_About_ID, oTB:Bitmap ) // works, but no bitmap
oTB:AddTipText(IDT_HELP, IDM_ShellMenu_Help_About_ID, "Help About")

This shows the 2nd image in the bitmap

Robert

Create a toolbar and and attach to a shell window

Posted: Wed Jan 27, 2021 10:42 pm
by Chris
HI Neale,

Yeah, I was seeing this as well, found what's the problem, the bitmap's height is 24 pixels, instead of the default 16. Add this and it works:

oTB:ButtonSize := Dimension{24,24}

Create a toolbar and and attach to a shell window

Posted: Wed Jan 27, 2021 10:44 pm
by Chris
Oh well, I think we need to make an agreement with Robert, that from now on he only replies on even hours and I only reply on odd hours :)

Create a toolbar and and attach to a shell window

Posted: Wed Jan 27, 2021 10:45 pm
by Neale
Thank you, all good.

Create a toolbar and and attach to a shell window

Posted: Fri Jan 29, 2021 4:54 pm
by Alf
Hello to all,
i sometimes heart about SEUIXP, but never used it till today. Can I get some screenshots or so to see the advantages of this tool? Or would it be better to look for similar functions in dotnet-framework? (and, if so, recommends are welcome). My intention is to improve the look and feel of the good old data window.

Alf

Create a toolbar and and attach to a shell window

Posted: Sat Jan 30, 2021 5:27 am
by ic2
Hello Alf,
Here's a screenshot. As you see you can add text elements (the left text says this is the main menu) and buttons with a sub-menu. In my program the user can select the old 'VO' menu (with much smaller buttons and the SEUIXPmenu. I think I've seen the old menu once or twice on a customer's Pc.

No doubt there are multiple .Net solution (I use the standard ribbon in one, see photorganize.eu for example) but this is quite easy to use from within VO.

Dick