Create a toolbar and and attach to a shell window

Public support forum for peer to peer support with related to the Visual Objects and Vulcan.NET products
User avatar
Neale
Posts: 24
Joined: Sat Mar 25, 2017 10:40 pm
Location: United Kingdom

Create a toolbar and and attach to a shell window

Post 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 ?
User avatar
robert
Posts: 4483
Joined: Fri Aug 21, 2015 10:57 am
Location: Netherlands

Create a toolbar and and attach to a shell window

Post 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
XSharp Development Team
The Netherlands
robert@xsharp.eu
User avatar
Chris
Posts: 4855
Joined: Thu Oct 08, 2015 7:48 am
Location: Greece

Create a toolbar and and attach to a shell window

Post 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}
Chris Pyrgas

XSharp Development Team
chris(at)xsharp.eu
User avatar
Chris
Posts: 4855
Joined: Thu Oct 08, 2015 7:48 am
Location: Greece

Create a toolbar and and attach to a shell window

Post 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 :)
Chris Pyrgas

XSharp Development Team
chris(at)xsharp.eu
User avatar
Neale
Posts: 24
Joined: Sat Mar 25, 2017 10:40 pm
Location: United Kingdom

Create a toolbar and and attach to a shell window

Post by Neale »

Thank you, all good.
User avatar
Alf
Posts: 54
Joined: Wed Dec 30, 2020 10:04 am

Create a toolbar and and attach to a shell window

Post 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
ic2
Posts: 1856
Joined: Sun Feb 28, 2016 11:30 pm
Location: Holland

Create a toolbar and and attach to a shell window

Post 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
Attachments
seuixpmenu.jpg
seuixpmenu.jpg (19.32 KiB) Viewed 433 times
Post Reply