Search found 2366 matches

by TI-994A
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.
by TI-994A
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-...
by TI-994A
Tue Aug 16, 2022 1:39 pm
Forum: Off Topic
Topic: Recipe management software?
Replies: 180
Views: 43488

Re: Recipe management software?

Fangbeast wrote: Tue Aug 16, 2022 12:35 pm
TI-994A wrote: Tue Aug 16, 2022 11:49 am
Fangbeast wrote: Tue Aug 16, 2022 9:22 am...the mighty master whose intellectual capacity exceeds the size of my feet has posted a much simpler solution...
At least the last part of that statement is true.
exceeds the size of my feet????
You must have mighty small feet. :wink:
by TI-994A
Tue Aug 16, 2022 11:49 am
Forum: Off Topic
Topic: Recipe management software?
Replies: 180
Views: 43488

Re: Recipe management software?

Fangbeast wrote: Tue Aug 16, 2022 9:22 am...the mighty master whose intellectual capacity exceeds the size of my feet has posted a much simpler solution...
At least the last part of that statement is true.
by TI-994A
Tue Aug 16, 2022 7:33 am
Forum: Off Topic
Topic: Recipe management software?
Replies: 180
Views: 43488

Re: Recipe management software?

daveb wrote: Sun Aug 14, 2022 4:14 pm...I have been trying to get a better understanding of SQLite...
Perhaps this might be helpful:

PureBasic SQLite Database: A Quick Tutorial
by TI-994A
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...
by TI-994A
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
by TI-994A
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. :wink:

Image
by TI-994A
Wed Mar 31, 2021 12:18 pm
Forum: Off Topic
Topic: A Decade of PureBasic!
Replies: 21
Views: 7049

Re: A Decade of PureBasic!

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 :)
It has proven to be a powerful programming tool, and a great foundational gateway to other languages as well.
by TI-994A
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...
by TI-994A
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 ...
by TI-994A
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 ...
by TI-994A
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...
by TI-994A
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...
by TI-994A
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...