Search found 107 matches

by deanathpc
Wed Jan 01, 2020 8:55 am
Forum: Coding Questions
Topic: PopUp Menus
Replies: 21
Views: 4049

Re: PopUp Menus

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
by deanathpc
Tue Dec 31, 2019 7:42 pm
Forum: Coding Questions
Topic: PopUp Menus
Replies: 21
Views: 4049

Re: PopUp Menus

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 ...
by deanathpc
Tue Dec 31, 2019 7:40 pm
Forum: Coding Questions
Topic: PopUp Menus
Replies: 21
Views: 4049

Re: PopUp Menus

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 ...
by deanathpc
Tue Dec 31, 2019 9:10 am
Forum: Coding Questions
Topic: PopUp Menus
Replies: 21
Views: 4049

Re: PopUp Menus

I am fine Sir Dean!!! Trying not to let the Aussie heat burn me to a Sir Crispie!!

Sir Paul of PV provided many means for us mere mortals to do wonderful things if we had but the wit to use them (Sometimes I even do!!).

13 years of PV here (I think). Can still do lots of wonderful things with it ...
by deanathpc
Tue Dec 31, 2019 6:45 am
Forum: Coding Questions
Topic: PopUp Menus
Replies: 21
Views: 4049

Re: PopUp Menus

Fangbeast is correct, you could do something like this...

Enumeration #WindowIndex
#MyPopUpMenu
#MyPopUpMenu1
#MyPopUpMenu2
EndEnumeration

Enumeration #GadgetIndex
#PopupMenu_ViewEdit
#PopupMenu_Delete
#PopupMenu_Duplicate
#PopupMenu_Cancel

#PopupMenu1_ViewEdit
#PopupMenu1_Cancel ...
by deanathpc
Tue Dec 31, 2019 5:31 am
Forum: Coding Questions
Topic: PopUp Menus
Replies: 21
Views: 4049

Re: PopUp Menus


;- Window Constants

Enumeration 1
#Window_Myfamily
EndEnumeration

#WindowIndex = #PB_Compiler_EnumerationValue

;- Gadget Constants

Enumeration 1
;Window_Myfamily
#MenuBar_Myfamily_FileMenu
EndEnumeration

#GadgetIndex = #PB_Compiler_EnumerationValue

;- MenuBar Constants

Enumeration 1 ...
by deanathpc
Tue Dec 31, 2019 5:30 am
Forum: Coding Questions
Topic: PopUp Menus
Replies: 21
Views: 4049

Re: PopUp Menus

mk-soft wrote:Just start with enumeration 1000 for the popup MenuItems.
I think you will not create more than 1000 standard MenuItems with PureVision. :wink:
I had to add a little more but I got it working!!!! Thank you!

Sent from my SM-G955U using Tapatalk
by deanathpc
Tue Dec 31, 2019 2:18 am
Forum: Coding Questions
Topic: PopUp Menus
Replies: 21
Views: 4049

Re: PopUp Menus

mk-soft wrote:Just start with enumeration 1000 for the popup MenuItems.
I think you will not create more than 1000 standard MenuItems with PureVision. :wink:
Ok. I'll try it like you have it and see how that goes. Thank you

Sent from my SM-G955U using Tapatalk
by deanathpc
Mon Dec 30, 2019 11:21 pm
Forum: Coding Questions
Topic: PopUp Menus
Replies: 21
Views: 4049

Re: PopUp Menus

If PureVision also creates menus with constants, your MenuItems will conflict with them.

So your enumeration for the MenuItems must start with a different higher value. Hmmm the menus do have enumeration. I believe they start out... Enumeration 1. But I've seen that a few times.

So I need to ...
by deanathpc
Mon Dec 30, 2019 10:47 pm
Forum: Coding Questions
Topic: PopUp Menus
Replies: 21
Views: 4049

Re: PopUp Menus

mk-soft wrote:I don't see any enumerations for menu items, etc... but I thing is an Enumeration problem

But you can use named enumeration and change the start value of enumerations.

O.K. Pasted the code in correctly now. I'm sorry about that.
by deanathpc
Mon Dec 30, 2019 10:38 pm
Forum: Coding Questions
Topic: PopUp Menus
Replies: 21
Views: 4049

Re: PopUp Menus

I don't see any enumerations for menu items, etc... but I thing is an Enumeration problem

But you can use named enumeration and change the start value of enumerations.

; First part or file
Enumeration popup_menuitems 1001
#PopupMenu_ViewEdit
#PopupMenu_Delete
#PopupMenu_Duplicate ...
by deanathpc
Mon Dec 30, 2019 7:45 pm
Forum: Coding Questions
Topic: PopUp Menus
Replies: 21
Views: 4049

PopUp Menus

Alright so I seem to have an ongoing issue with my popup menus. They seem to be affecting my main Menubar. For example when I click on File: Save As it seems to trigger one of my Popup menu events instead. When I disable my popup menus all seems o.k. So I am guessing it's an enumeration issue?

I ...
by deanathpc
Fri Nov 29, 2019 4:22 am
Forum: Coding Questions
Topic: SQLite and Blob - SOLVED -
Replies: 2
Views: 1400

Re: SQLite and Blob - SOLVED -

This has been resolved. I walked away from it for a couple of hours after looking at it for hours..

Finally saw the FinishedQuery in the middle of the routine.
by deanathpc
Thu Nov 28, 2019 7:54 pm
Forum: Coding Questions
Topic: SQLite and Blob - SOLVED -
Replies: 2
Views: 1400

SQLite and Blob - SOLVED -

Here is some code that just will not populate the ListIcon with more than one (1) record. I use this code for other data with zero problems. Is it because of the BLOB that it won't populate more than one record?

I can change the select statement and pull each record number individually with zero ...
by deanathpc
Wed Sep 28, 2016 3:55 pm
Forum: Announcement
Topic: CodeCaddy v2.08x
Replies: 161
Views: 90186

Re: CodeCaddy v2.08x

blueznl wrote:Yep. I think that is the latest one. I recompiled it in 2015.
Works like a champ. Thank you!