Rapid-Q Documentation by William Yu (c)1999 Appendix A: QOPENDIALOG

QOPENDIALOG Component

QOpenDialog displays a standard Window's file selection dialog box, it does not show shortcuts on WinXP. Note your current working will change to the directory last used by QOpenDialog. If you use the Snakedile fixed Libs version 1.06 (Nov. 2006) or higher then QOpenDialog is automatically Sizeable.

QOpenDialog Properties
FieldTypeR/WDefaultSupport





CaptionSTRINGRWW
FileNameSTRINGRWWX
FilterSTRINGRWW
FilterIndexINTEGERRW1W
InitialDirSTRINGRWW

QOpenDialog Methods
MethodTypeDescriptionParamsSupport





ExecuteFUNCTIONReturns TRUE or FALSE0WX


QOpenDialog Examples
  '-- Simple demo
  DIM OpenDialog AS QOpenDialog

  IF OpenDialog.Execute THEN
    ShowMessage "You selected "+OpenDialog.FileName
  END IF

'-- Using filters
  DIM OpenDialog AS QOpenDialog

  OpenDialog.Filter = "Picture files|*.BMP;*.ICO|All Files|*.*"
  OpenDialog.FilterIndex = 2    '' Use "All Files" as our default

  IF OpenDialog.Execute THEN
    ShowMessage "You selected "+OpenDialog.FileName
  END IF

Prev Component
Contents
Next Component