I've got a label in my theme that acts as a gripper, and I would like the horizontal resize cursor to show up whenever the mouse is over it. Ideally, I would like to use the system's default resize cursor instead of my own. Is there any way I can look that up or get it into an evar?
if you set a (label-name)ResizeBorder width, you will get the resize arrow thingies. i suppose you could just set up a large ResizeBorder width to get the desired effect.
Doesn't that mean that the label is actually resizable, though. That would be bad.
Well, you could constrain the label's width with AutoMinWidth/AutoMaxWidth, stopping it from resizing.
The problem, though, would be if you were using the gripper to move the label, which I suspect you are.
You could use (label)Cursor (pathtocursor), but that would probably go off for the whole label, and not just the area you want.
No - I want the cursor for the whole label (it divides an area between two other sets of labels; download agua if you don't understand).
I think the auto min/max width thing should work. Thanks.
Correction: doesn't work after all. The label can't be moved when gripped within its resize border.
Ya, that's the problem I was mentioning.
Why can't you use: LabelCursor "path to cursor" ?
Just aesthetically, I would like to use the native system cursor instead of supplying my own. It's not a major issue, I was just curious if it could be done.
But you can use the native system cursors...
LabelNameCursor "$windir$cursors\size3_r.cur"
...for example.
(Note: $windir$ is a winxp system variable. Not sure about its availability in other OSes.)
That's all I was asking for.
Just to clarify, I have a cursor set at home with black, mac-style cursors. So the resize arrows should show up black on my computer, but white on someone else's. Will that happen?
With the new registry module you can grab the values of each of the cursors selected by the user, and assign the appropriate one to your label. That ought to allow you to get the kind of behavior you desire. The relevant registry keys are here:
HKEY_CURRENT_USER\Control Panel\Cursors
There *are* five different size cursors though (SizeAll, SizeNESW , SizeNS, SizeNWSE, SizeWE), so you'll need to decide which one is appropriate. The rest is left as an exercise for the reader.
If the user has "default" or "none" set for their Pointers, it looks like the actual cursor names aren't there.
Do we know what the names are for the default cursors then? You could set those to be the fallback values when there is no user-specified cursor, I would think.
I don't, but it'd be easy to figure out, prob.
So there, now jqubit has a project. :D
To what registry module are you referring?
Thanks a lot for letting me know about that, though. Seems like a lot of trouble to go to for one cursor, but I might as well.