05-08-2006, 03:06 PM
I think you don't need to initialize or get name from handle. You can identify the control by id.
Function FreehandZoom:
It works with Macromedia Freehand MX 11.
Examples
Zoom +25%:
Zoom -25%:
Zoom to 100%:
Function FreehandZoom:
;/
function size action ;;action: 0 set, 1 add, -1 sub
int handle=id(432 "FreeHand")
str s
if(action)
,s.getwintext(handle)
,int i=val(s)
,if(action>0) size=i+size
,else size=i-size
s=size
act handle
BlockInput 1
key- CSAW
key (s) Y
BlockInput 0
;BlockInput and key- CSAW are used to prevent mixing modifier keys with Enter in case the trigger is a mouse trigger with "When released" unchecked.
It works with Macromedia Freehand MX 11.
Examples
Zoom +25%:
Zoom -25%:
Zoom to 100%:
