mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-10 21:16:05 +02:00
Cocoa: fix some FocusRing config
This commit is contained in:
parent
dda392d165
commit
d80f0c44f5
@ -25,8 +25,8 @@
|
||||
setStrategy( TCocoaConfigFocusRing.Strategy.none, NSSTR('TCocoaTabControl') );
|
||||
setStrategy( TCocoaConfigFocusRing.Strategy.none, NSSTR('TCocoaButton') );
|
||||
setStrategy( TCocoaConfigFocusRing.Strategy.none, NSSTR('TCocoaTextField') );
|
||||
setStrategy( TCocoaConfigFocusRing.Strategy.none, NSSTR('TCocoaSpinEdit') );
|
||||
setStrategy( TCocoaConfigFocusRing.Strategy.none, NSSTR('TCocoaComboBox') );
|
||||
setStrategy( TCocoaConfigFocusRing.Strategy.none, NSSTR('TCocoaReadOnlyComboBox') );
|
||||
setStrategy( TCocoaConfigFocusRing.Strategy.none, NSSTR('TCocoaTableListView') );
|
||||
setStrategy( TCocoaConfigFocusRing.Strategy.none, NSSTR('TCocoaCollectionView') );
|
||||
|
||||
|
@ -26,7 +26,7 @@ uses
|
||||
// widgetset
|
||||
WSSpin, WSLCLClasses,
|
||||
// cocoa ws
|
||||
CocoaPrivate, CocoaWSCommon, CocoaTextEdits;
|
||||
CocoaAll, CocoaPrivate, CocoaWSCommon, CocoaTextEdits, Cocoa_Extra;
|
||||
|
||||
type
|
||||
|
||||
@ -71,6 +71,7 @@ begin
|
||||
lSpin.callback := TLCLCommonCallback.Create(lSpin, AWinControl);
|
||||
if (lSpin.Stepper.isKindOfClass(TCocoaSpinEditStepper)) then
|
||||
TCocoaSpinEditStepper(lSpin.Stepper).callback:=lSpin.callback;
|
||||
UpdateControlFocusRing(lSpin, AWinControl);
|
||||
end;
|
||||
|
||||
class procedure TCocoaWSCustomFloatSpinEdit.DestroyHandle(const AWinControl: TWinControl);
|
||||
|
@ -2001,6 +2001,7 @@ begin
|
||||
// to be tested and considered
|
||||
//ComboBoxSetBorderStyle(cmb, TCustomComboBoxAccess(AWinControl).BorderStyle);
|
||||
Result:=TLCLHandle(cmb);
|
||||
UpdateControlFocusRing(cmb, AWinControl);
|
||||
end;
|
||||
//todo: 26 pixels is the height of 'normal' combobox. The value is taken from the Interface Builder!
|
||||
// use the correct way to set the size constraints
|
||||
|
@ -131,7 +131,7 @@ end;"/>
|
||||
<License Value="modified LGPL-2
|
||||
"/>
|
||||
<Version Major="3" Minor="99"/>
|
||||
<Files Count="545">
|
||||
<Files Count="547">
|
||||
<Item1>
|
||||
<Filename Value="carbon/agl.pp"/>
|
||||
<AddToUsesPkgSection Value="False"/>
|
||||
@ -2693,6 +2693,14 @@ end;"/>
|
||||
<AddToUsesPkgSection Value="False"/>
|
||||
<UnitName Value="cocoatoolbar"/>
|
||||
</Item545>
|
||||
<Item546>
|
||||
<Filename Value="cocoa/cocoaconfigfocusring.inc"/>
|
||||
<Type Value="Include"/>
|
||||
</Item546>
|
||||
<Item547>
|
||||
<Filename Value="cocoa/cocoaconfig.inc"/>
|
||||
<Type Value="Include"/>
|
||||
</Item547>
|
||||
</Files>
|
||||
<CompatibilityMode Value="True"/>
|
||||
<LazDoc Paths="../../docs/xml/lcl"/>
|
||||
|
Loading…
Reference in New Issue
Block a user