Mantis - Squeak
Viewing Issue Advanced Details
5392 Morphic minor always 11-10-06 08:18 09-08-08 17:42
wiz  
 
normal  
closed 3.10  
fixed  
none    
none 3.10  
0005392: [Fix] Sighting targets for sliders has problem when slider is tilted.
For this one
From Objects>scripting get a slider.
Put it directly in the world.
From red menu select sight target. ( a targeting cursor appears)
Select a target and press ( A menu of morphs appear)
Select a morph. (The target is set.)

Now tilt the slider 45 degrees with the blue halo handle.
From red menu select sight target. ( a targeting cursor appears)
Select a target and press ( There is no menu popup. The cursor just returns to normal)
The menu item used for sliders and buttons Morph>sightTarget: is set up to select only those targets which share the same owner as the slider.

When the slider is unrendered (i.e. untilted) and in the world all morphs are game.
When the slider is tilted its owner was its rendering morph which has no other submorphs so the only target you would pick would be the slider or pieces thereof.

The uploaded fix figures out the real owner of the slider and uses that as the hunting ground for targets.

SideNote: the other possible solution is to change the menu item to use
#sightWorldTarget: as the action. This would open up all morphs in the current world to selection.
Even if that path is eventually chosen it will be good to have this fix in so that when one chooses to limit the search it will be done correctly.

child of 0006530new  A mother for button, slider and menuItem targeting and argumenting related reports. 
 Morph-potentialTargetsAt.st [^] (410 bytes) 11-10-06 08:18

Notes
(0010574)
edgardec   
04-18-07 10:44   
This now is part of 7080wizFixesOfMorph.cs and was in updates for 3.10
Thanks Jerome !
(0012595)
KenCausey   
09-08-08 17:42   
harvested with update 7080 and released in 3.10