The Tiles Control:
Category |
Description |
Tile object and
overall management (properties, methods, events) |
|
Title object
(properties, methods, events) |
|
Link object
(properties, methods, events) |
The following
routines are used for the Tile
management in the Tiles Control object.
|
|
|
|
||
|
||
|
|
|
|
|
|
|
|
Sets or
returns the backcolor of the Tile area.
Syntax
TilesOCX.TileBackcolor [ = value
]
The TileBackcolor property has these parts:
Part |
Description |
TilesOCX |
An object expression that evaluates the Tiles Control object. |
value |
A numeric
expression of the background color |
Remarks
The default backcolor is &H00404080& (light
brown).
See Also
Sets or returns the picture behavior .
Syntax
TilesOCX.TileFit [ =
action ]
The TileFit
property has these parts:
Part |
Description |
TilesOCX |
An object expression that evaluates the Tiles
Control object. |
action |
An integer expression that sets how the
picture behaves (default 0) |
Settings
Possible settings for action are:
action |
Description |
0 |
Position the picture on the top left corner |
1 |
Stretch the picture to fit the tile box |
Remarks
The default action
is 0.
See Also
Sets or returns the tile height.
Syntax
TilesOCX.TileHeight [ = value ]
The TileHeight
property has these parts:
Part |
Description |
TilesOCX |
An object expression that evaluates the Tiles
Control object. |
value |
A numeric expression of the requested height
(twips) |
Remarks
The default tile height is 2250 twips (150 pixel).
See Also
Sets or returns the tile icon.
Syntax
Set TilesOCX.TileIcon [ = value ]
The TileIcon
property has these parts:
Part |
Description |
ScProOCX |
An object expression that evaluates the Tiles
Control object. |
value |
An expression containing a standard picture
(bmp, jpeg, ico, gif) |
Remarks
See Also
Sets or returns the tile layout .
Syntax
TilesOCX.TileMode [ =
action ]
The TileMode
property has these parts:
Part |
Description |
TilesOCX |
An object expression that evaluates the Tiles
Control object. |
action |
An integer expression that sets the tile
layout (default 0) |
Settings
Possible settings for action are:
action |
Description |
0 |
|
1 |
Title object positioned on the tile top,
starting on the right of the tile icon |
Remarks
The default action
is 0.
See Also
Sets or returns
the tile background picture.
Syntax
Set TilesOCX.TilePicture [ = value ]
The TilePicture property has these parts:
Part |
Description |
ScProOCX |
An object
expression that evaluates the Tiles Control object. |
value |
An expression containing
a standard picture (bmp, jpeg, ico, gif) |
Remarks
Before
loading the bitmap set the TileFit property.
See Also
Sets or returns the tile width.
Syntax
TilesOCX.TileWidth [ = value ]
The TileWidth
property has these parts:
Part |
Description |
TilesOCX |
An object expression that evaluates the Tiles
Control object. |
value |
A numeric expression of the requested width (twips) |
Remarks
The default tile width is 2250 twips (150 pixel).
See Also
This method enables registering at run time.
Syntax
TilesOCX.TileReg (value as string)
The TileReg
method has these parts:
Part |
Description |
TilesOCX |
An object expression that evaluates the Tiles
Control object. |
Value |
A string expression containing the customer
licence key |
Returns
> 0 - Register was successful
= 0 - Register failed (an error occurred)
Remarks
This method is useful in application
distribution.
See
Also
This method
shows the about window, where it is possible to register the ocx at design time.
Syntax
TilesOCX.ShowAbout ()
The ShowAbout method has these parts:
Part |
Description |
TilesOCX |
An object
expression that evaluates the Tiles Control object. |
() |
No data |
Returns
> 0 - Register was
successful
= 0 - Register failed
(an error occurred)
Remarks
This method is
useful in application distribution.
See
Also
Fires when a mouse click occurs on the tile
background.
Syntax (Visual
Basic)
Private Sub TilesOCX1_TileClick(button
as integer)
The TileClick
event has these parts:
Description |
|
button |
A numeric
expression for the mouse button (1 left, 2 right) |
Remarks
The sequence is
·
TileClick
·
TileDblClick
See Also
Fires when a mouse double click occurs on the tile
background.
Syntax (Visual
Basic)
Private Sub TilesOCX1_TileDblClick()
The TileDblClick
event has these parts:
Part |
Description |
() |
Remarks
The sequence is
·
TileClick
·
TileDblClick
See Also
Fires when a
mouse click occurs on the tile icon.
Syntax (Visual
Basic)
Private Sub TilesOCX1_PicClick(button
as integer)
The PicClick event has these parts:
Part |
Description |
button |
A numeric
expression for the mouse button (1 left, 2 right) |
Remarks
The sequence is
·
PicClick
·
PicDblClick
See Also
Fires when a
mouse double click occurs on the tile icon.
Syntax (Visual
Basic)
Private Sub TilesOCX1_PicDblClick()
The
PicDblClick event
has these parts:
Part |
Description |
() |
No data |
Remarks
The sequence is
·
PicClick
·
PicDblClick
See Also
The following
routines are used for the Title
management in the Tiles Control object.
|
|
|
|
||
|
||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Sets or returns the default alignment of the title
text.
Syntax
TilesOCX.
TitleAlignment [ =
action]
The TitleAlignment
property has these parts:
Part |
Description |
TilesOCX |
An object expression that evaluates the Tiles
Control object. |
Action |
An integer expression that sets how align the text in the title. The action value is
set by adding the below numbers. |
Settings
Possible settings for action are:
action |
Description |
0 |
Align left (default) |
1 |
Align right |
2 |
Align center |
Remarks
The default action
is 0.
See Also
Sets or returns
the default backcolor of the Title.
Syntax
TilesOCX.TitleBackcolor [ = value ]
The TitleBackcolor property has these parts:
Part |
Description |
TilesOCX |
An object expression
that evaluates the Tiles Control object. |
value |
An ole color expression of the background color |
Remarks
The
default backcolor
is &H00404080& (light brown).
See Also
Sets or returns
the background style of the title text.
Syntax
TilesOCX. TitleBackStyle
[ = action]
The TitleBackStyle property has these parts:
Part |
Description |
TilesOCX |
An object
expression that evaluates the Tiles Control object. |
Action |
An integer
expression that sets how align the text in the title.
The action value is set by adding the below numbers. |
Settings
Possible settings
for action are:
action |
Description |
0 |
Opaque |
1 |
Transparent |
Remarks
See Also
Sets or returns
the text of the title.
Syntax
TilesOCX.TitleDesc [
= value ]
The TitleDesc property has these parts:
Part |
Description |
TilesOCX |
An object
expression that evaluates the Tiles Control object. |
Value |
A string
expression containing the title text |
Remarks
The default text is Description1.
See Also
Sets or returns
the title font.
Syntax
TilesOCX.TitleFont.Prop [
= value ]
The TitleFont property has these parts:
Part |
Description |
TilesOCX |
An object
expression that evaluates the Tiles Control object. |
Prop |
Allowed
properties: Name, Size, Bold, Italic, Underline, Strikethrough |
value |
A font
expression containing the default title font parameters |
Remarks
The default font
is Ms San Serif bold 10.
See Also
Sets or returns
the default forecolor of the title.
Syntax
TilesOCX.TitleForecolor [ = value ]
The TitleForecolor property has these parts:
Part |
Description |
TilesOCX |
An object
expression that evaluates the Tiles Control object. |
value |
An ole color expression of the foreground color |
Remarks
The default forecolor is &HFFFFFF& (white).
See Also
Sets or returns
the title height.
Syntax
TilesOCX.TitleHeight [
= value ]
The TitleHeight property has these parts:
Part |
Description |
TilesOCX |
An object
expression that evaluates the Tiles Control object. |
value |
A numeric
expression of the requested height (twips) |
Remarks
The default title
height is 480 twips.
See Also
Sets or returns the title width.
Syntax
TilesOCX.TitleWidth [ = value ]
The TitleWidth
property has these parts:
Part |
Description |
TilesOCX |
An object expression that evaluates the Tiles
Control object. |
Value |
A numeric expression of the requested width (twips) |
Remarks
The title width is the same of the tile width
(automatic behaviour when loading and resizing the control: you can force the
width at run time after loading/resizing the control ).
See Also
Fires when a mouse click occurs on the title.
Syntax (Visual
Basic)
Private Sub TilesOCX1_TitleClick (button
as integer)
The TitleClick
event has these parts:
Part |
Description |
Button |
Remarks
The sequence is
·
TitleClick
·
TitleDblClick
See Also
Fires when a mouse double click occurs on the title.
Syntax (Visual
Basic)
Private Sub TilesOCX1_TitleDblClick ()
The TitleDblClick
event has these parts:
Part |
Description |
() |
No data |
Remarks
The sequence is
·
TitleClick
·
TitleDblClick
See Also
The following
routines are used for the Link
management in the Tiles Control object.
|
|
|
|
||
|
||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Sets or
returns the default alignment of the Link text.
Syntax
TilesOCX. LinkAlignment
[ = action]
The LinkAlignment property has these parts:
Part |
Description |
TilesOCX |
An object
expression that evaluates the Tiles Control object. |
Action |
An integer
expression that sets how align the text in the Link.
The action value is set by adding the below numbers. |
Settings
Possible
settings for action are:
action |
Description |
0 |
Align left
(default) |
1 |
Align right |
2 |
Align center |
Remarks
The default action is 0.
See Also
Sets or
returns the default backcolor of the Link.
Syntax
TilesOCX.LinkBackcolor [ = value
]
The LinkBackcolor property has these parts:
Part |
Description |
TilesOCX |
An object
expression that evaluates the Tiles Control object. |
value |
An ole color expression of the background color |
Remarks
The default backcolor is &H00404080& (light
brown).
See Also
Sets or returns
the background style of the Link text.
Syntax
TilesOCX. LinkBackStyle
[ = action]
The LinkBackStyle property has these parts:
Part |
Description |
TilesOCX |
An object
expression that evaluates the Tiles Control object. |
Action |
An integer
expression that sets how align the text in the Link.
The action value is set by adding the below numbers. |
Settings
Possible
settings for action are:
action |
Description |
0 |
Opaque |
1 |
Transparent |
Remarks
The default action is 0.
See Also
Sets or
returns the text of the Link.
Syntax
TilesOCX.LinkDesc [ = value ]
The LinkDesc property has these parts:
Part |
Description |
TilesOCX |
An object
expression that evaluates the Tiles Control object. |
Value |
A string
expression containing the Link text |
Remarks
The default text is Description1.
See Also
Sets or
returns the default link
font.
Syntax
TilesOCX.LinkFont.Prop [ = value
]
The LinkFont property has these parts:
Part |
Description |
TilesOCX |
An object
expression that evaluates the Tiles Control object. |
Prop |
Allowed
properties: Name, Size, Bold, Italic, Underline, Strikethrough |
value |
A font
expression containing the default Link font parameters |
Remarks
The default
font is Ms San Serif bold 10.
See Also
Sets or
returns the default forecolor of the Link.
Syntax
TilesOCX.LinkForecolor [ = value
]
The LinkForecolor property has these parts:
Part |
Description |
TilesOCX |
An object
expression that evaluates the Tiles Control object. |
value |
An ole color expression of the foreground color |
Remarks
The default forecolor is &HFFFFFF& (white).
See Also
Sets or
returns the Link height.
Syntax
TilesOCX.LinkHeight [ = value ]
The LinkHeight property has these parts:
Part |
Description |
TilesOCX |
An object
expression that evaluates the Tiles Control object. |
value |
A numeric
expression of the requested height (twips) |
Remarks
The default link
height is 480 twips.
See Also
Sets or
returns the Link width.
Syntax
TilesOCX.LinkWidth [ = value ]
The LinkWidth property has these parts:
Part |
Description |
TilesOCX |
An object
expression that evaluates the Tiles Control object. |
Value |
A numeric
expression of the requested width (twips) |
Remarks
The link width is the
same of the tile width (automatic behaviour when loading and resizing the
control: you can force the width at run time after loading/resizing the control
).
See Also
Fires when a
mouse click occurs on the Link.
Syntax (Visual
Basic)
Private Sub TilesOCX1_LinkClick (button as integer)
The LinkClick event has these parts:
Part |
Description |
Button |
Remarks
The sequence
is
·
LinkClick
·
LinkDblClick
See Also
Fires when a
mouse double click occurs on the Link.
Syntax (Visual
Basic)
Private Sub TilesOCX1_LinkDblClick ()
The LinkDblClick event has these parts:
Part |
Description |
() |
No data |
Remarks
The sequence
is
·
LinkClick
·
LinkDblClick
See Also