Default cursor for control doesn't work lazarus / 32-Linux ---------------------------------------------------------------------- Ocye · 2012-05-02 08:35 I have a panel with a small side area of 3px where the cursor is changed to crSizeNW/SW etc. (it's a resizeable panel). On the panel is a control, ie. listbox or glcontext. The embedded control has crDefault property. When I move the cursor with the right speed it isn't changed to default pointer sometimes. I tried with OnMouseLeave code for the panel but that didn't help. When I replace the cursor of the embedded control with something else like crCross it runs perfectly. What can I do? The problem does not occur under Windows. ---------------------------------------------------------------------- zeljko · 2012-05-02 10:16 Qt or gtk2 ? ---------------------------------------------------------------------- Ocye · 2012-05-02 11:01 Gtk2. I'll check Qt this evening. ---------------------------------------------------------------------- Ocye · 2012-05-02 17:08 No problem with Qt. Openglcontext not tested since it isn't supported. PS: I put some controls together and it is an issue with Qt too. To reproduce place a panel on a form and change cursor to crHourGlass. Add a listview to the panel and make it alClient. The cursor will change when moving over the bevel but stays an hourglass at the listview which cursor property is crDefault. PPS: Arch Linux, KDE 4.8.2 ---------------------------------------------------------------------- zeljko · 2012-05-03 05:43 That's because qt changes cursor for parent (TPanel) and then to all of it's children all the time. ---------------------------------------------------------------------- Ocye · 2012-05-03 11:05 Is it good to link cursor to parent? I don't think so but I should blame Qt for that. Or XOrg? The question remains: How do I use the proper default cursor for embedded controls?