Commit Graph

278 Commits

Author SHA1 Message Date
zeljan1
357feec170 Gtk3: use cached lcl value for page_size 2025-03-21 10:02:12 +01:00
zeljan1
fff12f1750 Gtk3: fixed TGtk3Window.GetClientRect, must subtract scrollbar sizes if overlay scrollbars are used. 2025-03-10 20:47:07 +01:00
zeljan1
28a04f2144 Gtk3: fixed signature of RangeChangeValue 2025-03-10 17:09:44 +01:00
zeljan1
ce839dfa76 Gtk3: attach change-value and value-changed to the window, also reimplemented OffsetMousePos() 2025-03-10 15:45:06 +01:00
zeljan1
e11d2d5969 Gtk3: cleanup. 2025-03-09 20:24:04 +01:00
zeljan1
c5c4076b98 Gtk3: cleanup. 2025-03-09 20:00:39 +01:00
zeljan1
85ffeaae19 Gtk3: proper cast and checks. 2025-03-09 19:14:46 +01:00
zeljan1
a21db703fd Gtk3: connect ScrolledLayoutSizeAllocate, create internal adjustments for TGtk3Window. 2025-03-09 18:17:25 +01:00
zeljan1
ccda0b17c4 Gtk3: renamed CustomControlLayoutSizeAllocate to ScrolledLayoutSizeAllocate, moved to TGtk3ScrollableWin class so can be reused later by TGtk3Window. 2025-03-09 18:14:59 +01:00
zeljan1
158d270845 Gtk3: simplified code. 2025-03-09 18:09:33 +01:00
zeljan1
5b22d571b2 Gtk3: fixed mess with mouse wheel events. 2025-03-07 10:23:35 +01:00
zeljan1
46def57926 Gtk3: fixed right mouse click behaviour. 2025-03-07 09:05:47 +01:00
zeljan1
b854217dd0 Gtk3: improved TGtk3CustomControl scrolling and sizing. 2025-03-06 20:54:54 +01:00
zeljan1
5a59ce23e7 Gtk3: fixed wrong assignment of TScrollBar params. 2025-03-06 10:09:33 +01:00
zeljan1
d73ca45293 Gtk3: improved calculation of content size of TScrollingWinControl. 2025-03-04 13:47:18 +01:00
zeljan1
7a4ede3fa4 Gtk3: proper resize of LCLGtkFixed inside SrollingWindow, also mouse offset is needed to make LCL happy. 2025-03-04 09:55:10 +01:00
zeljan1
283bf2e564 Gtk3: fixed TGtk3CustomControl.getClientRect, accidentally removed part of code in previous commit.issue #41498 2025-03-01 16:59:11 +01:00
zeljan1
81493e2a7d Gtk3: cleanup. 2025-03-01 13:12:33 +01:00
zeljan1
66a50ddd0e Gtk3: finally fixed gtk philosophy how content size and adjustments should be calculate so gtk is happy, now TCustomControl have correct scrollbars calculations. 2025-03-01 13:02:41 +01:00
zeljan1
53561a732a Gtk3: implemented SetSelText for GtkEntry. 2025-02-25 16:45:48 +01:00
zeljan1
3a75d77348 Gtk3: allow changing background color of TTabSheet like under gtk2 and win32 2025-02-25 14:38:25 +01:00
zeljan1
5b6aa6bc5b Gtk3: use GtkLayout instead of GtkFixed for TTabSheet handle, adjust TGtk3GroupBox client rect in sizeAllocate event if needed 2025-02-25 14:15:23 +01:00
zeljan1
f38f4c730f Gtk3: fixed TGtk3WidgetSet.ShowWindow for non toplevels, also include SW_HIDE for all widgets. 2025-02-25 09:20:35 +01:00
zeljan1
dfbb109d02 Gtk3: make mouseUp and MouseDown work for TButton, TBitBtn, TCheckBox, TRadioButton ... 2025-02-25 09:01:34 +01:00
zeljan1
a791654a4f Gtk3: Implemented TCustomMemo setSelStart,setCaretPos,setSelLength,setSelText and getters. 2025-02-24 19:50:37 +01:00
zeljan1
a8a1fc1666 Gtk3: removed unneeded TGtk3Container.AddChild(). 2025-02-23 21:30:23 +01:00
zeljan1
6f3d1328a7 Gtk3: implemented TCustomForm.AllowDropFiles & TCustomForm.OnDropFiles. 2025-02-23 18:38:37 +01:00
zeljan1
52ce6cd071 Gtk3: stop mouse press/release for wtPanel type, so dragging of TCustomPanel works now. 2025-02-23 18:15:22 +01:00
zeljan1
75d96cf0ea Gtk3: uncomment GtkLayout^.set_has_window(), it must have it's own window. 2025-02-23 15:39:42 +01:00
zeljan1
57cba016bb Gtk3: There's no need to calculate borders around image, when item width is set gtk calculates borders and spacings. 2025-02-23 13:31:18 +01:00
zeljan1
11ddd17c1b Gtk3: fixed crash in TGtk3ListView selection_changed signal. 2025-02-23 13:25:37 +01:00
zeljan1
96d378e919 Gtk3: proper calculate item width of listview vsIcon and vsSmallIcon 2025-02-23 13:16:50 +01:00
zeljan1
f6ceb6980a Gtk3: capture must be set to control, so make TCustomControls happy 2025-02-23 12:26:19 +01:00
zeljan1
247765dd5d Gtk3: fixed mouse press/release and unatended mouse grab from toplevel GdkWindow. 2025-02-23 11:56:28 +01:00
Juha
049fedf34a LCL-GTK2&3: Improve handling of font stretch and weight in font name. Issue #29596, patch by Juliette. 2025-02-23 12:42:07 +02:00
zeljan1
945b69cf99 Gtk3: improved mouse enter/leave events, cleanup. 2025-02-23 10:50:52 +01:00
zeljan1
1e1a309aa7 Gtk3: fixed mouse offsets when we are inside scrolled control, eg TCustomControl 2025-02-23 09:54:22 +01:00
zeljan1
27bd792656 Gtk3: TGtk3GroupBox does not need overriden SetBounds(). 2025-02-22 23:49:10 +01:00
zeljan1
25900905ef Gtk3: from now on we use GtkLayout instead of GtkFixed for container in TCustomPanel and TCustomGroupBox. Reason: beter sizing control and behaviour. 2025-02-22 23:11:08 +01:00
zeljan1
c3a7f80706 Gtk3: implemented color property for TCustomGroupBox. 2025-02-22 21:07:52 +01:00
zeljan1
a19c10092a Gtk3: fix for sporadic crash, removed unneeded LM_CLICKED. issue #41449 2025-02-22 20:39:10 +01:00
zeljan1
657ec3b852 Gtk3: Make GtkNotebook widget, removed GtkEventBox, fixes issue #41458 2025-02-22 20:35:06 +01:00
zeljan1
0ba6e1faaa Gtk3: surpress asertions in gtk when window have parent. 2025-02-22 10:03:26 +01:00
zeljan1
f03ffdbbd9 Gtk3: make combobox autocomplete work. 2025-02-22 09:28:30 +01:00
zeljan1
30fb2bbc22 Gtk3: implemented text selection options for GtkComboBox. 2025-02-22 08:46:32 +01:00
zeljan1
1923d653dc Gtk3: use gdk_window_get_device_position() when is_hint = 1 inside mouse move event. 2025-02-21 22:51:16 +01:00
zeljan1
dc40fbaf65 Gtk3: better fix for crash. issue #41449 2025-02-21 20:13:59 +01:00
zeljan1
b4bb6f4b64 Gtk3: do not trigger accidental visibilty of scrollbars. 2025-02-21 18:53:21 +01:00
zeljan1
8032aa76d3 Gtk3: hint window should not take focus in any case. ScrolledWindow must be cheated for scrollbar policy since many TCustomControl components does not use scrollbars at all. Edited in gtk3 IDE :) 2025-02-21 18:25:55 +01:00
zeljan1
d8cd947b55 Gtk3: fixed crash if handle vanish during input event.issue #41449 2025-02-21 17:52:46 +01:00