Forum unknown
· Programming
#Intui Qs
11 messages in this thread
Fascinating… CED and TxEd both use right-Amiga-x to cut a block. Wonder how
they did it.
-larry
Would it be acceptable to modify the menu structure when the string gadget is
being used, so that the command sequence key would not be active. Or would that
be a little dangerous to modify that struct??
Ray
Ray,
I rreally don't know. You might try just turning off the COMMSEQ flag on
receipt of a GADGETDOWN, and turning it back on with either a GADGETUP or when
your window becomes active again. The reason for the two ending conditions is
that if you click outside a string gadget, you don't get a GADGETUP.
One other thought… you might want to consider making a window the size of
your gadget, making it BORDERLESS, and put a string gadget in the window,
filling it right up. That way, you bring the window up, bring the string gadget
up, and if you have ACITVATEWINDOW set, the menus will be disabled in the one
behind. I don't know how this would fit in with what you are doing though.
-larry
Ray,
I rreally don't know. You might try just turning off the COMMSEQ flag on
receipt of a GADGETDOWN, and turning it back on with either a GADGETUP or when
your window becomes active again. The reason for the two ending conditions is
that if you click outside a string gadget, you don't get a GADGETUP.
One other thought… you might want to consider making a window the size of
your gadget, making it BORDERLESS, and put a string gadget in the window,
filling it right up. That way, you bring the window up, bring the string gadget
up, and if you have ACITVATEWINDOW set, the menus will be disabled in the one
behind. I don't know how this would fit in with what you are doing though.
-larry
Would it be acceptable to modify the menu structure when the string gadget is
being used, so that the command sequence key would not be active. Or would that
be a little dangerous to modify that struct??
Ray
Larry,
Yea – you're right! And (at least in TxED), the string gadgets work. Since
the string gadgets are only contained in Requesters, maybe the menus are
removed before the Requester is rendered (just guessing). That'd probably do
it.
..Bob
Bob,
Actually, (I'm sure you knew this…) the 'file-requester' is a window in
TxEd. – Keith
Keith,
As are the o!er 'requester' windows – that's right. And those windows
don't have menus – the main window does. (Sometimes the obvious eludes me!
<grin>)
..Bob
Keith,
As are the o!er 'requester' windows – that's right. And those windows
don't have menus – the main window does. (Sometimes the obvious eludes me!
<grin>)
..Bob
Bob,
Actually, (I'm sure you knew this…) the 'file-requester' is a window in
TxEd. – Keith
Larry,
Yea – you're right! And (at least in TxED), the string gadgets work. Since
the string gadgets are only contained in Requesters, maybe the menus are
removed before the Requester is rendered (just guessing). That'd probably do
it.
..Bob