Support

If you have a problem or need to report a bug please email : support@dsprobotics.com

There are 3 sections to this support area:

DOWNLOADS: access to product manuals, support files and drivers

HELP & INFORMATION: tutorials and example files for learning or finding pre-made modules for your projects

USER FORUMS: meet with other users and exchange ideas, you can also get help and assistance here

NEW REGISTRATIONS - please contact us if you wish to register on the forum

Users are reminded of the forum rules they sign up to which prohibits any activity that violates any laws including posting material covered by copyright

hiding cursor and clipping cursor position in Ruby Component

For general discussion related FlowStone

hiding cursor and clipping cursor position in Ruby Component

Postby arm » Mon May 05, 2014 11:34 am

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...
arm
 
Posts: 1
Joined: Wed Jul 28, 2010 4:29 pm

Return to General

Who is online

Users browsing this forum: No registered users and 75 guests