Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.clipper.visual-objects > #13522

Re: File Open Dialog

From Jamal <nospam@example.com>
Newsgroups comp.lang.clipper.visual-objects
Subject Re: File Open Dialog
Date 2022-01-23 15:23 -0500
Organization A noiseless patient Spider
Message-ID <sskdgp$qar$1@dont-email.me> (permalink)
References <fca452b8-021b-4035-a28c-2470aa3022d0n@googlegroups.com>

Show all headers | View raw


Kuno,

Add the following to your app:

define FCIDM_SHVIEW_LARGEICON := 0x7029
define FCIDM_SHVIEW_LIST := 0x702B
define FCIDM_SHVIEW_REPORT := 0x28716
define FCIDM_SHVIEW_SMALLICON := 0x702A
define FCIDM_SHVIEW_THUMBNAIL := 0x702D
define FCIDM_SHVIEW_TILE := 0x702E

define  ByAttributes := 0x7609
define  ByDateCreated := 0x7607
define  ByDateModified := 0x7606


METHOD Dispatch(oEvt, hDlg) CLASS OpenDialog
	LOCAL hHandle as PTR
	
	IF oEvt:message = 78
		
		hHandle := FindWindowEx(hDlg , 0, 
String2Psz("SHELLDLL_DefView"),String2Psz(""))

		SendMessage( hHandle, WM_COMMAND, FCIDM_SHVIEW_REPORT, 0 )
		// SendMessage( h1, WM_COMMAND, FCIDM_SHVIEW_LARGEICON, 0 )
		
		 SendMessage( hHandle, WM_COMMAND, ByDateCreated, 0 )
		
	ENDIF
	RETURN 0L

Jamal

On 1/20/2022 11:28 AM, Kuno Egger wrote:
> Does anyone know how to show the files in an OpenDialog() so they appear sorted by creation date?
> 
> Any advice would be greatly appreciated.
> 
> Kuno

Back to comp.lang.clipper.visual-objects | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

File Open Dialog Kuno Egger <kuno.egger@gmail.com> - 2022-01-20 08:28 -0800
  Re: File Open Dialog Jamal <nospam@example.com> - 2022-01-23 15:23 -0500
    Re: File Open Dialog Kuno Egger <kuno.egger@gmail.com> - 2022-02-25 08:46 -0800

csiph-web