CompuServe Thread

Forum unknown · Programming

#Intui Qs

11 messages in this thread
#133489From: John DraperJul 6, 1988 2:25 AM
Fascinating… CED and TxEd both use right-Amiga-x to cut a block. Wonder how they did it. -larry
#133524From: Ray LambertJul 6, 1988 12:07 PM
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
#133656From: John DraperJul 7, 1988 9:14 PM
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
#133656From: John DraperJul 7, 1988 9:14 PM
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
#133524From: Ray LambertJul 6, 1988 12:07 PM
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
#133546From: Bob RakoskyJul 6, 1988 6:56 PM
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
#133557From: KEITH YOUNGJul 6, 1988 8:11 PM
Bob, Actually, (I'm sure you knew this…) the 'file-requester' is a window in TxEd. – Keith
#133564From: Bob RakoskyJul 6, 1988 9:50 PM
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
#133564From: Bob RakoskyJul 6, 1988 9:50 PM
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
#133557From: KEITH YOUNGJul 6, 1988 8:11 PM
Bob, Actually, (I'm sure you knew this…) the 'file-requester' is a window in TxEd. – Keith
#133546From: Bob RakoskyJul 6, 1988 6:56 PM
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