Changeset 570 for trunk/Packages/CevoComponents
- Timestamp:
- May 13, 2024, 7:00:49 PM (7 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Packages/CevoComponents/ScreenTools.pas
r565 r570 109 109 procedure UnshareBitmap(Bitmap: TBitmap); 110 110 procedure Gtk2Fix; 111 procedure Gtk2DisableControlStyling(WinControl: TWinControl); 111 112 procedure LoadConfig(Key: string); 112 113 procedure SaveConfig(Key: string); … … 214 215 uses 215 216 {$IFDEF DPI}Dpi.PixelPointer,{$ELSE}PixelPointer,{$ENDIF} 216 Directories, Sound, Registry; 217 Directories, Sound, Registry 218 {$IFDEF LCLGTK2}, gtk2, WSProc{$ENDIF}; 217 219 218 220 var … … 1770 1772 end; 1771 1773 1774 procedure Gtk2DisableControlStyling(WinControl: TWinControl); 1775 begin 1776 // https://gitlab.com/freepascal.org/lazarus/lazarus/-/issues/38516 1777 {$IFDEF LCLGTK2} 1778 // parse gtkrc from string 1779 gtk_rc_parse_string(PChar('style "noengine" {' + LineEnding + 1780 'engine "" {}' + LineEnding + 1781 '}' + LineEnding + 1782 'widget "*.your-edit" style "noengine"')); 1783 1784 if WinControl.HandleAllocated then begin 1785 // set gtk name to our component 1786 gtk_widget_set_name({%H-}PGtkWidget(WinControl.Handle), 'your-edit'); 1787 end; 1788 {$ENDIF} 1789 end; 1790 1772 1791 procedure LoadConfig(Key: string); 1773 1792 var
Note:
See TracChangeset
for help on using the changeset viewer.