xsharp.eu • SEMENUXP
Page 1 of 1

SEMENUXP

Posted: Thu Sep 28, 2023 4:46 pm
by AlessandroV
Hi to all,

we have a little problems with SEMENUXP ported from VO to X#.

In VO it work correct, in X# we have 2 difference:

* first, when mouse go over the buttons, doesn't show the frame. See Image 1
* second, all small icon on left menues they are not. See image 2

Any suggestions ?

Thanks Alessandro
Image1.png
Image1.png

Re: SEMENUXP

Posted: Fri Sep 29, 2023 9:05 am
by Luc
Hi Alessandro,

I assume you bought the seuixp xsharp update from https://www.xsharp.eu/store/shop/SEUIXP ... p360063005

To initialize the icons for the menu, the docs states to create a new instance:
*If you use your own toolbar ribbon and you create the toolbar with the menu editor, add the complete
button images TO the menu WITH the METHOD SEMenuXP:AddToolbarImages() after you have instanciated
your menu class.

Additionally -and THIS IS important - you must ASSIGN a NEW INSTANCE OF your ribbon bitmap CLASS to the menu WITH
SEMenuXP:ImageList := YourRibbon{}
*/

sample:

VAR oRet := seToolbarImageList{oBitmap} // LM 17/7/2023 #1482 must be new instance

IF !empty(oRet)

VAR oResourceActive := oRet
VAR oResourceDisabled := seToolbarImageList{oBitMapDisabled} // LM 17/7/2023 #1482 must be new instance

// LM 17/7/2023 #1482 use same resource from class
oMenu:SetImageList(oResourceActive)
oMenu:SetImageList(oResourceDisabled, #DISABLEDIMAGELIST, FALSE)

oMenu:AddToolBarImages(SELF:w_oToolBarConfig)

endif

this also allows to have different bitmaps for the toolbar and the menu.

Luc

Re: SEMENUXP

Posted: Fri Sep 29, 2023 4:25 pm
by AlessandroV
Hi Luc, thanks for you answer.

Code is as you have suggest. Is ported from VO Application that is working well.
I have brought and download last version of SEMENUXP and compiled with XSharp of course.

The problem still on menues icon that are not visible (as image).

Basically this is my code:

_oMenu := Menu_Cassa{}
_oMenu:SetImageList(TBColorSmall{})


SELF:Menu := _oMenu // prima di BasicToolBar

oTB := BasicToolBar{}
SELF:ToolBar := oTB

_oMenu:AddToolBarImages(oTB:oConfig) // SEToolBarConfig

Alessandri

Re: SEMENUXP

Posted: Fri Oct 06, 2023 11:04 am
by Luc
Hi Alessandro,
I is hard to tell what is missing from a part of the code. If you come to Memmingen, we can look into it in more detail and see the whole code.
In my xSharp, it is working, so we can figure it out.

Just to know, did you inherit all windows from their respective SETopAppWindow, SETopDataWindow, SETopShellWindow ?

Luc

Re: SEMENUXP

Posted: Fri Oct 06, 2023 2:26 pm
by AlessandroV
Hi Luc,

we can meet at Memmingen next week .... maybe is a simple things to solve it ...

thansk a lot.