diff --git a/ide/main.pp b/ide/main.pp index 01e053340e..370e61bc26 100644 --- a/ide/main.pp +++ b/ide/main.pp @@ -3737,6 +3737,7 @@ begin AncestorType,true)); if CInterface=nil then begin // error streaming component -> examine lfm file + writeln('ERROR: streaming failed lfm="',LFMBuf.Filename,'"'); NewComponent:=nil; AnUnitInfo.Component:=NewComponent; // open lfm file in editor @@ -10315,6 +10316,9 @@ end. { ============================================================================= $Log$ + Revision 1.709 2004/02/04 13:40:18 mattias + ShortCutToText now deletes any modifier + Revision 1.708 2004/02/04 11:09:40 mattias added DefineProperties check for check lfm diff --git a/lcl/actnlist.pas b/lcl/actnlist.pas index f0a269b32d..34bcc227f4 100644 --- a/lcl/actnlist.pas +++ b/lcl/actnlist.pas @@ -332,6 +332,7 @@ end; procedure Register; begin RegisterComponents('Standard',[TActionList]); + RegisterNoIcon([TAction]); end; {$I containedaction.inc} diff --git a/lcl/dialogs.pp b/lcl/dialogs.pp index 28a573b311..b94ac533db 100644 --- a/lcl/dialogs.pp +++ b/lcl/dialogs.pp @@ -166,7 +166,8 @@ type ofEnableSizing, // dialog can be resized, e.g. via the mouse ofDontAddToRecent, // do not add the path to the history list ofForceShowHidden, // show hidden files - ofViewDetail // details are OS and interface dependent + ofViewDetail, // details are OS and interface dependent + ofAutoPreview // details are OS and interface dependent ); TOpenOptions = set of TOpenOption; @@ -410,6 +411,9 @@ end. { ============================================================================= $Log$ + Revision 1.44 2004/02/04 13:40:19 mattias + ShortCutToText now deletes any modifier + Revision 1.43 2004/02/04 00:21:40 mattias added SelectDirectory and TListBox.ItemVisible diff --git a/lcl/include/menuitem.inc b/lcl/include/menuitem.inc index 1d351cc20d..dd294f6508 100644 --- a/lcl/include/menuitem.inc +++ b/lcl/include/menuitem.inc @@ -945,11 +945,13 @@ end; Set the shortcut ------------------------------------------------------------------------------} -Procedure TMenuItem.SetShortCut(AValue : TShortCut); +Procedure TMenuItem.SetShortCut(const AValue : TShortCut); +var + NewKey: Word; + NewShift: TShiftState; Begin - if FShortCut <> AValue then - begin - ShortCutChanged(FShortcut, AValue); + if FShortCut <> AValue then begin + ShortCutChanged(FShortCut, AValue); FShortCut := AValue; end; end; @@ -1079,6 +1081,9 @@ end; { ============================================================================= $Log$ + Revision 1.47 2004/02/04 13:40:19 mattias + ShortCutToText now deletes any modifier + Revision 1.46 2004/02/02 18:09:41 mattias added TMenuItem.Action @@ -1248,6 +1253,9 @@ end; $Log$ + Revision 1.47 2004/02/04 13:40:19 mattias + ShortCutToText now deletes any modifier + Revision 1.46 2004/02/02 18:09:41 mattias added TMenuItem.Action diff --git a/lcl/lcltype.pp b/lcl/lcltype.pp index 4383ad7801..fd0a8961c3 100644 --- a/lcl/lcltype.pp +++ b/lcl/lcltype.pp @@ -552,6 +552,8 @@ const VK_NONAME = $FC; VK_PA1 = $FD; VK_OEM_CLEAR = $FE; + + VK_HIGHESTVALUE = $FE; //============================================== // @@ -1941,7 +1943,6 @@ const type TShortCut = Low(Word)..High(Word); {should be moved to classes} - function HiWord(i: integer): word; function LoWord(i: integer): word; Function Char2VK(C : Char) : Word; @@ -1982,6 +1983,9 @@ end. { $Log$ + Revision 1.57 2004/02/04 13:40:19 mattias + ShortCutToText now deletes any modifier + Revision 1.56 2004/02/04 12:48:17 mattias added CLX colors diff --git a/lcl/menus.pp b/lcl/menus.pp index d640827058..eb2ad24488 100644 --- a/lcl/menus.pp +++ b/lcl/menus.pp @@ -151,7 +151,7 @@ type function GetHandle: HMenu; Procedure SetImageIndex(value : Integer); procedure SetGroupIndex(AValue: Byte); - procedure SetShortCut(AValue : TShortCut); + procedure SetShortCut(const AValue : TShortCut); procedure SetVisible(AValue: Boolean); procedure MenuChanged(Rebuild : Boolean); procedure SetChildOrder(Child: TComponent; Order: Integer); override; @@ -305,8 +305,6 @@ type property OnClose: TNotifyEvent read FOnClose write FOnClose; end; - - function ShortCut(const Key: Word; const Shift : TShiftState) : TShortCut; procedure ShortCutToKey(const ShortCut : TShortCut; var Key: Word; var Shift : TShiftState); @@ -370,14 +368,14 @@ Begin if ssAlt in Shift then Inc(Result,scAlt); end; -Procedure ShortCutToKey(const ShortCut : TShortCut; var Key: Word; +Procedure ShortCutToKey(const ShortCut: TShortCut; var Key: Word; var Shift : TShiftState); begin - key := ShortCut and not(scShift+scAlt+scCtrl); + Key := ShortCut and $FF; Shift := []; - if ShortCut and scShift <> 0 then Include(shift,ssShift); - if ShortCut and scAlt <> 0 then Include(shift,ssAlt); - if ShortCut and scCtrl <> 0 then Include(shift,ssCtrl); + if ShortCut and scShift <> 0 then Include(Shift,ssShift); + if ShortCut and scAlt <> 0 then Include(Shift,ssAlt); + if ShortCut and scCtrl <> 0 then Include(Shift,ssCtrl); end; @@ -393,6 +391,9 @@ end. { $Log$ + Revision 1.60 2004/02/04 13:40:19 mattias + ShortCutToText now deletes any modifier + Revision 1.59 2004/02/02 18:09:41 mattias added TMenuItem.Action