VO menu editor

This forum is meant for questions and discussions about the X# language and tools
Komar
Posts: 13
Joined: Tue Sep 29, 2015 9:24 am
Location: Ukraine

VO menu editor

Post by Komar »

In the menu editor "VOMenu" , if the names of menu items are entered in Cyrillic, then the identifiers are created in the form:
IDM__MENU__1055__1077__1088__1089__1086__1085__1072__1083__1100__1085__1099__1077___1076__1072__1085__1085__1099__1077___1051__1080__1095__1085__1099 __1077__1082__1072__1088__1090__1086__1095__1082__1080___1088__1072__1073__1086__1090__1085__1080__1082__1086__1074__ID
Each letter of the Cyrillic alphabet is converted into its code, because of this the length of such an identifier is 269 characters.
The result is an error:
error RC2104 : undefined keyword or key name: IDM__MENU__1055__1077__1088__1089__1086__1085__1072__1083__1100__1085__1099__1077___1076__1072__1085__1085__1099__1077___1051__108 0__1095__1085__1099__1077___1082__1072__1088__1090__1086__1095__1082__1080___1088__1072__1073__1086__1090__1085__1080__1082__1086__1074__ID 115.0 M_ App.prg.rc
When naming menu items using European languages, everything is fine, the identifier is formed from the menu bar characters.
In Visual Objects everything was ok.
Is it possible to somehow solve this problem?
User avatar
Chris
Posts: 4562
Joined: Thu Oct 08, 2015 7:48 am
Location: Greece

Re: VO menu editor

Post by Chris »

Hi,

Which X# version are you using?
Also what is the exact resource that VO is generating for such items? Can you please send a VO mef containing such menus?
Chris Pyrgas

XSharp Development Team test
chris(at)xsharp.eu
Komar
Posts: 13
Joined: Tue Sep 29, 2015 9:24 am
Location: Ukraine

Re: VO menu editor

Post by Komar »

Hi, i using 2.16 Public

link to mef file:
https://mega.nz/file/iogUiTyZ#wNHU-6zy_ ... X9CbIGs6ec
User avatar
Chris
Posts: 4562
Joined: Thu Oct 08, 2015 7:48 am
Location: Greece

Re: VO menu editor

Post by Chris »

Thanks, but this is the vimef file from XIDE, what I need is the original mef (module) from VO. If you want you can also send the full aef (the VO one, not after you port it to XIDE).

The main reason is that I also want to see the exact code that VO is generating for those menus.
Chris Pyrgas

XSharp Development Team test
chris(at)xsharp.eu
Komar
Posts: 13
Joined: Tue Sep 29, 2015 9:24 am
Location: Ukraine

Re: VO menu editor

Post by Komar »

Komar
Posts: 13
Joined: Tue Sep 29, 2015 9:24 am
Location: Ukraine

Re: VO menu editor

Post by Komar »

Hi,

Let me know please, how long will it take to fix this error? Day, week ... , never. It is very important for me.
User avatar
robert
Posts: 4225
Joined: Fri Aug 21, 2015 10:57 am
Location: Netherlands

Re: VO menu editor

Post by robert »

Komar,
Komar wrote: Fri Oct 20, 2023 3:38 am Hi,

Let me know please, how long will it take to fix this error? Day, week ... , never. It is very important for me.
I am not sure how long it will take to fix this. But what I do know is that we are finalizing X# 2.18 at this moment. 2.18 is also intended to be the next public build.
And we will NOT include a change like this at the last moment. Most likely a change like this will break other people's code.

So this fix will be in our private subscribers build (most likely 2.19) and will not become publicly (= for free) available until the build after 2.19 (most likely 2.20, but we could also skip 2.20 and directly move to 3.0).

So if you really need this, then now is the time to sign up and sponsor our development.

Robert
XSharp Development Team
The Netherlands
robert@xsharp.eu
User avatar
Chris
Posts: 4562
Joined: Thu Oct 08, 2015 7:48 am
Location: Greece

Re: VO menu editor

Post by Chris »

Komar,

As Robert said, we cannot include a fix like that in the upcoming build, it's too late to do that.

The good thing is that we have already done a similar fix (for other languages that contain non-standard Latin alphabet letters) in the previous build (2.17, which was only available to subscribers) and with this fix the letters are not converted to numbers anymore, but unfortunately for Cyrillic it sees it's not good enough, still the generated defines are different to the ones generated by VO, which causes compilation errors.

So a further fix is required for Cyrillic and we will do that, just can't tell yet when it will become publicly available, so if you are in a hurry and need a quick fix, please consider subsribing. But just to make sure I'm using the same settings as yours, what is the System Locale setting in your PC? I'm referring to the setting you can see in the screenshot:


System_Locale_setting.png
Chris Pyrgas

XSharp Development Team test
chris(at)xsharp.eu
Komar
Posts: 13
Joined: Tue Sep 29, 2015 9:24 am
Location: Ukraine

Re: VO menu editor

Post by Komar »

Chris wrote: Fri Oct 20, 2023 6:50 am Komar,

As Robert said, we cannot include a fix like that in the upcoming build, it's too late to do that.
The system Locale setting in my PC is "Russian (Russia)".
The subscription option is not available to me for financial reasons. I live in Ukraine, Odessa. That says it all. I was only able to purchase Report Pro and bBrowser.
I’ll postpone the transition to X# and wait for the next public version.
leon-ts
Posts: 429
Joined: Fri Feb 03, 2017 1:43 pm

Re: VO menu editor

Post by leon-ts »

Hi,
I confirm the problem, including version 2.18.0.2a. Just yesterday I needed to remove one item from the menu and after this operation the new saved menu began to look like what Komar presented in the first message. I had to revert the change (git) and remove the menu item manually directly from the files (xsmenu, rc, prg). It’s not critical for me yet, but there really is a problem for the Cyrillic alphabet.
Best regards,
Leonid
Post Reply