Changeset 570
- Timestamp:
- May 13, 2024, 7:00:49 PM (7 months ago)
- Location:
- trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Inp.pas
r565 r570 90 90 if Center then 91 91 CenterToRect(Rect(0, 0, Screen.Width, Screen.Height)); 92 Gtk2DisableControlStyling(EditInput); 92 93 end; 93 94 -
trunk/LocalPlayer/MessgEx.pas
r554 r570 187 187 if Kind = mkModel then 188 188 EInput.Top := Height - (76 + Border); 189 Gtk2DisableControlStyling(EInput); 189 190 end; 190 191 -
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 -
trunk/Packages/DpiControls/Dpi.Controls.pas
r523 r570 244 244 public 245 245 Controls: TDpiControls; 246 function HandleAllocated: Boolean; 246 247 procedure ScreenChanged; override; 247 248 function ControlCount: Integer; … … 536 537 end; 537 538 539 function TWinControl.HandleAllocated: Boolean; 540 begin 541 Result := GetNativeWinControl.HandleAllocated; 542 end; 543 538 544 procedure TWinControl.ScreenChanged; 539 545 var -
trunk/Settings.pas
r568 r570 264 264 {$ENDIF} 265 265 UpdateInterface; 266 Gtk2DisableControlStyling(EditShortCutPrimary); 267 Gtk2DisableControlStyling(EditShortCutSecondary); 266 268 end; 267 269
Note:
See TracChangeset
for help on using the changeset viewer.