donJ
2017-03-16 20:47:45 UTC
Hi,
In the MenuBar,I have a Menu, "Grids" with a MenuItem named "Starts".
This MenuItem should open up a list of file names that will be loaded at
app startup.
For the moment, I'm just loading a dummy list with this code:
In Window1.open:
Dim i as integer
For i = 0 to 5
Dim MySub as new MenuItem
MySub.text=Str(i)
GridStarts.Insert(i, MySub)
Next
In Window1.EnableMenuItems:
Dim i as integer
for i = 0 to GridStarts.Count - 1
GridStarts.Item(i).Enabled = true
next
This much seems to work
I created a MenuHandler for GridStarts with:
msgbox "Here"
Return True
The submenu is created. I see a list of numbers from 0 to 5, but
selecting them does nothing. Where do I put the handlre code?
Thank you for your time,
Don
_______________________________________________
Xojo forum:
https://forum.xojo.com/
In the MenuBar,I have a Menu, "Grids" with a MenuItem named "Starts".
This MenuItem should open up a list of file names that will be loaded at
app startup.
For the moment, I'm just loading a dummy list with this code:
In Window1.open:
Dim i as integer
For i = 0 to 5
Dim MySub as new MenuItem
MySub.text=Str(i)
GridStarts.Insert(i, MySub)
Next
In Window1.EnableMenuItems:
Dim i as integer
for i = 0 to GridStarts.Count - 1
GridStarts.Item(i).Enabled = true
next
This much seems to work
I created a MenuHandler for GridStarts with:
msgbox "Here"
Return True
The submenu is created. I see a list of numbers from 0 to 5, but
selecting them does nothing. Where do I put the handlre code?
Thank you for your time,
Don
_______________________________________________
Xojo forum:
https://forum.xojo.com/