hiding cursor and clipping cursor position in Ruby Component

For general discussion related FlowStone
Post Reply
arm
Posts: 1
Joined: Wed Jul 28, 2010 4:29 pm

hiding cursor and clipping cursor position in Ruby Component

Post by arm »

I want to share my way of doing subject
In the attached file i put some useful Ruby wrapped WinAPI functions for cursor manipulation, which was lacking in the standard set, and examples of their use (including holding ryby knob):

Code: Select all

setCursorPos(curpos, newpos)
cursorClip(curpos, rect)
cursorHide(hide)
cursorShow(show)

Standart Win32 API showCursor function doesn't work (I don know why), therefore i made a hook with standart ShowCur module.
All wrapped functions uses module view position in grid squares without the need for pixels, therefore it needs a reference point (curpos) - current view cursor position in grid squres. To use this functions in ruby components simply put "WinAPI and Utiities" module in top of your schematic.
Sorry for my english...
Post Reply