Search found 10 matches

by Nudgy
Sun Dec 01, 2024 11:50 am
Forum: Coding Questions
Topic: Tooltips not working/showing for gadgets inside a frame?
Replies: 5
Views: 951

Re: Tooltips not working/showing for gadgets inside a frame?

Thanks to both of you for your quick replies.

#PB_Frame_Container could be a temporary fix, but since I am mostly editing the form with the standard GUI form editor and that removes such custom edits/flags, I guess that I will have to keep my fingers crossed that the issue will be fixed in a future ...
by Nudgy
Sun Dec 01, 2024 10:27 am
Forum: Coding Questions
Topic: Tooltips not working/showing for gadgets inside a frame?
Replies: 5
Views: 951

Tooltips not working/showing for gadgets inside a frame?

Hi,

Does anyone know how I can get tooltips to display even if the gadget with the tooltip (e.g. a button) is inside a frame?

Example: If I create a simple form with a button that has a tooltip, the tooltip will display just fine. If I then add a separate frame with a button inside, and that ...
by Nudgy
Fri Aug 09, 2024 6:23 pm
Forum: Coding Questions
Topic: ProgressBar not updating until end of loop?
Replies: 9
Views: 1695

Re: ProgressBar not updating until end of loop?


And if you really don't want to a thread, you can put 'while windowevent() : wend' at regular interval to flush the events.


Thanks, Fred. This was actually the first thing I tried, with inspiration from the forum. But it returned the error "[ERROR] WindowEvent(): WindowEvent() and ...
by Nudgy
Fri Aug 09, 2024 4:56 pm
Forum: Coding Questions
Topic: ProgressBar not updating until end of loop?
Replies: 9
Views: 1695

Re: ProgressBar not updating until end of loop?


Is your event loop working while your progress stuff happens?


I haven't touched the event loop for the purpose of the "List loop".

In simplified psuedo-code I am just doing more or less the following:

Procedure x()

SetGadgetAttribute(#ProgressBarID, #PB_ProgressBar_Minimum, 0 ...
by Nudgy
Fri Aug 09, 2024 4:16 pm
Forum: Coding Questions
Topic: ProgressBar not updating until end of loop?
Replies: 9
Views: 1695

ProgressBar not updating until end of loop?

Hi all,

In a simple loop I am going through all the lines of a List and setting a ProgressBar accordingly. However, the progress bar does not actually change to 100% before the loop finishes entirely. I checked the documentation and forum, but didn't manage to find anything clearly relevant. My ...
by Nudgy
Thu Aug 08, 2024 11:11 am
Forum: Coding Questions
Topic: Multiple WaitWindowEvent() in a single project (via include/procedure)?
Replies: 17
Views: 3600

Re: Multiple WaitWindowEvent() in a single project (via include/procedure)?

Thanks to both of you for your help.

The hint about enumerations gave me a nudge in the right direction, it seems. I was apparently not creating/assigning unique IDs for my child form, and as a result this was preventing my WaitWindowEvent() loop from executing correctly, since multiple Forms ...
by Nudgy
Wed Aug 07, 2024 8:17 pm
Forum: Coding Questions
Topic: Multiple WaitWindowEvent() in a single project (via include/procedure)?
Replies: 17
Views: 3600

Multiple WaitWindowEvent() in a single project (via include/procedure)?

Hi,

As far as I understand, there can (typically?) be only one WaitWindowEvent() loop in a one application. In other words, all window events must usually be handled in the main event loop of your code. But are there any workarounds for this?

Example: There is one, common child window/form that I ...
by Nudgy
Sat Jun 01, 2024 7:23 pm
Forum: Coding Questions
Topic: Best way to load/save plain text files easily with Lists in different projects? (or pass a List back from a procedure)
Replies: 7
Views: 1248

Re: Best way to load/save plain text files easily with Lists in different projects? (or pass a List back from a procedur


If you have a list with a structure, you can save it as CSV file or as a JSON file.

SaveJSON() LoadJSON() in combination with ExtractJSONStructure(), InsertJSONStructure()

You can 'return' a list with the list as parameter.


Thank you for this and for the example. I will have to study this ...
by Nudgy
Sat Jun 01, 2024 7:18 pm
Forum: Coding Questions
Topic: Best way to load/save plain text files easily with Lists in different projects? (or pass a List back from a procedure)
Replies: 7
Views: 1248

Re: Best way to load/save plain text files easily with Lists in different projects? (or pass a List back from a procedur


Is your text file in a pre-existing form, or do you have the liberty to create the text file to your own format? If you can create it yourself, I recommend taking a look at PureBasic's JSON functions, as they serve as a very fast and convenient way to save and load a list, to and from a file. I ...
by Nudgy
Sat Jun 01, 2024 6:03 pm
Forum: Coding Questions
Topic: Best way to load/save plain text files easily with Lists in different projects? (or pass a List back from a procedure)
Replies: 7
Views: 1248

Best way to load/save plain text files easily with Lists in different projects? (or pass a List back from a procedure)

Hi,

I am new to PureBasic, coming from other programming languages. I will be needing to open, read and manipulate various plain text files, some of them many MB in size, and it seems that Lists would be a good option for this. However, it seems that there is no built in function to load Lists ...