mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-30 12:12:47 +02:00
MG: added some mouse cursors
git-svn-id: trunk@225 -
This commit is contained in:
parent
06516e70d4
commit
9522dc1fd6
@ -85,6 +85,11 @@ type
|
|||||||
Cursor_XTerm : pGDKCursor;
|
Cursor_XTerm : pGDKCursor;
|
||||||
Cursor_StdArrow : pGDKCursor;
|
Cursor_StdArrow : pGDKCursor;
|
||||||
Cursor_HSplit : pGDKCursor;
|
Cursor_HSplit : pGDKCursor;
|
||||||
|
Cursor_VSplit : pGDKCursor;
|
||||||
|
Cursor_SizeNWSE : pGDKCursor;
|
||||||
|
Cursor_SizeNS : pGDKCursor;
|
||||||
|
Cursor_SizeNESW : pGDKCursor;
|
||||||
|
Cursor_SizeWE : pGDKCursor;
|
||||||
|
|
||||||
public
|
public
|
||||||
constructor Create;
|
constructor Create;
|
||||||
@ -242,6 +247,9 @@ end.
|
|||||||
{ =============================================================================
|
{ =============================================================================
|
||||||
|
|
||||||
$Log$
|
$Log$
|
||||||
|
Revision 1.8 2001/03/15 14:40:09 lazarus
|
||||||
|
MG: added some mouse cursors
|
||||||
|
|
||||||
Revision 1.7 2001/02/20 16:53:27 lazarus
|
Revision 1.7 2001/02/20 16:53:27 lazarus
|
||||||
Changes for wordcompletion and many other things from Mattias.
|
Changes for wordcompletion and many other things from Mattias.
|
||||||
Shane
|
Shane
|
||||||
|
@ -118,6 +118,11 @@ begin
|
|||||||
gdk_Cursor_Destroy(Cursor_XTerm);
|
gdk_Cursor_Destroy(Cursor_XTerm);
|
||||||
gdk_Cursor_Destroy(Cursor_StdArrow);
|
gdk_Cursor_Destroy(Cursor_StdArrow);
|
||||||
gdk_Cursor_Destroy(Cursor_HSplit);
|
gdk_Cursor_Destroy(Cursor_HSplit);
|
||||||
|
gdk_Cursor_Destroy(Cursor_VSplit);
|
||||||
|
gdk_Cursor_Destroy(Cursor_SizeNWSE);
|
||||||
|
gdk_Cursor_Destroy(Cursor_SizeNS);
|
||||||
|
gdk_Cursor_Destroy(Cursor_SizeNESW);
|
||||||
|
gdk_Cursor_Destroy(Cursor_SizeWE);
|
||||||
|
|
||||||
gtk_object_unref(PGTKObject(FGTKToolTips));
|
gtk_object_unref(PGTKObject(FGTKToolTips));
|
||||||
FGTKToolTips := nil;
|
FGTKToolTips := nil;
|
||||||
@ -159,6 +164,11 @@ begin
|
|||||||
Cursor_XTerm := gdk_Cursor_New(gdk_XTerm);
|
Cursor_XTerm := gdk_Cursor_New(gdk_XTerm);
|
||||||
Cursor_StdArrow := gdk_Cursor_New(GDK_LEft_Ptr);
|
Cursor_StdArrow := gdk_Cursor_New(GDK_LEft_Ptr);
|
||||||
Cursor_HSplit := gdk_Cursor_New(GDK_SB_H_DOUBLE_ARROW);
|
Cursor_HSplit := gdk_Cursor_New(GDK_SB_H_DOUBLE_ARROW);
|
||||||
|
Cursor_VSplit := gdk_Cursor_New(GDK_SB_V_DOUBLE_ARROW);
|
||||||
|
Cursor_SizeNWSE := gdk_Cursor_New(GDK_TOP_LEFT_CORNER);
|
||||||
|
Cursor_SizeNS := gdk_Cursor_New(GDK_SB_V_DOUBLE_ARROW);
|
||||||
|
Cursor_SizeNESW := gdk_Cursor_New(GDK_BOTTOM_LEFT_CORNER);
|
||||||
|
Cursor_SizeWE := gdk_Cursor_New(GDK_SB_H_DOUBLE_ARROW);
|
||||||
|
|
||||||
gtk_key_snooper_install(@GTKKeySnooper, @FKeyStateList);
|
gtk_key_snooper_install(@GTKKeySnooper, @FKeyStateList);
|
||||||
|
|
||||||
@ -1027,6 +1037,11 @@ begin
|
|||||||
crHourGlass: gdk_window_set_cursor (pgtkWidget(TWinControl(Sender).Handle)^.window, Cursor_Watch);
|
crHourGlass: gdk_window_set_cursor (pgtkWidget(TWinControl(Sender).Handle)^.window, Cursor_Watch);
|
||||||
crDefault : gdk_window_set_cursor (pgtkWidget(TWinControl(Sender).Handle)^.window, Cursor_StdArrow);
|
crDefault : gdk_window_set_cursor (pgtkWidget(TWinControl(Sender).Handle)^.window, Cursor_StdArrow);
|
||||||
crHSplit : gdk_window_set_cursor (pgtkWidget(TWinControl(Sender).Handle)^.window, Cursor_HSplit);
|
crHSplit : gdk_window_set_cursor (pgtkWidget(TWinControl(Sender).Handle)^.window, Cursor_HSplit);
|
||||||
|
crVSplit : gdk_window_set_cursor (pgtkWidget(TWinControl(Sender).Handle)^.window, Cursor_VSplit);
|
||||||
|
crSizeNWSE : gdk_window_set_cursor (pgtkWidget(TWinControl(Sender).Handle)^.window, Cursor_SizeNWSE);
|
||||||
|
crSizeNS : gdk_window_set_cursor (pgtkWidget(TWinControl(Sender).Handle)^.window, Cursor_SizeNS);
|
||||||
|
crSizeNESW : gdk_window_set_cursor (pgtkWidget(TWinControl(Sender).Handle)^.window, Cursor_SizeNESW);
|
||||||
|
crSizeWE : gdk_window_set_cursor (pgtkWidget(TWinControl(Sender).Handle)^.window, Cursor_SizeWE);
|
||||||
|
|
||||||
else
|
else
|
||||||
Exit;
|
Exit;
|
||||||
@ -2683,6 +2698,9 @@ end;
|
|||||||
{ =============================================================================
|
{ =============================================================================
|
||||||
|
|
||||||
$Log$
|
$Log$
|
||||||
|
Revision 1.32 2001/03/15 14:40:09 lazarus
|
||||||
|
MG: added some mouse cursors
|
||||||
|
|
||||||
Revision 1.31 2001/03/12 12:17:02 lazarus
|
Revision 1.31 2001/03/12 12:17:02 lazarus
|
||||||
MG: fixed random function results
|
MG: fixed random function results
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user