Search found 2366 matches
- Tue Aug 16, 2022 6:14 pm
- Forum: Coding Questions
- Topic: MessageRequester on a separate thread (?)
- Replies: 12
- Views: 787
Re: MessageRequester on a separate thread (?)
Great alternatives, AZJIO & breeze4me. The suggested approach was just that; a suggestion. But it does have the advantage of being cross-platform.
- Tue Aug 16, 2022 2:55 pm
- Forum: Coding Questions
- Topic: MessageRequester on a separate thread (?)
- Replies: 12
- Views: 787
Re: MessageRequester on a separate thread (?)
...I would still recommend the use of DisableWindow() on the main window. With that the main window is not reacting on user actions and the clock is still running... Hi Axolotl. Great suggestion; thank you. I'm sure that it would be a welcome addition to the feature, provided AZJIO finds the multi-...
- Tue Aug 16, 2022 1:39 pm
- Forum: Off Topic
- Topic: Recipe management software?
- Replies: 180
- Views: 43488
Re: Recipe management software?
- Tue Aug 16, 2022 11:49 am
- Forum: Off Topic
- Topic: Recipe management software?
- Replies: 180
- Views: 43488
- Tue Aug 16, 2022 7:33 am
- Forum: Off Topic
- Topic: Recipe management software?
- Replies: 180
- Views: 43488
Re: Recipe management software?
- Tue Aug 16, 2022 5:44 am
- Forum: Coding Questions
- Topic: MessageRequester on a separate thread (?)
- Replies: 12
- Views: 787
Re: MessageRequester on a separate thread (?)
Perhaps, just use a separate window to emulate a message box. In this example, the message box window stays on top until dismissed, but the running clock in the main window demonstrates that it does not block the event loop: Enumeration windows #mainWindow #messageBox EndEnumeration Enumeration gadg...
- Tue Aug 16, 2022 4:50 am
- Forum: Coding Questions
- Topic: [Solved] Multiple unwanted rows add to ListIconGadget
- Replies: 2
- Views: 291
Re: Multiple unwanted rows add to ListIconGadget
In the event loop:
Code: Select all
If event = #PB_Event_Gadget
- Wed Mar 31, 2021 3:58 pm
- Forum: Off Topic
- Topic: Today is the Fred's birthdate!, the PB father
- Replies: 15
- Views: 4328
Re: Today is the Fred's birthdate!, the PB father
I believe it's tomorrow. But happy birthday, Psychophanta.
- Wed Mar 31, 2021 12:18 pm
- Forum: Off Topic
- Topic: A Decade of PureBasic!
- Replies: 21
- Views: 7049
Re: A Decade of PureBasic!
It has proven to be a powerful programming tool, and a great foundational gateway to other languages as well.plouf wrote:PureBasic has, as i see it, Fanatic users, we use it for decades, still love it still helpus !, and seems like TI-994A , becoming one of these
- Wed Mar 31, 2021 11:52 am
- Forum: Coding Questions
- Topic: Named enumeration
- Replies: 5
- Views: 1381
Re: Named enumeration
...what the point of a 'Named enumeration' is exactly? Enumeration windows #window1 ;starts a new enumeration from 0 #window2 #window3 EndEnumeration Enumeration gadgets #gadget1 ;starts a new enumeration from 0 #gadget2 #gadget3 EndEnumeration Enumeration images #image1 = 3 ;starts this enumeratio...
- Mon Mar 29, 2021 1:08 pm
- Forum: Coding Questions
- Topic: Freeing PureBasic Objects
- Replies: 19
- Views: 3146
Re: Freeing PureBasic Objects
...if you created a PureBasic object with #PB_Any you probably should free it with the respective Free procedure. The following syntax creates an image object dynamically and assigns the identifier to the variable named image. The dynamically assigned identifier corresponds with the memory address ...
- Mon Mar 29, 2021 8:22 am
- Forum: Coding Questions
- Topic: Freeing PureBasic Objects
- Replies: 19
- Views: 3146
Re: Freeing PureBasic Objects
The conclusion is that dynamic objects should be freed when they are no longer needed. Most of the time this will be through the use of a specific command for that purpose from the same library the create object command was in. Sometimes it will be the by product of another event such as closing a ...
- Sun Mar 28, 2021 10:49 am
- Forum: Coding Questions
- Topic: Freeing PureBasic Objects
- Replies: 19
- Views: 3146
Re: Freeing PureBasic Objects
Purebasic has no garbage collection. Thanks for the examples; although I'd thought that orphaned objects would eventually be released. So, it might appear that the third line of @freak's post is simply a general GC-description, and not referring to PureBasic specifically. Nevertheless, dereferencin...
- Sun Mar 28, 2021 6:15 am
- Forum: Coding Questions
- Topic: Freeing PureBasic Objects
- Replies: 19
- Views: 3146
Re: Freeing PureBasic Objects
If you would be willing to throw a little more light on the subject or be able to direct me to a source to learn more about this aspect of things in PureBasic I would be most appreciative. Your guess is as good as mine, but from this post , I had always assumed that PureBasic maintains some version...
- Sun Mar 28, 2021 1:54 am
- Forum: Coding Questions
- Topic: Freeing PureBasic Objects
- Replies: 19
- Views: 3146
Re: Freeing PureBasic Objects
@TI-994A: What do you mean by 'that will eventually release the previous object? Your code sample looses track of the object that was created and the program would have to end before that object would ever be released. Am I missing something? Not exactly. Once there are no more references to a crea...