Search found 129 matches
- Mon Jul 21, 2025 3:40 pm
- Forum: Coding Questions
- Topic: ExplorerTreeGadget() and GetGadgetItemText()
- Replies: 18
- Views: 483
Re: ExplorerTreeGadget() and GetGadgetItemText()
Looks like the 2nd parameter of GetGadgetItemText() is an index to a list of items being displayed:
Indeed, with your method we do obtain an index number, but unfortunately as mk-soft pointed out, this number changes all the time as soon as you open a node and you end up with two identical ...
- Fri Jul 18, 2025 11:20 pm
- Forum: Coding Questions
- Topic: ExplorerTreeGadget() and GetGadgetItemText()
- Replies: 18
- Views: 483
Re: ExplorerTreeGadget() and GetGadgetItemText()
I was talking about those Gadgets which allow more entries.
Here I see exactly one, where things are different.
Especially if you compare ExplorerList and ExplorerTree gadget.
This is exactly what is confusing. Especially since GetGadgetState() in ExplorerTreeGadget() must obtain the index of ...
- Fri Jul 18, 2025 2:01 pm
- Forum: Coding Questions
- Topic: ExplorerTreeGadget() and GetGadgetItemText()
- Replies: 18
- Views: 483
Re: ExplorerTreeGadget() and GetGadgetItemText()
So there seems to be no PB way to identify the selected element. Which would be needed for the parameter Position in the GetGadgetItemText()
Furthermore, GetGadgetItemText() would only return the same result as GetGadgetText() .
From my point of view, the help should probably be corrected by ...
- Thu Jul 17, 2025 7:04 pm
- Forum: Coding Questions
- Topic: ExplorerTreeGadget() and GetGadgetItemText()
- Replies: 18
- Views: 483
Re: ExplorerTreeGadget() and GetGadgetItemText() >> is this a bug?
In my documentation ExplorerTreeGadget() is explained:
GetGadgetState() : Lets you know if the selected item is a directory or a file. <<
That is correct, but you are using the return value as 'position' for GetGadgetItemText.
It's not returning an index, just the type of the selected item ...
- Thu Jul 17, 2025 6:59 pm
- Forum: Coding Questions
- Topic: ExplorerTreeGadget() and GetGadgetItemText()
- Replies: 18
- Views: 483
Re: ExplorerTreeGadget() and GetGadgetItemText()
bug was removed from the title.Little John wrote: Thu Jul 17, 2025 6:48 pmI wonder whether it is possible to ask a simple coding question without using the word “bug”.Jacobus wrote: Thu Jul 17, 2025 5:28 pm ExplorerTreeGadget() and GetGadgetItemText() >> is this a bug?![]()
- Thu Jul 17, 2025 5:28 pm
- Forum: Coding Questions
- Topic: ExplorerTreeGadget() and GetGadgetItemText()
- Replies: 18
- Views: 483
Re: ExplorerTreeGadget() and GetGadgetItemText() >> is this a bug?
Hi Axoltl,
In my documentation ExplorerTreeGadget() is explained:
GetGadgetState() : Lets you know if the selected item is a directory or a file. <<
GetGadgetItemText() : Returns the full path of the specified item.
GetGadgetText() : Returns the full path of the selected directory or file ...
In my documentation ExplorerTreeGadget() is explained:
GetGadgetState() : Lets you know if the selected item is a directory or a file. <<
GetGadgetItemText() : Returns the full path of the specified item.
GetGadgetText() : Returns the full path of the selected directory or file ...
- Thu Jul 17, 2025 4:23 pm
- Forum: Coding Questions
- Topic: ExplorerTreeGadget() and GetGadgetItemText()
- Replies: 18
- Views: 483
ExplorerTreeGadget() and GetGadgetItemText()
Hello,
I'm experiencing a return value issue with the GetGadgetItemText() function from an ExplorerTreeGadget(), and I'm wondering if this is a bug.
GetGadgetText() returns the full path of the selected item, while GetGadgetItemText() returns the root directory of a file, but a different root ...
I'm experiencing a return value issue with the GetGadgetItemText() function from an ExplorerTreeGadget(), and I'm wondering if this is a bug.
GetGadgetText() returns the full path of the selected item, while GetGadgetItemText() returns the root directory of a file, but a different root ...
- Mon Jun 16, 2025 6:40 pm
- Forum: The PureBasic Editor
- Topic: Tagging keyword matches in the editor
- Replies: 2
- Views: 162
Re: Tagging keyword matches in the editor
Thanks, miso.
Finally, I managed to regain the lost functionality by deleting the preferences file. I had to start from scratch, but at least it works.
It's still surprising that I couldn't modify/enable my preferences at this level from the editor, but the main thing is that it works.
Finally, I managed to regain the lost functionality by deleting the preferences file. I had to start from scratch, but at least it works.
It's still surprising that I couldn't modify/enable my preferences at this level from the editor, but the main thing is that it works.

- Sun Jun 15, 2025 9:31 am
- Forum: The PureBasic Editor
- Topic: Tagging keyword matches in the editor
- Replies: 2
- Views: 162
Tagging keyword matches in the editor
Hello everyone,
Previously, when I clicked on a keyword like If or Select, the corresponding keyword (EndIf or EndSelect) was underlined, allowing me to easily locate where they were. They were underlined in red if one was missing. However, this marking has now disappeared, and I miss it, especially ...
Previously, when I clicked on a keyword like If or Select, the corresponding keyword (EndIf or EndSelect) was underlined, allowing me to easily locate where they were. They were underlined in red if one was missing. However, this marking has now disappeared, and I miss it, especially ...
- Thu Jun 05, 2025 8:01 am
- Forum: Coding Questions
- Topic: Can I delete an image after adding it to the ImageGadget?
- Replies: 5
- Views: 484
Re: Can I delete an image after adding it to the ImageGadget?
Hi Lebostein,
You can find some useful functions for image management in ImageGadget() and more here:
viewtopic.php?t=85730
This should help you
You can find some useful functions for image management in ImageGadget() and more here:
viewtopic.php?t=85730
This should help you
- Mon Jun 02, 2025 4:29 pm
- Forum: Tricks 'n' Tips
- Topic: An easy to use solution for multilanguage programs
- Replies: 42
- Views: 27674
Re: An easy to use solution for multilanguage programs
With the debugger you can try to set breakpoints around the suspicious codes.
Or you can do some LoggingToFile stuff.
In fact, after various tests, it turns out that the problem occurs when the debugger is enabled. It systematically crashes unexpectedly, either at startup or at exit if the ...
- Tue May 27, 2025 5:43 pm
- Forum: Tricks 'n' Tips
- Topic: An easy to use solution for multilanguage programs
- Replies: 42
- Views: 27674
Re: An easy to use solution for multilanguage programs
Hello ChrisR,
Yes, I did try GPI's method and Guimauve's, but it also crashes.
In fact, sometimes it works (perfectly) and sometimes it doesn't (unexpected termination). I get different errors depending on the program's mood, which is a bit too playful for my taste.
Obviously, it must be an ...
Yes, I did try GPI's method and Guimauve's, but it also crashes.
In fact, sometimes it works (perfectly) and sometimes it doesn't (unexpected termination). I get different errors depending on the program's mood, which is a bit too playful for my taste.
Obviously, it must be an ...
- Mon May 26, 2025 7:09 pm
- Forum: Tricks 'n' Tips
- Topic: An easy to use solution for multilanguage programs
- Replies: 42
- Views: 27674
Re: An easy to use solution for multilanguage programs
I'll create a minimalist test code to see if the problem is related to the translation of the texts, and if so, I'll post it. Otherwise, it's related to an interaction with another part of my code, and it will be more difficult to detect without the full code.
My last debugging attempt revealed that ...
My last debugging attempt revealed that ...
- Mon May 26, 2025 6:16 pm
- Forum: Tricks 'n' Tips
- Topic: An easy to use solution for multilanguage programs
- Replies: 42
- Views: 27674
Re: An easy to use solution for multilanguage programs
Hi HeXOR, thanks for your tests.
It's indeed part of one of my language files. For my application, the file contains a little over 300 lines of the same type.
The worst part is that I'm almost certain it's just a bug that's causing the whole thing to crash. This only happens in 64-bit mode. I can't ...
It's indeed part of one of my language files. For my application, the file contains a little over 300 lines of the same type.
The worst part is that I'm almost certain it's just a bug that's causing the whole thing to crash. This only happens in 64-bit mode. I can't ...
- Mon May 26, 2025 5:16 pm
- Forum: Tricks 'n' Tips
- Topic: An easy to use solution for multilanguage programs
- Replies: 42
- Views: 27674
Re: An easy to use solution for multilanguage programs
Okay :| , I'm a bit on edge right now, but no, I don't use any non-alphabet characters for my indexes, and the language file is saved in UTF-8 format with BOM, as Freak pointed out.
Example of language file contents:
[Hyperlinks]
Accueil = Home
MesApplications = Home - My applications
Bureau = My ...
Example of language file contents:
[Hyperlinks]
Accueil = Home
MesApplications = Home - My applications
Bureau = My ...