Livecode Drawing Standalone
Posted: Fri Jun 21, 2019 8:09 pm
I have an old stack (built under LC 4.6.4) that has a component that does some simple drawing. There is a tool bar (some buttons and menus) and below that a drawing area (a scrolling group)
A mouseMove handler sets the tool to the *pointer tool* or the graphics tool (with the applicable type set in the templateGraphic) when over the drawing area and back to the *browse tool* when over the toolbar (so the user could click buttons/menus to perform functions in the toolbar)
In LC4.6.4 when a object was selected in the drawing area (showing selected object handles) and the cursor moved to the toolbar and switched back to the browse tool, the selection handles remained and any selected object was still among the selectedObjects
Now having converted the stack to LC9.0.5, when the cursor is set back to the browse tool, the selection handles on any selected objects disappear and no objects are selected!?
So, how in LC9, does one do the basic task of using LC's built in tools to select objects in a "drawing area" (a group) and keep them selected while mousing outside the drawing area to actually perform some function by clicking and sending a mouseUp event (or menupick or whatever)?
The graphic/drawing tools are not by strong suit in LiveCode. A working sample stack or detailed working sample code would be really helpful so I can understand what the best practice model is for how to do this?
A mouseMove handler sets the tool to the *pointer tool* or the graphics tool (with the applicable type set in the templateGraphic) when over the drawing area and back to the *browse tool* when over the toolbar (so the user could click buttons/menus to perform functions in the toolbar)
In LC4.6.4 when a object was selected in the drawing area (showing selected object handles) and the cursor moved to the toolbar and switched back to the browse tool, the selection handles remained and any selected object was still among the selectedObjects
Now having converted the stack to LC9.0.5, when the cursor is set back to the browse tool, the selection handles on any selected objects disappear and no objects are selected!?
So, how in LC9, does one do the basic task of using LC's built in tools to select objects in a "drawing area" (a group) and keep them selected while mousing outside the drawing area to actually perform some function by clicking and sending a mouseUp event (or menupick or whatever)?
The graphic/drawing tools are not by strong suit in LiveCode. A working sample stack or detailed working sample code would be really helpful so I can understand what the best practice model is for how to do this?