Search found 415 matches

by Axolotl
Thu Mar 21, 2024 3:58 pm
Forum: Coding Questions
Topic: Icon display messed up
Replies: 11
Views: 336

Re: Icon display messed up

I have a few spontaneous questions about the function used: What if the icons are not included as a 16x16Px version? Why don't you check the return value for success? --> you can use the available constants (#S_OK, #S_FALSE, #E_FAIL) for the possible return values here. Perhaps the answers will help...
by Axolotl
Thu Mar 21, 2024 3:29 pm
Forum: Coding Questions
Topic: Problem with Mouse and F10 key ...
Replies: 16
Views: 428

Re: Problem with Mouse and F10 key ...

yeah,
now I tested the program, it worked as expected. (F9 and F10 doing exactly the same thing:)
So maybe your keyboard setting is different. Happend sometimes on Laptops/Notebooks with this media key things .....
by Axolotl
Thu Mar 21, 2024 3:20 pm
Forum: Coding Questions
Topic: Problem with Mouse and F10 key ...
Replies: 16
Views: 428

Re: Problem with Mouse and F10 key ...

Hi marc_256 .... but if I use F10, it blocks the mouse and other Function keys If I push again F10 all works well ... PB5.73x64 / Win 10 pro What is wrong with my program ?? A cautious attempt: in windows, the F10 key is used to (de)activate the menu. So pressing F10 activates the menu, pressing F10...
by Axolotl
Fri Mar 15, 2024 11:21 am
Forum: Feature Requests and Wishlists
Topic: case statements can have the same values?
Replies: 17
Views: 529

Re: case statements can have the same values?

Thanks Fred and to all discussants.

It's okay with me that the compiler can't recognize everything.
However, in the case of a select case statement in connection with constants, a warning would not be bad.
by Axolotl
Thu Mar 14, 2024 5:28 pm
Forum: Coding Questions
Topic: Invalid Memory Access
Replies: 3
Views: 160

Re: Invalid Memory Access

just a small tip on so many gadgets.... something like this could be helpful. Structure TValues Gadget.i StructureUnion intValue.i realValue.d EndStructureUnion EndStructure #Gadgets_Max = 10 Dim Values.TValues(#Gadgets_Max) For nn = 0 To #Gadgets_Max ; .... ; s = ??? Values(nn)\Gadget = StringGadge...
by Axolotl
Thu Mar 14, 2024 5:18 pm
Forum: Feature Requests and Wishlists
Topic: case statements can have the same values?
Replies: 17
Views: 529

case statements can have the same values?

Thanks to a really stupid coding error made by myself, I have noticed a strange behavior. Within a select statement you can make any number of identical case queries. Which of course leads to a faulty program. Shouldn't the compiler detect this and report it? Maybe I am wrong, maybe not? I am curiou...
by Axolotl
Thu Mar 14, 2024 4:30 pm
Forum: Coding Questions
Topic: Invalid Memory Access
Replies: 3
Views: 160

Re: Invalid Memory Access

Please don't be angry and misunderstand. I would not write a program like this, but instead first read all the data from the gadgets into variables (structure or array) and then start the thread. I would also not read a value from the gadget each time within a loop. With a different program structur...
by Axolotl
Mon Mar 11, 2024 5:06 pm
Forum: Coding Questions
Topic: Having trouble with 'Right-Click on Systray icon' .
Replies: 5
Views: 162

Re: Having trouble with 'Right-Click on Systray icon' .

without running your code
You are using two WaitWindowEvent()
I am pretty sure that you loose your events in that construction....
Edit: breeze4me was faster :oops:
by Axolotl
Mon Mar 11, 2024 12:59 pm
Forum: Bugs - IDE
Topic: [Done] AutoComplete List is sometimes delayed
Replies: 3
Views: 200

Re: [Done] AutoComplete List is sometimes delayed

Cool, that was fast.
Thanks for the bonus, I really appreciate your work on this project.

Thanks fryquez, I only change the compiler very rarely. So that 1 minute delay never happend to me by now.
by Axolotl
Mon Mar 11, 2024 10:51 am
Forum: Bugs - IDE
Topic: [Done] AutoComplete List is sometimes delayed
Replies: 3
Views: 200

[Done] AutoComplete List is sometimes delayed

It is not a fault, but a small annoying inconvenience. The AutoComplete window initially draws a gray area, which in some cases is only replaced by the window after a good 1 second.Even if it is often faster, the delay is still noticeable. My assumption that it has to do with the number of open file...
by Axolotl
Thu Feb 29, 2024 4:39 pm
Forum: Coding Questions
Topic: How do I get Row and Column Positions within a Editor Gadget
Replies: 15
Views: 2687

Re: How do I get Row and Column Positions within a Editor Gadget

Aahhh I understand now. Try this. Look at the line CompilerIf 0 ; <<<<<---- 0 for the bad solution or 1 for second (better) solution and look at both solutions. Explanation: the gadget needs the repaint (message loop) which is not called inside any loops. There is a third solution by doing this by T...
by Axolotl
Thu Feb 29, 2024 2:26 pm
Forum: Coding Questions
Topic: How do I get Row and Column Positions within a Editor Gadget
Replies: 15
Views: 2687

Re: How do I get Row and Column Positions within a Editor Gadget

Hey Skiller, I didn't mean any offense. I find that people are often too quick to ask questions instead of looking for the causes themselves..... I am happy to help with my modest knowledge. I haven't quite understood your problem yet. Maybe you can try PostMessage instead becaue there is a differen...
by Axolotl
Wed Feb 28, 2024 11:24 am
Forum: Coding Questions
Topic: How do I get Row and Column Positions within a Editor Gadget
Replies: 15
Views: 2687

Re: How do I get Row and Column Positions within a Editor Gadget

Sorry, but what is wrong with CountGadgetItems() like below? BTW Your code example needs some NEWLINE (#CR$, #CRLF$, #LF$) to add new textlines. See the difference between SetGadgetText() and AddGadgetItem() IMHO you will figure it out by yourself. Dont forget. Coding is trail and error...... And yo...
by Axolotl
Tue Feb 27, 2024 5:10 pm
Forum: Coding Questions
Topic: How do I get Row and Column Positions within a Editor Gadget
Replies: 15
Views: 2687

Re: How do I get Row and Column Positions within a Editor Gadget

hi skiller, counting lines is actually one of the few things you can do in an editor gadget without an api. Anyway, I add both ways to your code. See below. ;Autor: srod ;http://www.purebasic.fr/english/viewtopic.php?p=173872#p173872 EnableExplicit Define evMask, i Procedure Callback(hWnd, uMsg, wPa...