View Issue Details

IDProjectCategoryView StatusLast Update
0003120JEDI VCL00 JVCL Componentspublic2005-08-08 15:48
ReporteranonymousAssigned Toremkobonte 
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Product Version3.00 
Target VersionFixed in Version3.10 
Summary0003120: TJvFilenameEdit: Filenames with Spaces and AddQuotes := False
DescriptionWhen selecting a filename which contains spaces and opening the selection dialog again all characters after the first space are missing.
Example: DialogKind = dkSave
Set the filename to 'c:\this is a test.txt' (without the quotes of course).
Open the selection dialog by clicking the button.
The filename in the selection dialog is 'c:\this'.
Additional InformationHere's a fix for this issue.
The original code is in the IFDEF $ORIGINAL_CODE block, the fix in the $ELSE block.


{.$DEFINE ORIGINAL_CODE}

procedure TJvFilenameEdit.PopupDropDown(DisableEdit: Boolean);
var
  Temp: string;
  Action: Boolean;
begin
{$IFDEF ORIGINAL_CODE}
  Temp := inherited Text;
  Action := True;
  Temp := ClipFilename(Temp);
{$ELSE}
  Temp := GetFileName; // $$$
  Action := True; // $$$
{$ENDIF}
TagsNo tags attached.

Activities

remkobonte

2005-08-08 15:48

developer   ~0007697

This is now fixed in Rev. 1.177 of JvToolEdit.pas.

Issue History

Date Modified Username Field Change
2005-07-28 11:27 anonymous New Issue
2005-08-08 15:48 remkobonte Status new => resolved
2005-08-08 15:48 remkobonte Resolution open => fixed
2005-08-08 15:48 remkobonte Assigned To => remkobonte
2005-08-08 15:48 remkobonte Note Added: 0007697