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

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 OpenImageEnDialog does not use InitialDir?

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

View 
UserName:
Password:
Format  Bold Italicized Underline  Align Left Centered Align Right  Horizontal Rule  Insert Hyperlink   Browse for an image to attach to your post Browse for a zip to attach to your post Insert Code  Insert Quote Insert List
   
Message 

 

Emoji
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Black Eye [B)]
Frown [:(] Shocked [:0] Angry [:(!] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
dcs Posted - Oct 16 2012 : 09:49:11
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.
2   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Jul 01 2020 : 19:18:16
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
spetric Posted - Jul 01 2020 : 16:01:03
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.