#Reading Validations?
7 messages in this thread
Ello again…
I just have 2 quick questions then I'll be out of your hair
<smile>. 1). After a disk has been inserted and Validated by the system,
how can I read the Volume? I tried using Info() but all the VolumeNode
points to is a memory location looking like "5D5D5D5D5D5D5D5D5D".
2). What bits do I need to set so that my Gadgets only need to be pressed
once, but STILL active as long as the left mouse button down? I'm trying to
get it so that my screen can do a scroll while pressing a Gadget and I
can't stand to keep pressing the Gadget down to make the screen scroll ONE
AT A TIME. <sigh>
Thanks
David
David,
No idea on your first question — the info is in the AmigaDOS Technical
Reference Manual and in the Bantam AmigaDOS book.
On your second question, set both the GADGIMMEDIATE and RELVERIFY flags
on your gadget. Then on a Gadgetdown event, do a …
case GADGETDOWN: {
gad_id = GadAddress->GadgetID;
switch (gad_id) {
case GAD_RDUP: {
do {
whatever();
} while (GadAddress->Flags & SELECTED);
break;
}
-sja
Hey, I thought this was "ASM Programming" 😎
-Mike
Oops! <grin>
Steve…
Thanks…I'll give it a shot
David
Hmmm…
Could you put that in Assem for me? I don't know where exactly to
look to see if it's Selected <sigh>
David
Sorry, I don't do asm.