PopUp Menus

Just starting out? Need help? Post your questions and find answers here.
User avatar
Fangbeast
PureBasic Protozoa
PureBasic Protozoa
Posts: 4791
Joined: Fri Apr 25, 2003 3:08 pm
Location: Not Sydney!!! (Bad water, no goats)

Re: PopUp Menus

Post 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.
Amateur Radio/VK3HAF, (D-STAR/DMR and more), Arduino, ESP32, Coding, Crochet
User avatar
mk-soft
Always Here
Always Here
Posts: 6260
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

Re: PopUp Menus

Post 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'.
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
User avatar
Paul
PureBasic Expert
PureBasic Expert
Posts: 1285
Joined: Fri Apr 25, 2003 4:34 pm
Location: Canada
Contact:

Re: PopUp Menus

Post 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
Image Image
deanathpc
Enthusiast
Enthusiast
Posts: 107
Joined: Sun Feb 23, 2014 12:17 am

Re: PopUp Menus

Post 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.
deanathpc
Enthusiast
Enthusiast
Posts: 107
Joined: Sun Feb 23, 2014 12:17 am

Re: PopUp Menus

Post 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
User avatar
Fangbeast
PureBasic Protozoa
PureBasic Protozoa
Posts: 4791
Joined: Fri Apr 25, 2003 3:08 pm
Location: Not Sydney!!! (Bad water, no goats)

Re: PopUp Menus

Post 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!!!
Amateur Radio/VK3HAF, (D-STAR/DMR and more), Arduino, ESP32, Coding, Crochet
deanathpc
Enthusiast
Enthusiast
Posts: 107
Joined: Sun Feb 23, 2014 12:17 am

Re: PopUp Menus

Post 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
Post Reply