mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2025-08-26 11:17:57 +08:00
Get code running in both XE + XE5 compilers:
* Conditionally including units does not really work, because of a IDE bug: http://stackoverflow.com/questions/13776195/how-to-conditionally-include-some-units . So, we define a unit alias for System.Actions in XE, which we do not need in XE5. * Dynamically use the fitting numeric type per compiler for a TUpDown.OnChangingEx event.
This commit is contained in:
@ -81,7 +81,8 @@ type
|
||||
FUpDown: TUpDown;
|
||||
procedure DoKeyDown(Sender: TObject; var Key: Word; Shift: TShiftState);
|
||||
procedure DoKeyUp(Sender: TObject; var Key: Word; Shift: TShiftState);
|
||||
procedure UpDownChangingEx(Sender: TObject; var AllowChange: Boolean; NewValue: SmallInt; Direction: TUpDownDirection);
|
||||
procedure UpDownChangingEx(Sender: TObject; var AllowChange: Boolean;
|
||||
NewValue: {$IF CompilerVersion<26}SmallInt{$ELSE}Integer{$IFEND}; Direction: TUpDownDirection);
|
||||
procedure UpDownMouseUp(Sender: TObject; Button: TMouseButton; Shift: TShiftState; X, Y: Integer);
|
||||
procedure DoOnTimer(Sender: TObject);
|
||||
procedure ModifyDate(Offset: Integer);
|
||||
@ -634,7 +635,7 @@ end;
|
||||
|
||||
|
||||
procedure TDateTimeEditorLink.UpDownChangingEx(Sender: TObject; var AllowChange: Boolean;
|
||||
NewValue: SmallInt; Direction: TUpDownDirection);
|
||||
NewValue: {$IF CompilerVersion<26}SmallInt{$ELSE}Integer{$IFEND}; Direction: TUpDownDirection);
|
||||
begin
|
||||
if FTimer.Enabled then
|
||||
Exit;
|
||||
|
@ -19,7 +19,7 @@ uses
|
||||
routine_editor, trigger_editor, event_editor, options, EditVar, helpers, createdatabase, table_editor,
|
||||
TableTools, View, Usermanager, SelectDBObject, connections, sqlhelp, dbconnection,
|
||||
insertfiles, searchreplace, loaddata, copytable, VTHeaderPopup, Cromis.DirectoryWatch, SyncDB, gnugettext,
|
||||
JumpList;
|
||||
JumpList, System.Actions;
|
||||
|
||||
|
||||
type
|
||||
|
Reference in New Issue
Block a user