Question on widgets for classic mac os

Does Symantec projects not have a concept of multiple targets? Might be time to upgrade to Metrowerks. You can set that up to build everything with a single key press using multiple targets and dependencies.

You can look at the Metrowerks code resource examples and see how they might translate to Symantec.

MPW may also have examples.

Inside AppMaker CD #12, there's a "Third Party Products" folder which contains "Jims CDEFs v1.51".
I can't find AppMaker CD #12 online, but "Jims CDEFs v1.50" and a 1.51 update exist at Info-Mac. Search for "Jim's CDEFs"
https://info-mac.org/viewtopic.php?t=2567
https://info-mac.org/viewtopic.php?t=2568

Modeless dialogs (including multiple windows) example mentioned at https://68kmla.org/bb/threads/pop-up-menus-on-system-6.50915/post-574130 with static text elements, buttons, and pop-up menus (if you don't mind reading Pascal).

Would the Piano be a single control, such that you can use TrackControl to drag a mouse across all the piano keys?
 
Does Symantec projects not have a concept of multiple targets? Might be time to upgrade to Metrowerks. You can set that up to build everything with a single key press using multiple targets and dependencies.

I wrote about my experience of using Metrowerks' multiple target support as one of the steps toward creating MacRelix:


Would the Piano be a single control, such that you can use TrackControl to drag a mouse across all the piano keys?

If your piano is limited to 88 keys (which ought to be enough for anybody), you could regard each key as a separately highlightable indicator. I don't like how close it is to the upper bound of 125 or so, though that can be overlooked. But the design of control tracking is that you hit-test to see which indicator you clicked in, and then track that indicator. So you could only track a single key that way, not multiple keys. You definitely wouldn't want each key to be its own control.

You could have a single indicator as in a scroll bar, with a value ranging from 0 (no key) to 1 (lowest key, e.g. A0) to N (highest key, e.g. C8 for N=88). As you drag, instead of drawing a thumb in different locations and scrolling a document, you invert various key regions and alter the sound being played. You might need some special handling to set the value back to zero after tracking.

Another way is not to use a control at all, and handle the events yourself. That's how I did it in Organ Console (which comes with Legacynth as one of its test apps), though I was focused on handling keyDown / keyUp events first.
 
Back
Top