I have a question about input by mouse click.
I'm using the following function (using enterfunction).
"(command --> Mouse Click X 2 (objects select) --> Auto Property Change )"
But I want to add a new function.
after entering the command, if you select an area by dragging the mouse rather than clicking the mouse,
i want to you to do a different action on teh objects in the area.(It's a different behavior than the input through the mouse click.)
So I need to know How can i distinguish the mouse click and drag in enter function.
Please, Can i get some hint?
"(command --> Mouse Click X 2 (objects select) --> Auto Property Change1
--> Mouse drag Input(area select) --> Auto Property Change2)"
; store some properties on the form to record objects selected
?prompts list("First Object" "Second Object")
; ?points list(0:0)
?initProc "CCFtestFun" ; init / addPoints / delPoints / done
list(tempIndex 0:0 400:30 100)
; probably want to record the two selections
geSingleSelectPoint(wid nil newPt)
procedure(CCFtestDone(wid ok pointList)
printf("FIRST point %L selection %L\n"
printf("SECOND point %L selection %L\n"
You need to load the stroke key functions to define stroke/draw featureTo the the install path getInstallPath()
from your install path go to the stroke directory ( from the dfII go to the path below )dfII/etc/sted/
files needed to load into cadence sessiondef.strokes ( binary file of the stroke definitions )defstrokes.il ( your bindkey definitions )sted.env ( environment stuff )stroke.il ( cadence stuff )you will need a command line to bring up the gui to create your stroke keys/definitionsreadme file have the command line to bring up the stroke def gui
I am not sure how well the stroke functions are supported now, but if you get some practice they are handy.
If you do a search for stroke in the forum you can see the method to defining the stroke for scripts or cadence functions
This question was re-asked in the this subsequent post.