freqpot.gadget - a BOOPSI gadget class for applications that need a round "slider" |
|
This is a BOOPSI gadget subclass which can be used with either intuition.library, gadtools.library or with reaktor.library. It is compatible with OS3.1 and newer, and maybe ClassAct, though that has not been tested. The freqpot.gadget (or panpot or radiodial) class gives audio and other application developers an easy way to place a round proportional gadget in a window. When selected, a little green indicator light comes on, showing that the gadget is active. By dragging the mouse vertically, horizontally, or even diagonally, the gadget selection value is increased or decreased. |
|
The code should be more or less complete, it is used in a slightly different form in my soft synth program (see panpot gadget test archive), however, I was still having some slight problems as to how and where to run the various "methods" of this class. I think C= never finished the documentation of this part of BOOPSI. The gadget image will scale itself to any size specified, its background, shadow and light colorpens as well as the indicator light, can all be selected by the programmer. The gadget value is increased or decreased by moving the mouse up/down or left/right. Holding down shift, while dragging, will speed up the process. |
|
|
The source (SAS C v6.58) and documentation are included in the archive. Although the gadget values are displayed correctly in the integer box above it, this only happens when the gadget is released, so to some extent it appears to work. The freqpot.gadget is a full BOOPSI class, compiled as a proper BOOPSI class (library), which needs to be installed in the user's Sys:classes/gadgets drawer before it can be used by installed software. Obviously this test program loads it from PROGDIR:. |
|
The reason for its existence is simply that I wanted it. If you want it too, it is here as a free download: |
|
|
All rights to this software remain with the author, however, anyone may freely use it and spread it as they wish, provided none of the archive contents are changed in any way. Any liability for correct operation remains with the implementor, the author is in no way responsible for any eventual damage, nor for any other unwelcome results due to misuse. If you do use it, I would appreciate an email telling me how you use it, but any other suggestions, flames or bugreports are welcome too. My email address is on the 'crew' page, accessed via the 'intro' graphic link below. |
|
|
|
|
|