published TComboBox.OnDbClick

git-svn-id: trunk@6647 -
This commit is contained in:
mattias 2005-01-20 16:58:16 +00:00
parent a4169e7bc6
commit 87dfdda5ef
3 changed files with 12 additions and 24 deletions

View File

@ -4907,14 +4907,17 @@ end;
procedure TURLPropertyEditor.SetFilename(const Filename: string); procedure TURLPropertyEditor.SetFilename(const Filename: string);
function FilenameToURL(const Filename: string): string; function FilenameToURL(const Filename: string): string;
{$IFDEF Windows}
var var
i: Integer; i: Integer;
{$ENDIF}
begin begin
Result:=Filename; Result:=Filename;
if PathDelim<>'/' then {$IFDEF Windows}
for i:=1 to length(Result) do for i:=1 to length(Result) do
if Result[i]=PathDelim then if Result[i]='\' then
Result[i]:='/'; Result[i]:='/';
{$ENDIF}
if Result<>'' then if Result<>'' then
Result:='file://'+Result; Result:='file://'+Result;
end; end;

View File

@ -744,39 +744,17 @@ end;
procedure TCustomComboBox.CNCommand(var TheMessage: TLMCommand); procedure TCustomComboBox.CNCommand(var TheMessage: TLMCommand);
begin begin
case TheMessage.NotifyCode of case TheMessage.NotifyCode of
{CBN_DBLCLK:
DblClick;
CBN_EDITCHANGE:
Change;}
CBN_DROPDOWN: CBN_DROPDOWN:
begin begin
FDroppedDown:=true; FDroppedDown:=true;
DropDown; DropDown;
AdjustDropDown; AdjustDropDown;
end; end;
{CBN_SELCHANGE:
begin
Text := Items[ItemIndex];
Click;
Select;
end;}
CBN_CLOSEUP: CBN_CLOSEUP:
begin begin
FDroppedDown:=false; FDroppedDown:=false;
CloseUp; CloseUp;
end; end;
{CBN_SETFOCUS:
begin
FIsFocused := True;
FFocusChanged := True;
SetIme;
end;
CBN_KILLFOCUS:
begin
FIsFocused := False;
FFocusChanged := True;
ResetIme;
end;}
end; end;
end; end;
@ -793,6 +771,9 @@ end;
{ {
$Log$ $Log$
Revision 1.51 2005/01/20 16:58:16 mattias
published TComboBox.OnDbClick
Revision 1.50 2005/01/13 18:39:45 mattias Revision 1.50 2005/01/13 18:39:45 mattias
fixed getting ItemIndex before combobox destroys handle fixed getting ItemIndex before combobox destroys handle

View File

@ -349,6 +349,7 @@ type
property OnChangeBounds; property OnChangeBounds;
property OnClick; property OnClick;
property OnCloseUp; property OnCloseUp;
property OnDblClick;
property OnDrawItem; property OnDrawItem;
property OnDropDown; property OnDropDown;
property OnEditingDone; property OnEditingDone;
@ -1213,6 +1214,9 @@ end.
{ ============================================================================= { =============================================================================
$Log$ $Log$
Revision 1.185 2005/01/20 16:58:16 mattias
published TComboBox.OnDbClick
Revision 1.184 2005/01/17 16:42:35 mattias Revision 1.184 2005/01/17 16:42:35 mattias
improved TLabel autosizing improved TLabel autosizing