Documentation component by D.Glodt (c)2004 | Appendix A: QImageDialog |
|
Field | Type | R/W | Défault | |
|
|
|
|
|
Caption | STRING | R/W | ||
Title of dialog box | ||||
FileName | STRING | R/W | ||
File name with path. | ||||
Filter | STRING | R/W | ||
Filter for file type. | ||||
FilterIndex | INTEGER | R/W | ||
Filter index for file type. | ||||
InitialDir | STRING | R/W | ||
Set the initial directory | ||||
DlgCaption | ARRAY OF STRING | R/W | ||
Label of controls of dialog box,in english by default
item 1 is label of file name item 2 is label of file type item 3 is caption of open button item 4 is caption of cancel button |
||||
ErrorLanguage | STRING | R/W | ||
Error language for dll.
(French,English,German,Dutch,Portuguese,Spanish,Japanese,Italian) |
||||
MultiSelect | BOOLEAN | R/W | FALSE | |
SelCount | INTEGER | R | ||
Number of file selected | ||||
Selected | QSTRINGLIST | R/W | ||
Files selected with path |
Method | Type | Description | Params | |
|
|
|
|
|
Execute | FUNCTION AS BOOLEAN | Show the dialog box | 0 |
Event | Type | Occurs when... | Params | |
|
|
|
|
|
$typecheck on
$include "object\QImageDialog.inc"
dim a as
QimageDialog
a.filter="Tous format(*.bmp;*.ico;*.ani;*.cur*.gif;*.jpg;*.dib;*.rle;*.tga;*.pcx)|*.bmp;*.ico;*.ani;*.cur*.gif;*.jpg;*.dib;*.rle;*.tga;*.pcx|Fichiers
bitmap(*.bmp)|*.bmp|Fichiers gif(*.gif)|*.gif|Fichiers jpg(*.jpg)|*.jpg|Fichiers
ico(*.ico)|*.ico|Fichiers curseur(*.cur;*.ani)|*.cur;*.ani"
a.caption="Ouvrir"
a.DlgCaption(1)="Nom
du fichier:"
a.DlgCaption(2)="Type
du fichier:"
a.DlgCaption(3)="Ouvrir"
a.DlgCaption(4)="Annuler"
a.errorLanguage="french"
a.MultiSelect=true
a.execute
end