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
SEMENUXP
Re: SEMENUXP
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
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
- AlessandroV
- Posts: 84
- Joined: Tue Oct 31, 2017 9:07 am
- Location: Italy
Re: SEMENUXP
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
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
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
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
- AlessandroV
- Posts: 84
- Joined: Tue Oct 31, 2017 9:07 am
- Location: Italy
Re: SEMENUXP
Hi Luc,
we can meet at Memmingen next week .... maybe is a simple things to solve it ...
thansk a lot.
we can meet at Memmingen next week .... maybe is a simple things to solve it ...
thansk a lot.