SEUIXP icon in menu & converted X# menu using default ribbon

This forum is meant for questions and discussions about the X# language and tools
User avatar
Chris
Posts: 4845
Joined: Thu Oct 08, 2015 7:48 am
Location: Greece

SEUIXP icon in menu & converted X# menu using default ribbon

Post by Chris »

Guys,

The X# ported version of the SEUIXP tools is very new, so it is quite possible that there is indeed some problem in it. But we can do absolutely nothing without having a repro sample. So please send to me or Robert either your ported app, or another sample showing the problem, and we'll look into it ASAP. Just please make sure you include in the zip everything is needed to compile and run it.

.
Chris Pyrgas

XSharp Development Team
chris(at)xsharp.eu
ic2
Posts: 1856
Joined: Sun Feb 28, 2016 11:30 pm
Location: Holland

SEUIXP icon in menu & converted X# menu using default ribbon

Post by ic2 »

Here's an update for those who come across this post later.

As so often, Chris proved how valuable he is for X#. First we sent a "lean" version of the converted app which didn't show the menu as it should (just grey instead of white + purple band + icons). Still it was difficult to find what set it apart from the original VO version. Chris found that after I assembled a real basic VO program with a working SEUIXP menu + VO-XPorted X# program where it did not work.

It looks like the SEUIXP has external methods to the VOGUI classes which is not possible in DotNet. In short, this seems to fix it:

- Change your StandardShellWindow to inherit from SETopAppWindow,
instead of ShellWindow
- If you get compiler errors in 3 methods because of this change, just
remove those lines that report errors
- In the constructor of StandardShellWindow, add the line SELF:ToolBar
:= oToolbar

Now the PostCreate() method of your BasicToolBar is being called, and
this is where you need to specify your icons in the menu items, with the
_oConfig:AddButton(...) lines.

Dick
Post Reply