How to set cursor for TSplitter ? lazarus / 31-LCL ---------------------------------------------------------------------- jamie · 2021-05-30 21:43 It seems the Cursor property for the TSplitter does nothing? I can not set the cursor I want for some reason.. ? Drop a Tsplitter on a blank form and set the cursor to what ever, it uses its own cursor and ignores me? I am use to this from my wife but not coding.  Anyone got ideas other than me doing something I shouldn't need to ? ---------------------------------------------------------------------- wp · 2021-05-30 22:22 The cursor for the vertical splitter seems to be working, but not the one for the horizontal splitter. See attached demo: both cursors should be crHandPoint, but only the vertical one obeys. (Win 10) ---------------------------------------------------------------------- dsiders · 2021-05-30 22:35 Quote from: jamie on May 30, 2021, 11:43:51 pmIt seems the Cursor property for the TSplitter does nothing? I can not set the cursor I want for some reason.. ? Drop a Tsplitter on a blank form and set the cursor to what ever, it uses its own cursor and ignores me? I am use to this from my wife but not coding.  Anyone got ideas other than me doing something I shouldn't need to ? If you do anything in TSplitter that changes Align, ResizeAnchor, or Enabled  the only cursors you'll see are crVSplit, crHSplit, or crDefault. Check out UpdateCursor for the culprit. @wp saw crHandPoint only because the splitter did not set Align, ResizeAnchor, or Enabled. Maybe you could try TPairSplitter... it seems to have better support for cursors. ---------------------------------------------------------------------- jamie · 2021-05-30 23:32 Then this must be a bug then... I am surprise no one has seen this before. I found this in an older Laz and its still there in the trunk. I must be one of the few that dares to stretch the simple limits. ---------------------------------------------------------------------- jamie · 2021-05-30 23:48 This smells like some one called the RecreateWindow or RecreateWnd again! I just set the cursor during the form.onCreate and it works then so this means the window is getting recreated and cursor is receiving the default one.. P.S.   Yes, I looked in the UpdateCursor! why is this being done? I don't see any reason for this.. ---------------------------------------------------------------------- jamie · 2021-06-04 22:41 that seems to work in my Delphi.. I set the cursor and that what's used. It simply defaults at startup before the resource is read.. I guess It can be fixed but this is just strange why someone would do that ?