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
|