zeljan1
a2153c9bcb
Gtk3: TToolbar should be TCustomControl, also this is first commit maded with lazarus-gtk3 ide :), just few secs after those changes it crashed :))))
2025-01-22 23:30:34 +01:00
zeljan1
52468145b6
Gtk3: fixed TCustomTabControl/TCustomPage sizing, fixed bug where Widget property getter initialized widget if it's destroyed.
2025-01-22 23:07:57 +01:00
zeljan1
54e4530082
Gtk3: fixed invalid size from TGtk3WidgetSet.GetClientRect. issue #41343
2025-01-22 13:17:27 +01:00
zeljan1
372fc3b29c
Gtk3: safe guard against duplicate signal assignment.
2025-01-21 16:18:01 +01:00
zeljan1
4c92117a9a
Gtk3: more debug, check if widget is realized in SetBounds.
2025-01-21 14:26:51 +01:00
zeljan1
9d0d6b229a
Gtk3: TCustomControl should start without scrollbars by any meaning, so it uses correct size setted up by lcl. Scrollbar sizes are loaded dynamically now. issue #41338
2025-01-20 21:36:24 +01:00
zeljan1
fd3a20f5c9
Gtk3: Fixed sizing of group box and relatives checkgroup and radiogroup, fixed radiobutton gtk asserts because of HiddenRadioButton
2025-01-20 19:23:41 +01:00
zeljan1
baef5a1511
Gtk3: fixed ownerdraw combobox.
2025-01-19 21:38:31 +01:00
zeljan1
24bf163157
Gtk3: Implemented LCLGtkSpinButton to fix sizing of GtkSpinButton, especially autosize.
2025-01-19 20:22:04 +01:00
zeljan1
834f380863
Gtk3: applied scrollbars size to client rect if overlay scrolling is enabled.
2025-01-19 17:52:15 +01:00
zeljan1
0c0b6882c0
Gtk3: Fixed button sizing/autosizing by introducing LCLGtkButton class, fixed SetScrollInfo, fixed GetClientRect for all scrollable widgets.
2025-01-18 23:33:42 +01:00
zeljan1
b230dabbd3
Gtk3: removed unused code.
2025-01-17 22:57:59 +01:00
zeljan1
6022d3d881
Gtk3: connect proper methods to value-changed of scrollbars.
2025-01-17 21:42:18 +01:00
zeljan1
f35e1cc8ec
Gtk3: Create TMainMenu handle (menubar) on demand, needed when TMainMenu is created dynamically at runtime, eg Lazarus IDE.
2025-01-17 19:59:43 +01:00
zeljan1
fd05614958
Gtk3: use TLMessage instead of TLMMouse.
2025-01-17 19:32:59 +01:00
zeljan1
11d421735f
Gtk3: fixed TGtk3Button OnClick
2025-01-17 18:47:10 +01:00
zeljan1
acd16b6b41
Gtk3: use new LCLGtkComboBox and LCLGtkEntry classes, reorganized code, now all pure gtk3 callbacks are static class methods.
2025-01-17 18:29:33 +01:00
zeljan1
efd17f0d68
Gtk3: use LazLogger.
2025-01-16 07:36:30 +01:00
zeljan1
318f3825b7
Gtk3: fixed crash in TGtk3ScrolledWin.
2025-01-15 22:33:07 +01:00
zeljan1
2592b7e842
Gtk3: apply ScrollX & ScrollY to cairo and mouse pos.
2025-01-15 21:56:47 +01:00
zeljan1
7cff16a42a
Gtk3: fixed moving by mouse selected widget in designer.
2025-01-15 17:09:14 +01:00
zeljan1
69b940b0c3
Gtk3: fixed build ws with define GTK3DEBUGEVENTS.
2025-01-15 13:47:02 +01:00
zeljan1
cae5c79b47
Gtk3: reduce paint triggering at design time.
2025-01-15 13:36:28 +01:00
zeljan1
7bd95e5168
Gtk3: stop enter/leave notify events while designing because it calls repaints.
2025-01-14 11:41:51 +01:00
zeljan1
6d849e6312
Gtk3: started TGtk3DesignWidget.
2025-01-14 09:43:12 +01:00
zeljan1
8ac0fa2e95
Gtk3: fixed selecting and returning proper color from TColorDialog.
2025-01-10 16:19:02 +01:00
zeljan1
966b895003
Gtk3: implemented TGtk3ListBox.GetScrollWidth(), TGtk3WSCustomListBox.GetScrollWidth()
2025-01-09 22:38:34 +01:00
zeljan1
b0a562be0d
Gtk3: do not append scrollbars offset to the TGtk3ListBox.GetItemRect(), implemented TGtk3ListBox.GetIndexAtXY(), TGtk3WSCustomListBox.GetIndexAtXY()
2025-01-09 22:32:57 +01:00
zeljan1
5497c5a166
Gtk3: implemented TGtk3ListBox.getItemRect().
2025-01-09 22:13:40 +01:00
zeljan1
51a8bb1b80
Gtk3: safer way to free allocated data.
2025-01-09 21:27:21 +01:00
zeljan1
a11eaff2fc
Gtk3: fixed memleak with TGtk3Listbox list.
2025-01-09 20:48:25 +01:00
zeljan1
9eb9286e45
Gtk3: fixed memleak with caret.
2025-01-09 17:55:50 +01:00
zeljan1
3d347460a2
Gtk3: do not stop event if we are not real focus widget. Now TCustomControl gets VK_RETURN so eg TSynEdit can add new line.
2025-01-09 16:02:07 +01:00
zeljan1
3f1f1134c3
Gtk3: fixed arrow keys handling.
2025-01-09 15:30:13 +01:00
Juha
8583ffa716
LCL: Formatting.
2024-11-23 08:10:58 +02:00
Maxim Ganetsky
b35ba030b3
LCL-Gtk3: Convert ampersands to underscores and back in captions as needed. Hints from Anton Kavalenka, issue #41220 .
2024-11-11 22:46:51 +03:00
Martin
906384cc9d
Add deprecated for old names. More fixes.
2024-09-23 12:44:32 +02:00
Maxim Ganetsky
ab1d8281f2
LCL-Gtk3: fixed autosizing of TUpDown buttons for some themes, patch by Anton Kavalenka, issue #41086
2024-08-16 22:56:34 +03:00
Juha
1393bae4a7
LCL-GTK3: Make AnchorDocking display dock names properly. Issue #40341 , patch by Anton Kavalenka.
2024-07-27 13:23:19 +03:00
Maxim Ganetsky
0c424bf0be
LCL-Gtk3: Allow TForm to be resized to smaller size than initially defined by removing excessive set_size_request() call. Based on patch by Anton Kavalenka, issue #41031 .
2024-07-24 00:24:55 +03:00
Juha
c97810f83e
LCL-GTK3: Fix picture preview dialog. Issue #41004 , patch by Anton Kavalenka.
2024-06-28 17:54:46 +03:00
Abou Al Montacir
d3f0f0ee86
GTK3: Fixed handling of scroll event.
...
Scrolling was not correctly handled due to error in the logic of
handling the scrolling event.
This fix is related to #21067 .
2024-02-11 10:27:48 +01:00
Abou Al Montacir
e5ba0c58f1
GTK3: Fixed access violation issue in Gtk3Page.
...
The widget was freed and assigned nil pointer before it was unreferenced
which may lead to occasional access violation on application shutdown.
This fix is related to #40713 .
2024-02-08 13:00:58 +01:00
Abou Al Montacir
b44cf28194
GTK3: Enabled resizing notebook children after insertion.
...
This allows fixing some problems but it is probably just a workaround.
This fix is related to #40713 .
2024-02-07 21:54:51 +01:00
Abou Al Montacir
8da1763be3
GTK3: Enable showing hot key in page control widgets caption.
...
We store the raw caption in the `Text` field and convert ampersands
(`&`) to underscores (`_`) before using `set_markup_with_mnemonic` to
update the label text while honoring the hot key definition.
NB: The underscore will be drawn only if user hits `alt` key which is
a Gnome/Gtk3 feature.
This fix is related to #40713 .
2024-01-31 11:53:05 +01:00
Abou Al Montacir
1019007853
GTK3: Fixed selected item text returned by ComboBox Text property.
...
We need to use `GtkEntry` for comboboxes with `has_entry = True` and
set the `column_id` property.
Closes #40706
2024-01-24 19:40:50 +01:00
Abou Al Montacir
fb3002163e
GTK3: Improved initial size of created windows by setting constraints.
2023-12-09 14:18:36 +01:00
Abou Al Montacir
bfc786c46c
GTK3: Fixed handling widget focus when csNoFocus is used.
...
Closes : #40037 .
When the widget has `csNoFocus` set, we don't set focus on it.
2023-11-28 22:08:15 +01:00
Abou Al Montacir
3256ff9246
GTK3: Fixed setting cursor on widgets.
...
Closes : #40374 . Thanks To: Anton Kavalenka.
When the widget doesn't have a window, we fall back to parent's one.
2023-11-24 19:59:54 +01:00
mattias
f9709f6d59
lcl: gtk3: clean up
2023-08-05 11:10:16 +02:00