Hi,
Again me with another question about Reaction/Intuition.
Sorry for all these newby questions... It's my first Reaction project...
In my program i have to catch MouseX/MouseY where the user hit the RMB.
I do that without problem in WMHI_MOUSEBUTTONS / MENUDOWN. I can even use a popupmenu.
I only have to add WINDOW_GadgetHelp,TRUE and WA_RMBTrap, TRUE to my window.
I am opening a window with a string gadget and OK and Cancel buttons. I use WMHI_VANILLAKEY to catch Enter (13) and Escape (27) keys to act as if the buttons were clicked.
The problem I have is when typing in string gadget and hit Enter it automatically closes the window at VANILLAKEY with Enter (13) key. How do I stop this?
I want:
type type type ENTER
deactivate string gadget
Enter (fake click on OK button)
I have been trying to catch it with a hook but can't quite get it to do want I want.
Hi,
I try again to mimic MUI function in Reaction.
In MUI, you can start a program in iconified state using "set(app,MUIA_Application_Iconified,TRUE) ;".
With Reaction, Window seems to have to be opened before to be iconified. Therefore, you see the window a short time and it's iconified using "IDoMethod(win, WM_ICONIFY) ;"
I didn't find a Window.class parameter to start a window in iconified state.
Does it exist ?
Thank you (and sorry for all these newbies questions that I ask currently)
Hello to all. I am trying to create a list of thumbs in my program, and I would like this list to have a scrollbar. So I tried to use a virtual gadget with a vertical layout in it.
Is there a way to make a string object read only YET still allow to click in to copy the text? I don't want the user to be able to type or delete characters, but still copy the string to paste somewhere else (text editor).
I would imagine it would need a hook and ignore all input (except double click to select all, then Copy).
I have a BOOPSI gadget class that is just a box. Above it is a weightbar that can grow/shrink my gadget's height. Is there a way to make the width grow with it to keep an "aspect ratio" of sorts?
Height increased by 2, width increased by 4.
My gadget is the left most. There are other gadgets to the right of it. They would have to shrink in width while the main one grows in width. The other gadget heights do not change.