Hi, all.
I don't know, maybe this question has already been discussed, but I couldn't find it. So...
I have an editor gadget and I need to catch the #WM_PASTE event ? This doesn't work in a callback function. I need to check the paste text for correctness before it is added to the editor gadget ...
Search found 365 matches
- Fri Aug 29, 2025 6:35 pm
- Forum: Coding Questions
- Topic: EditorGadget - catch insert event
- Replies: 0
- Views: 446
- Sat Aug 09, 2025 11:03 am
- Forum: Coding Questions
- Topic: [SOLVED] confusion with ReplaceString()
- Replies: 9
- Views: 431
Re: confusion with ReplaceString()
Thanks everyone !
The question is closed.
Kiffi, jacdelad, I thought so too (reverse the replacement sequence).
Thanks again to everyone !
The question is closed.
Kiffi, jacdelad, I thought so too (reverse the replacement sequence).
Thanks again to everyone !
- Thu Aug 07, 2025 7:46 pm
- Forum: Coding Questions
- Topic: [SOLVED] confusion with ReplaceString()
- Replies: 9
- Views: 431
Re: confusion with ReplaceString()
miso, thanks for your version. It works !
- Thu Aug 07, 2025 7:36 pm
- Forum: Coding Questions
- Topic: [SOLVED] confusion with ReplaceString()
- Replies: 9
- Views: 431
[SOLVED] confusion with ReplaceString()
Hi, all.
Is it possible to explicitly specify to replace only the first word found and then exit ?
Define string.s = "ABC time DEF GHIJK LM mtime NOP"
string = ReplaceString(string, "time", "2316")
Debug string
string = ReplaceString(string, "mtime", "082316")
Debug string
Otherwise it breaks all ...
Is it possible to explicitly specify to replace only the first word found and then exit ?
Define string.s = "ABC time DEF GHIJK LM mtime NOP"
string = ReplaceString(string, "time", "2316")
Debug string
string = ReplaceString(string, "mtime", "082316")
Debug string
Otherwise it breaks all ...
- Tue May 13, 2025 4:03 pm
- Forum: Coding Questions
- Topic: [Solved] How to catch language change in EditorGadget
- Replies: 10
- Views: 1178
Re: How to catch language change in EditorGadget
Good time, all !
Thank you very much for your participation !
RASHAD , I understand what you mean, but I'm a little confused by the timer that runs all the time and is set for such a short time. Overheads ? Yes, your code is more universal and does not require additional configuration for the ...
Thank you very much for your participation !
RASHAD , I understand what you mean, but I'm a little confused by the timer that runs all the time and is set for such a short time. Overheads ? Yes, your code is more universal and does not require additional configuration for the ...
- Mon May 12, 2025 6:07 pm
- Forum: Coding Questions
- Topic: [Solved] How to catch language change in EditorGadget
- Replies: 10
- Views: 1178
Re: How to catch language change in EditorGadget
RASHAD
AZJIO
thank you both !
I couldn't come up with anything smarter than the code below. But first I would like to take this opportunity to thank RASHAD for his many well-written and concise code snippets on this forum. I couldn't have done it without your bricks. Thanks a lot !
On my ...
AZJIO
thank you both !
I couldn't come up with anything smarter than the code below. But first I would like to take this opportunity to thank RASHAD for his many well-written and concise code snippets on this forum. I couldn't have done it without your bricks. Thanks a lot !
On my ...
- Sun May 11, 2025 12:55 pm
- Forum: Coding Questions
- Topic: [Solved] How to catch language change in EditorGadget
- Replies: 10
- Views: 1178
[Solved] How to catch language change in EditorGadget
Hi all.
How can I make EditorGadget always set to English only ?
It is clear that you can find out the system key combination for changing the language and wait for this event, but... As we know... there are several ways to change the input language. For example, from the system tray or... even ...
How can I make EditorGadget always set to English only ?
It is clear that you can find out the system key combination for changing the language and wait for this event, but... As we know... there are several ways to change the input language. For example, from the system tray or... even ...
- Sun May 11, 2025 11:23 am
- Forum: Coding Questions
- Topic: Detect if sound card is present/enabled?
- Replies: 4
- Views: 557
Re: Detect if sound card is present/enabled?
@BarryG
I suggest you try the following:
enumerate hardware devices
P.S. If the hardware is not present in the system, then this should work and it is obvious.
P.S.2. Also you can use the console utility, known as 'devcon.exe'. Be careful, it has two different version (x86 _n_ x64).
I suggest you try the following:
enumerate hardware devices
P.S. If the hardware is not present in the system, then this should work and it is obvious.
P.S.2. Also you can use the console utility, known as 'devcon.exe'. Be careful, it has two different version (x86 _n_ x64).
- Sun May 04, 2025 6:42 pm
- Forum: Coding Questions
- Topic: Enumerate the addresses of all labels in the DataSection
- Replies: 10
- Views: 998
Re: Enumerate the addresses of all labels in the DataSection
AZJIO , breeze4me , thanks for your answers.
RASHAD 's code is concise and simple.
This way I got a more compact notation:
EnableExplicit
UsePNGImageDecoder()
Define hGUI, w, h, Counter, id_img
Define imageBuffer, img
DataSection
IncludePath "images" + #PS$
p1: :IncludeBinary "1.png"
p2 ...
RASHAD 's code is concise and simple.
This way I got a more compact notation:
EnableExplicit
UsePNGImageDecoder()
Define hGUI, w, h, Counter, id_img
Define imageBuffer, img
DataSection
IncludePath "images" + #PS$
p1: :IncludeBinary "1.png"
p2 ...
- Sat May 03, 2025 6:19 pm
- Forum: Coding Questions
- Topic: Enumerate the addresses of all labels in the DataSection
- Replies: 10
- Views: 998
Re: Enumerate the addresses of all labels in the DataSection
mk-soft, glad to see you here.
My question was born when I looked at this topic. And yes, I think it's unprofessional (AZJIO, I'm sorry).
My question was born when I looked at this topic. And yes, I think it's unprofessional (AZJIO, I'm sorry).
Yeah, it could be one archive file. But I wonder if there is a solution to my original question ?I'm sure there's another solution.
- Sat May 03, 2025 5:23 pm
- Forum: Coding Questions
- Topic: Enumerate the addresses of all labels in the DataSection
- Replies: 10
- Views: 998
Enumerate the addresses of all labels in the DataSection
Hi everyone.
My question is in the topic title. I want to avoid having to force each label to be specified, like ?Label1, ?Label2, etc., but enum them all. More precisely, get all their addresses.
Is it possible ?
My question is in the topic title. I want to avoid having to force each label to be specified, like ?Label1, ?Label2, etc., but enum them all. More precisely, get all their addresses.
Is it possible ?
- Thu Sep 05, 2024 2:11 pm
- Forum: Coding Questions
- Topic: [SOLVED] Events in system tray
- Replies: 10
- Views: 1596
Re: Events in system tray
TI-994A, thanks a lot !
Yes, everything is much clearer now. Sorry for not being attentive enough.
You're absolutely right about the thread. Thanks for your detailed comments.
Yes, everything is much clearer now. Sorry for not being attentive enough.

You're absolutely right about the thread. Thanks for your detailed comments.
- Thu Sep 05, 2024 9:13 am
- Forum: Coding Questions
- Topic: [SOLVED] Events in system tray
- Replies: 10
- Views: 1596
Re: Events in system tray
@ TI-994A
The message requester is blocking the subsequent clicks from being processed, and those clicks are being processed only after the message requester is dismissed...
I'm very sorry, but why in my second code these clicks are not processed when the message is closed ? After all, in your ...
The message requester is blocking the subsequent clicks from being processed, and those clicks are being processed only after the message requester is dismissed...
I'm very sorry, but why in my second code these clicks are not processed when the message is closed ? After all, in your ...
- Thu Sep 05, 2024 8:57 am
- Forum: Coding Questions
- Topic: [SOLVED] Events in system tray
- Replies: 10
- Views: 1596
Re: Events in system tray
RASHAD , mk-soft , thank you for your attention to my question.
RASHAD , yes, I know about the SplashMessage. You already published this, if my memory serves me correctly. Thanks for this. But in this case it is not entirely appropriate here. In addition, this does not prevent multiple messages ...
RASHAD , yes, I know about the SplashMessage. You already published this, if my memory serves me correctly. Thanks for this. But in this case it is not entirely appropriate here. In addition, this does not prevent multiple messages ...
- Wed Sep 04, 2024 12:52 pm
- Forum: Coding Questions
- Topic: [SOLVED] Events in system tray
- Replies: 10
- Views: 1596
Re: Events in system tray
Hello, TI-994A.
Thanks for the clarification. Your code works too.
Thanks for the clarification. Your code works too.