Changeset 464 for trunk/Packages
- Timestamp:
- Nov 29, 2023, 6:25:22 PM (12 months ago)
- Location:
- trunk/Packages/CevoComponents
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Packages/CevoComponents/BaseWin.pas
r460 r464 35 35 procedure FormKeyDown(Sender: TObject; var Key: Word; Shift: TShiftState); 36 36 procedure FormDeactivate(Sender: TObject); 37 procedure SmartUpdateContent(ImmUpdate: Boolean = False); 38 procedure StayOnTop_Workaround; 37 procedure SmartUpdateContent(ImmediateUpdate: Boolean = False); 39 38 property WindowMode: TWindowMode read FWindowMode; 40 39 end; … … 214 213 end; 215 214 216 procedure TBufferedDrawDlg.SmartUpdateContent(Imm Update: Boolean);215 procedure TBufferedDrawDlg.SmartUpdateContent(ImmediateUpdate: Boolean); 217 216 begin 218 217 if Visible then begin 219 218 OffscreenPaint; 220 219 SmartInvalidate; 221 if Imm Update then220 if ImmediateUpdate then 222 221 Update; 223 222 end; … … 230 229 if yMax > UsedOffscreenHeight then 231 230 UsedOffscreenHeight := yMax; 232 end;233 234 procedure TBufferedDrawDlg.StayOnTop_Workaround;235 // stayontop doesn't work when window is shown for the first time236 // after application lost focus, so show all stayontop-windows in first turn237 var238 SaveOnShow, SaveOnPaint: TNotifyEvent;239 begin240 Top := Screen.Height;241 SaveOnShow := OnShow;242 OnShow := nil;243 SaveOnPaint := OnPaint;244 OnPaint := nil;245 FWindowMode := wmNone;246 Show;247 Hide;248 OnShow := SaveOnShow;249 OnPaint := SaveOnPaint;250 231 end; 251 232 -
trunk/Packages/CevoComponents/ButtonBase.pas
r447 r464 7 7 8 8 type 9 10 { TButtonBase } 11 9 12 TButtonBase = class(TGraphicControl) 10 13 protected … … 25 28 private 26 29 Active: Boolean; 30 procedure SetGraphic(AValue: TBitmap); 27 31 public 28 32 constructor Create(aOwner: TComponent); override; 29 property Graphic: TBitmap read FGraphic write FGraphic;33 property Graphic: TBitmap read FGraphic write SetGraphic; 30 34 // property DownSound: string read FDownSound write FDownSound; 31 35 // property UpSound: string read FUpSound write FUpSound; … … 120 124 end; 121 125 126 procedure TButtonBase.SetGraphic(AValue: TBitmap); 127 begin 128 if FGraphic = AValue then Exit; 129 FGraphic := AValue; 130 end; 131 122 132 procedure TButtonBase.SetDown(X: Boolean); 123 133 begin -
trunk/Packages/CevoComponents/GraphicSet.pas
r456 r464 45 45 Data: TBitmap; 46 46 Mask: TBitmap; 47 pixUsed: array of Byte;47 PixUsed: array of Byte; 48 48 Items: TGraphicSetItems; 49 49 procedure ResetPixUsed; … … 169 169 procedure TGraphicSet.ResetPixUsed; 170 170 begin 171 SetLength( pixUsed, Data.Height div 49 * 10);172 if Length( pixUsed) > 0 then173 FillChar( pixUsed[0], Length(pixUsed), 0);171 SetLength(PixUsed, Data.Height div 49 * 10); 172 if Length(PixUsed) > 0 then 173 FillChar(PixUsed[0], Length(PixUsed), 0); 174 174 end; 175 175
Note:
See TracChangeset
for help on using the changeset viewer.