ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 OpenImageEnDialog does not use InitialDir?
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

dcs

USA
26 Posts

Posted - Oct 16 2012 :  09:49:11  Show Profile  Reply
It does not seem like OpenImageEnDialog switches to the InitialDir. I have a very simple code:

OpenImageEnDialog1->InitialDir = DIR + "\\Demo Images\\";
ShowMessage(OpenImageEnDialog1->InitialDir);

if (!OpenImageEnDialog1->Execute())
return;

The message box show the initial dir correctly, but OPenImageEnDialog does not seem to display the desired directory. I also tried to remove the last slash in the InitialDir but still no go.

Please help.

Thanks in advance.
M.

spetric

Croatia
308 Posts

Posted - Jul 01 2020 :  16:01:03  Show Profile  Reply
Hi,

I've bumped to similar problem. I can not set dynamically InitialDir to
TSaveImageEnDialog:


TSaveImageEnDialog *ienDialog = new TSaveImageEnDialog(this);
ienDialog->AutoSetFilter = false;
ienDialog->Filter = "Pump brush (*.pbr)|*.pbr";
ienDialog->DefaultExt = "pbr";
ienDialog->InitialDir = ExcludeTrailingBackslash(_dataKeeper->CommonBlock->PumpBrushDir);


Any workaround?

Update: my fault. I must use ienDialog->FileName to set path and give some initial ("untitled") filename.
Go to Top of Page

xequte

38610 Posts

Posted - Jul 01 2020 :  19:18:16  Show Profile  Reply
Hi

I can't reproduce any specific issues.

IntialDir is controlled by Windows, so I can't be sure of its exact funtionality. I would expect that IntialDir is ignored if Filename is specified.

Nigel
Xequte Software
www.imageen.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: