Search found 30 matches

by djg
Thu Feb 10, 2022 7:42 pm
Forum: General Developer Support
Topic: ESC, ENTER or HELP key used to enter text in Reaction string gadget
Replies: 7
Views: 26294

Re: ESC, ENTER or HELP key used to enter text in Reaction string gadget

While that makes sense to me, I would like to add that here I don't get the qualifiers at WMHI_GADGETUP, but I do at WMHI_RAWKEY. So I would have to remember them until the WMHI_GADGETUP message. An IDCMP_GADGETUP message simply supplies them immediately and without any room for error.
by djg
Sun Feb 06, 2022 11:19 am
Forum: General Developer Support
Topic: ESC, ENTER or HELP key used to enter text in Reaction string gadget
Replies: 7
Views: 26294

Re: ESC, ENTER or HELP key used to enter text in Reaction string gadget

Thank you both.

I just got PeekQualifier() to work when I read about WINDOW_Qualifier. I can't believe I missed that. Must be my aging eyes.
by djg
Thu Jan 20, 2022 10:50 pm
Forum: General Developer Support
Topic: ESC, ENTER or HELP key used to enter text in Reaction string gadget
Replies: 7
Views: 26294

Re: ESC, ENTER or HELP key used to enter text in Reaction string gadget


I cannot tell exactly, I would have to test it myself.

In a pure Intuition environment you would receive a IDCMP_GADGETUP message and should see the key which caused it in IntuiMessage->Code and the qualifiers in IntuiMessage->Qualifier.


Yes, that's what I have been doing so far.


In ...
by djg
Wed Jan 19, 2022 7:47 pm
Forum: General Developer Support
Topic: ESC, ENTER or HELP key used to enter text in Reaction string gadget
Replies: 7
Views: 26294

ESC, ENTER or HELP key used to enter text in Reaction string gadget

Hi,

I finally decided to try programming using ReAction, it always looked so comlicated to me, and still does.
But I like the automatic layout and the look of it, so I will try some more.

My question is: how do I find out what caused a string gadget gadget up message (ESC key or ENTER key or HELP ...
by djg
Mon Nov 15, 2021 10:44 pm
Forum: General Developer Support
Topic: Drawing a filled circle
Replies: 4
Views: 20637

Re: Drawing a filled circle

Thanks for the info. I got it to work now.
by djg
Sun Nov 14, 2021 3:19 pm
Forum: General Developer Support
Topic: Drawing a filled circle
Replies: 4
Views: 20637

Drawing a filled circle

Hi,

How do I draw a filled circle? I think I have to use AreaEllipse() and AreaInit() and AreaEnd().
I have read the documentation on these routines but I can't find an example anywhere.
A code example would probably help to explain what this documentation is on about.
by djg
Mon Sep 14, 2020 1:43 pm
Forum: General Developer Support
Topic: Pens and colors
Replies: 2
Views: 4946

Re: Pens and colors

Great explanation, thanks!

Tried it (on OS4.1 FE) and it worked. I noticed that although the alpha channel part of is ignored, I still had to set it to 0xFF (like the docs say), or Text() would not show text in the chosen color.
by djg
Sun Sep 13, 2020 7:49 pm
Forum: General Developer Support
Topic: Pens and colors
Replies: 2
Views: 4946

Pens and colors

Hello,

What is the right way to set a pen to a certain color and then use it from within your program running in a window you openend on say the Workbbench screen? My guess is that you have to use ObtainPen() and GetColorMap(), but after reading the AutoDocs, I still have no idea how to do it as I ...
by djg
Fri Apr 13, 2018 11:24 am
Forum: General AmigaOS
Topic: no way back
Replies: 4
Views: 6806

Re: no way back

salass00 wrote:For "Reboot ?" at least you can stop it from rebooting by pressing CTRL-C before RETURN.
Did not think of that. Thanks.
by djg
Thu Apr 12, 2018 7:03 pm
Forum: General AmigaOS
Topic: no way back
Replies: 4
Views: 6806

no way back

Shouldn't commands like NetShutDown and Reboot do nothing when called with a question mark with nothing entered?
I think a command that will do something as drastic as rebooting should at least ask if you are sure, or otherwise be called with something like Reboot FORCE or Reboot RIGHTNOW.