Mouse position: Difference between revisions
m
→{{header|Phix}}
m (Phix/pGUI) |
|||
Line 935:
Note that canvasmotion coordinates are relative to the top left of the canvas, whereas the other two are absolute.
{{libheader|Phix/pGUI}}
<lang Phix>-- demo\rosetta\Mouse_position.exw
include pGUI.e
Line 956 ⟶ 954:
IupSetStrAttribute(timer_lbl,"TITLE","timer %d, %d",{x,y})
return IUP_IGNORE
end function
Line 988 ⟶ 982:
dialog = IupDialog(IupHbox({frame_1,frame_2}, "MARGIN=5x5, GAP=5"))
IupSetAttribute(dialog,"TITLE","Mouse motion");
IupCloseOnEscape(dialog)
IupSetGlobal("INPUTCALLBACKS", "Yes");
|