Page 2 of 2
Re: PopUp Menus
Posted: Tue Dec 31, 2019 12:17 pm
by Fangbeast
Ha ha! That is awesome! Glad to hear it. But I will gladly trade you this weather I have for yours! Any day!

Oh hell no you wouldn't, trust me. There 100 fires burning interstate and the fires came to Victoria and one town (Gippsland) had to be evacuated in a hurry. Yesterday was 42 degrees here in Mt Evelyn. I hate it!
You folks are way more advanced than I here so every once in awhile I have to reach out and ask for help.
Not me, I'm devanced instead of advanced:):)
Code: Select all
O.K. Back to looking at your example and attempt to wrap my brain around it.
Just don't do anything I'd do and you will be okay!!! I decided in my 61 year old wisdom to combine all 13 programs/databases into one for ease of use and maintenance and I last did that in 2003 when I was more flexible!!
This is going to kill me and be huge.
Re: PopUp Menus
Posted: Tue Dec 31, 2019 1:28 pm
by mk-soft
The assignment of @Paul is not quite correct, even if it works like this, because it creates gaps in the object management of Purebasic.
The numbering of the popup menus does not belong to the window numbering, but to the menu numbering. Not to the numbering of the MenuItems, because they are not objects.
These in the PB help ' PureBasic objects'.
Re: PopUp Menus
Posted: Tue Dec 31, 2019 4:46 pm
by Paul
mk-soft wrote:The assignment of @Paul is not quite correct, even if it works like this, because it creates gaps in the object management of Purebasic.
Sorry, mk-soft is correct. I should have used #MenuBarIndex instead of #WindowIndex.
#GadgetIndex would stay the same as this list prevents any numbering collisions in PureVision...
Code: Select all
Enumeration #MenuBarIndex
#MyPopUpMenu
#MyPopUpMenu1
#MyPopUpMenu2
EndEnumeration
Enumeration #GadgetIndex
#PopupMenu_ViewEdit
#PopupMenu_Delete
#PopupMenu_Duplicate
#PopupMenu_Cancel
#PopupMenu1_ViewEdit
#PopupMenu1_Cancel
#PopupMenu2_ViewEdit
#PopupMenu2_Cancel
EndEnumeration
Re: PopUp Menus
Posted: Tue Dec 31, 2019 7:40 pm
by deanathpc
Paul wrote:mk-soft wrote:The assignment of @Paul is not quite correct, even if it works like this, because it creates gaps in the object management of Purebasic.
Sorry, mk-soft is correct. I should have used #MenuBarIndex instead of #WindowIndex.
#GadgetIndex would stay the same as this list prevents any numbering collisions in PureVision...
Code: Select all
Enumeration #MenuBarIndex
#MyPopUpMenu
#MyPopUpMenu1
#MyPopUpMenu2
EndEnumeration
Enumeration #GadgetIndex
#PopupMenu_ViewEdit
#PopupMenu_Delete
#PopupMenu_Duplicate
#PopupMenu_Cancel
#PopupMenu1_ViewEdit
#PopupMenu1_Cancel
#PopupMenu2_ViewEdit
#PopupMenu2_Cancel
EndEnumeration
Ah O.K. Thank you for the updated version then. This will help either way as I will one day created my windows on the fly. Already having that thought about this current project in fact.
Thank you.
Re: PopUp Menus
Posted: Tue Dec 31, 2019 7:42 pm
by deanathpc
Fangbeast wrote:Ha ha! That is awesome! Glad to hear it. But I will gladly trade you this weather I have for yours! Any day!

Oh hell no you wouldn't, trust me. There 100 fires burning interstate and the fires came to Victoria and one town (Gippsland) had to be evacuated in a hurry. Yesterday was 42 degrees here in Mt Evelyn. I hate it!
You folks are way more advanced than I here so every once in awhile I have to reach out and ask for help.
Not me, I'm devanced instead of advanced:):)
Code: Select all
O.K. Back to looking at your example and attempt to wrap my brain around it.
Just don't do anything I'd do and you will be okay!!! I decided in my 61 year old wisdom to combine all 13 programs/databases into one for ease of use and maintenance and I last did that in 2003 when I was more flexible!!
This is going to kill me and be huge.
Yes the fires are horrible. We have those here on the West Coast too.
49 years of wisdom here and days like today I feel it's about only 4 years. lol
Re: PopUp Menus
Posted: Wed Jan 01, 2020 1:22 am
by Fangbeast
49 years of wisdom here and days like today I feel it's about only 4 years.
When I finish the first part of my multi database junk, I'll show you the code to frighten you and then you will realise that over 61, I am really 2!!!
Re: PopUp Menus
Posted: Wed Jan 01, 2020 8:55 am
by deanathpc
Fangbeast wrote:49 years of wisdom here and days like today I feel it's about only 4 years.
When I finish the first part of my multi database junk, I'll show you the code to frighten you and then you will realise that over 61, I am really 2!!!
Deal!!!!! Lol
Sent from my SM-G955U using Tapatalk