File: u_layout_anchor.sru
Size: 3809
Date: Mon, 07 Apr 2008 21:33:12 +0200
$PBExportHeader$u_layout_anchor.sru
forward
global type u_layout_anchor from u_explorer
end type
type uo_1 from u_st_gradient within u_layout_anchor
end type
type st_2 from u_st within u_layout_anchor
end type
type st_1 from u_st within u_layout_anchor
end type
type cb_3 from u_cb within u_layout_anchor
end type
type cb_2 from u_cb within u_layout_anchor
end type
type cb_1 from u_cb within u_layout_anchor
end type
type st_3 from u_st within u_layout_anchor
end type
type st_4 from u_st within u_layout_anchor
end type
end forward

global type u_layout_anchor from u_explorer
uo_1 uo_1
st_2 st_2
st_1 st_1
cb_3 cb_3
cb_2 cb_2
cb_1 cb_1
st_3 st_3
st_4 st_4
end type
global u_layout_anchor u_layout_anchor

on u_layout_anchor.create
int iCurrent
call super::create
this.uo_1=create uo_1
this.st_2=create st_2
this.st_1=create st_1
this.cb_3=create cb_3
this.cb_2=create cb_2
this.cb_1=create cb_1
this.st_3=create st_3
this.st_4=create st_4
iCurrent=UpperBound(this.Control)
this.Control[iCurrent+1]=this.uo_1
this.Control[iCurrent+2]=this.st_2
this.Control[iCurrent+3]=this.st_1
this.Control[iCurrent+4]=this.cb_3
this.Control[iCurrent+5]=this.cb_2
this.Control[iCurrent+6]=this.cb_1
this.Control[iCurrent+7]=this.st_3
this.Control[iCurrent+8]=this.st_4
end on

on u_layout_anchor.destroy
call super::destroy
destroy(this.uo_1)
destroy(this.st_2)
destroy(this.st_1)
destroy(this.cb_3)
destroy(this.cb_2)
destroy(this.cb_1)
destroy(this.st_3)
destroy(this.st_4)
end on

type uo_1 from u_st_gradient within u_layout_anchor
integer x = 18
integer y = 304
integer width = 1646
integer height = 400
integer taborder = 20
boolean #anchortop = true
boolean #anchorleft = true
boolean #anchorright = true
boolean #anchorbottom = true
boolean #showborder = true
boolean #usetheme = true
string #text = "Anchor ALL SIDES"
alignment #textalignement = center!
integer #fontsize = 14
boolean #fontbold = true
end type

on uo_1.destroy
call u_st_gradient::destroy
end on

type st_2 from u_st within u_layout_anchor
integer x = 18
integer y = 752
integer width = 1646
integer height = 68
long backcolor = 1073741824
string text = "Anchor LEFT, RIGHT, BOTTOM"
alignment alignment = center!
boolean border = true
long bordercolor = 134217730
boolean #anchorleft = true
boolean #anchorright = true
boolean #anchorbottom = true
end type

type st_1 from u_st within u_layout_anchor
integer x = 18
integer y = 192
integer width = 1646
integer height = 68
long backcolor = 1073741824
string text = "Anchor LEFT, RIGHT"
alignment alignment = center!
boolean border = true
long bordercolor = 134217730
boolean #anchorleft = true
boolean #anchorright = true
end type

type cb_3 from u_cb within u_layout_anchor
integer x = 18
integer y = 840
integer width = 517
integer taborder = 30
string text = "Anchor BOTTOM"
boolean #anchorbottom = true
end type

type cb_2 from u_cb within u_layout_anchor
integer x = 987
integer y = 836
integer width = 681
integer taborder = 20
string text = "Anchor RIGHT, BOTTOM"
boolean #anchorright = true
boolean #anchorbottom = true
end type

type cb_1 from u_cb within u_layout_anchor
integer x = 987
integer y = 32
integer width = 681
integer taborder = 10
string text = "Anchor RIGHT"
boolean #anchorright = true
end type

type st_3 from u_st within u_layout_anchor
integer x = 37
integer y = 32
integer width = 704
integer weight = 700
long textcolor = 134217856
string text = "Try Resizing the window!"
end type

type st_4 from u_st within u_layout_anchor
integer x = 37
integer y = 124
integer width = 1650
long textcolor = 134217856
string text = "Resizable controls only work on w_main or u_base_container descendants"
end type