[lazarus] SetCursor

Shane Miller SMiller1 at stvgb.org
Fri Jan 14 13:30:20 EST 2000


I have moved the initial creation of the cursors to GTKObject.Init and the destruction to AppTerminate.  This was you aren't creating a cursor each time you change to another type.

Does anyone know of a method to grab the current cursor?  I would like to determine what the default cursor is for a control so when a user set's the Cursor property to crDefault I would know what to set it to...

Shane


>>> Marc.Weustink at cuperus.nl 01/12/00 10:47AM >>>
+ From: Shane Miller [mailto:SMiller1 at stvgb.org] 
+
+ I see. I thought you were referring to the fixed widget that
+ is on the FORM.

No.

+ When you call gdk_window_set_cursor you send it the
+ PGTKWIDGET's ^.window property which is it's GDKWINDOW or (if
+ it doesn't have one) it's parent's GDKWINDOW.  I will look
+ into seeing if the control has a fixed widget, but I think
+ that will cause the same issues.

In the beginning I thought it might make a difference, now, I'm not sure.

+ For example, if you have a
+ widget that has a fixed widget on it and you set it's cursor,
+ what happens if you add controls to the widget?

You add the controls to the fixed widget. I exepect that will get the same
cursor as theit parent (=fixed).

+ I'll look into this a bit more.  Did you look at it by
+ pressing the SETTEXT button on the testform?

Nope, I'm at work now, I only read the list.

Marc

_________________________________________________________________
     To unsubscribe: mail lazarus-request at miraclec.com with
                "unsubscribe" as the Subject
    archives at http://www.miraclec.com/list_archives/lazarus






More information about the Lazarus mailing list