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

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

  
Appendix A: QSkin  
Documentation component by D.Glodt (c)2003 Appendix A: QSkin

QSkin Component

QSkin is component inherited from QForm used to have the shapes  and skins of file bitmap.

          QSkin has all the properties, methods and events of QForm.
          Dimensions of QSkin are those of the size of the affected bitmap to  its Skin property.

QSkin Properties

Field Type R/W Défault





Skin QIMAGE R/W
Bitmap Image to the skin of window
OffsWidth SHORT R/W
Offset width form
OffsHeight SHORT R/W
Offset height form

QSkin Methods

Method Type Description Params





SetDeskBar SUB The application will be in the task bar during its  reduction  0
Resize SUB Resize window after a skin change 0

QSkin Events

Event Type Occurs when... Params





QSkin Example
$typecheck on
$optimize on
$include "Object\QSkin.inc"
$resource img as "clock.bmp" ' skin bitmap file
declare sub showTime
dim tim as qtimer
tim.interval=1000
tim.OnTimer=ShowTime

CREATE Form AS QSkin
    Center
    skin.bmpHandle=img ' using skin bitmap
    skin.top=-1 ' offset position of bitmap
    OffsWidth=-5 'offset width form
    caption="Clock"
    create clock as qlabel
      top=60
      left=80
      font.bold=true
      font.size=24
      font.color=&hff0000
      caption=Time$
      labelStyle=2
      transparent=true
    end create
     Create b1 as qbutton
       top=140
       left=120
       kind=6
     end create
END CREATE
form.shapeform(img,&hffffff) ' define the shape with the same skin bitmap
form.setdeskbar
Form.ShowModal

sub showTime
  clock.caption=Time$
end sub
 
 
 

掌柜推荐
 
 
¥860.00 ·
 
 
¥900.00 ·
 
 
¥810.00 ·
 
 
¥317.00 ·
 
 
¥1,370.00 ·
 
 
¥660.00 ·
© Sun 2024-11-24  Guidance Laboratory Inc.
Email:webmaster1g.yi.org Hits:0 Last modified:2003-09-18 08:28:52