In my new gadget class I allow setting of GA_HintInfo. I don't know if I am setting it wrong in OM_SET or not doing it right in the dispatcher at GM_HELPTEST. It shows my gadget's hint info for every gadget regardless of what theirs is.
I have made a hierarchical listbrowser which works: everything is indented properly and can be collapsed/expanded as expected.
But there is a graphical problem: the LISTBROWSER_LeafImage image is being used for every node, not just the leaf nodes. The images I passed for LISTBROWSER_ShowImage and LISTBROWSER_HideImage are never used.
So I have been exploring building my own gadgets. I am bit stumped as to what defines a BOOPSI gadget to be a Reaction gadget. I clearly see distinction with MUI as it has its own messaging and base classes, but for Reaction I don't see any characteristics that clearly define any functional requirements for a Reaction gadget. I do see a lot of selective implementation of base GadgetClass attributes. For example GA_Hidden, does it work or not who knows until you try. Is there a clear helloworld gadget example that shows a skeleton of a gadgetclass derived gadget?
Is it somehow possible to have ReAction gui's render to something else than a normal window? For instance, to have it render to a bitmap instead, so you can do tricks with it and shit? How would I communicate with the interface if not through the physical mouse?
I'm experimenting with what the Amiga RKRM / Dev Wiki refer to as "composite gadgets", i.e. gadget classes composed of other BOOPSI gadgets. My experimental gadget is actually a layout consisting of a few button.gadget objects; basically it's a kind of a toolbar for input selection.
I've opened a ReAction window which has (among others) the IDCMP_RAWKEY and IDCMP_EXTENDEDKEYBOARD flags set.
Whenever I'm signalled that something has happened with the window I call its WM_HANDLEINPUT method. This is what happens:
When a normal key is pressed the method's result has got the WMHI_RAWKEY bit set and I can parse the raw key as expected. The next result I get is WMHI_LASTMSG.
New to reaction programming and I am having a bit of trouble understanding a couple concepts. One thing I am trying to do is completely control positioning of gadgets utilizing LAYOUT_NoLayout
1. Without using GIMMIEZEROZERO on the window attribute how do you get the proper metrics for the borders and other gadgets?
2. The label image class.
How do you control the size and position of label in a layout if you are using so you have manual control over placement like you can with gadgets.