SiComponents Home Page SiComponents Forums
Here you will be able to get help and share your experience
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

siFileSaveDialog and OnTypeChange

 
Post new topic   Reply to topic    SiComponents Forums Forum Index -> TsiLang Components Suite
View previous topic :: View next topic  
Author Message
tportoff



Joined: 16 May 2008
Posts: 10

PostPosted: Tue Mar 23, 2010 6:29 pm    Post subject: siFileSaveDialog and OnTypeChange Reply with quote

Hello,
we are using the OnTypeChange Event of the siFileSaveDialog to change the extension of the filename displayed in the dialog.

To change the filename we use the good old SendMessage function:

SendMessageW(H, CDM_SETCONTROLTEXT, edt1, integer(PWideChar(WideString(S))));

This works fine with XP, but not with Vista and Win7. Is there any work around or any support for the new CommonDialog Interfaces of Vista and Win7? Or is there a chance to use the XP Dialogs? Setting OldStyle to true results in Win 3.11 Dialogs...that is too old Smile

thanks,
Torsten

Delphi 2009 / siLang Version 6.4
Back to top
View user's profile Send private message
isiticov
Site Admin


Joined: 21 Nov 2002
Posts: 2097

PostPosted: Wed Mar 24, 2010 8:40 am    Post subject: Reply with quote

Hello,

Vista dialogs have almost completely different content as well as controls and so on. So I suppose the message is sent to not the appropriate control or this control doesn't handle/allow such change. You can either try to find the proper control handle using some Windows Spy software line WinSpector or to disable VISTA_DIALOGS define in SI.INC file and re-build your project. Disabling VISTA_DIALOGS define will let you "old XP-style" dialogs which should work just fine.
Back to top
View user's profile Send private message
tportoff



Joined: 16 May 2008
Posts: 10

PostPosted: Thu Mar 25, 2010 5:42 pm    Post subject: siFileSaveDialog Reply with quote

Hello Igor,

thanks for the Info about the si.inc file. Yes, Vista and Win7 dialogs are really a complete different thing. Microsoft has the new IFileDialog interface for the common dialogs. No chance to access the controls of the new dialogs.
It's really not easy to create Apps, that work with Win2000, XP, Vista and Win7.

Well, not a Problem of the siSaveDialog. It's much more a problem of the TSaveDialog.


thanks,
Torsten
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    SiComponents Forums Forum Index -> TsiLang Components Suite All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by p h p B B  © 2001, 2005 p h p B B  Group