Visual Designer and #MENU_n

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
User avatar
CONVERT
Enthusiast
Enthusiast
Posts: 130
Joined: Fri May 02, 2003 12:19 pm
Location: France

Visual Designer and #MENU_n

Post by CONVERT »

Hello,

Would it be possible to modify the properties of each sub-item of the menu in Visual Designer?

Instead of:

Code: Select all

#MENU_1
#MENU_2
#MENU_3
#MENU_4
#MENU_5
#MENU_6
#MENU_7
I would prefer to obtain this:

Code: Select all

#MENU_New
#MENU_Open
#MENU_Save
#MENU_Save_as
#MENU_Quit
#MENU_Help_etc
#MENU_About
For that, Visual Designer would let me modifying the #MENU_n for each item.

Just a suggestion...

Thanks,
Jean.
PureBasic 6.20 beta 2 (x64) | Windows 10 Pro x64 | Intel(R) Core(TM) i7-8700 CPU @ 3.20Ghz 16 GB RAM, SSD 500 GB, PC locally assembled.
Come back to 6.11 LTS 64 bits because of an issue with #PB_ComboBox_UpperCase in ComboBoxGadget() (Oct. 10, 2024).
Berikco
Administrator
Administrator
Posts: 1326
Joined: Wed Apr 23, 2003 7:57 pm
Location: Belgium
Contact:

Post by Berikco »

That is already in the VD from the first release.
Just look in the menubar editor next to "ID"
Jellybean
User
User
Posts: 95
Joined: Wed Aug 24, 2005 7:33 pm

Post by Jellybean »

I think he means to get it automatically from the menu text?
User avatar
CONVERT
Enthusiast
Enthusiast
Posts: 130
Joined: Fri May 02, 2003 12:19 pm
Location: France

Post by CONVERT »

The following screen as shown in this hard-copy:

Image

creates the following code:

Code: Select all


;- MenuBar Constants
;
Enumeration
  #MenuBar_0
EndEnumeration

Enumeration
  #MENU_1
  #MENU_2
  #MENU_3
  #MENU_4
  #MENU_14
  #MENU_8
  #MENU_18
EndEnumeration

So, I can change #MenuBar_0 in the ID field as shown in the hard-copy.

But I can not change the #MENU_1 #MENU_2 etc. etc.
In VD, I am not able to make appear #MENU_1 in the ID field to modify it.

So, I modify it in the generated code, but after, I must do it again each time I use VD to modify anything else and to create a new code.
PureBasic 6.20 beta 2 (x64) | Windows 10 Pro x64 | Intel(R) Core(TM) i7-8700 CPU @ 3.20Ghz 16 GB RAM, SSD 500 GB, PC locally assembled.
Come back to 6.11 LTS 64 bits because of an issue with #PB_ComboBox_UpperCase in ComboBoxGadget() (Oct. 10, 2024).
Berikco
Administrator
Administrator
Posts: 1326
Joined: Wed Apr 23, 2003 7:57 pm
Location: Belgium
Contact:

Post by Berikco »

This is in the VD from the very first release.........realy..please just take your time to find it, it's realy not that difficult.......

Just look in the menuBar Editor
Select the menuitem, and change the #Menu_xxx to whatever you want...

Image
User avatar
CONVERT
Enthusiast
Enthusiast
Posts: 130
Joined: Fri May 02, 2003 12:19 pm
Location: France

Post by CONVERT »

Sorry, Berrikco, and thank you very much.

I was locked on the other ID field and on the tree in the objects viewer.

I closed the menu editor once I made the menu, and after, I did not think to reactivate it.

Thanks,

Jean.
PureBasic 6.20 beta 2 (x64) | Windows 10 Pro x64 | Intel(R) Core(TM) i7-8700 CPU @ 3.20Ghz 16 GB RAM, SSD 500 GB, PC locally assembled.
Come back to 6.11 LTS 64 bits because of an issue with #PB_ComboBox_UpperCase in ComboBoxGadget() (Oct. 10, 2024).
Post Reply