Guidance
指路人
g.yi.org
software / rapidq / Examples / QObject / Object / QImageDialog.html

Register 
注册
Search 搜索
首页 
Home Home
Software
Upload

  
Appendix A: QImageDialog  
Documentation component by D.Glodt (c)2004 Appendix A: QImageDialog

QImageDialog Component

QImageDialog is dialog box selection of  files with visualization of the graphic types.

          This component requires DLL NVIEWLIB for the visualization of the jig , gif, jpg, pcx, tga, dib, rle types ,
          if this one is not present in the system or in the directory of executable, only  the bmp, ico, cur, ani  types will be
         visualized.

QImageDialog Properties

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

QImageDialog Methods

Method Type Description Params





Execute FUNCTION AS BOOLEAN Show the dialog box 0

QImageDialog Events

Event Type Occurs when... Params





QImageDialog Examples

$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
 
 

掌柜推荐
 
 
 
 
 
 
 
 
 
 
 
 
© Sat 2024-12-14  Guidance Laboratory Inc.
Email:webmaster1g.yi.org Hits:0 Last modified:2003-12-31 12:19:10