Cursor manaagement

1 view
Skip to first unread message

EagleEye

unread,
Oct 21, 2008, 4:04:30 AM10/21/08
to EEGUI
I think part of a GUI should be the ability to handle cursors... the
cursor would be an "always on top" type of thing... drawn somewhat
like the tooltip object... as a singleton... basically it would be a
guiImage object that is repositioned every time the mouse moves...

Thus far, all of my projects have been in windowed mode using the
windows mouse... I'd like to start hiding that and using a GUI element
to show where the mouse cursor is... but I want to do more than that.
I want to make cursor management EASY... meaning, you can call a
simple guicore function to "set cursor" to a specific one by name.

So I think I may create a guiCursor class that would be used to define
various cursor types, where you would name them and they would be
added to an internal list of cursors with various names. So you could
simply set it up like so...

Dim MyCursor as new guiCursor
(set up the cursor texture, name, etc)
MyCursor.Name = "Main"
Guicore.AddCursor(MyCursor)

Then later, you could say...

Guicore.UseCursor("Main")

Sound good?
Reply all
Reply to author
Forward
0 new messages