Supported Controls

CheckBox control

Properties for CheckBox control

Table 9. 

Property

Support Level

Example Code

Automatic

Supported

cbx_1.Automatic = TRUE

BackColor

Supported

cbx_1.BackColor = ll_value

cbx_1.BackColor = RGB(192,192,192)

Note: transparent value is unsupported.

BorderStyle

Supported

cbx_1.BorderStyle = StyleLowered!

cbx_1.BorderStyle = StyleRaised!

BringToTop

Supported

cbx_1.BringToTop = TRUE

Checked

Supported

cbx_1.Checked = TRUE

cbx_1.Checked = lb_value

DragAuto

Supported

cbx_1.DragAuto = TRUE

DragIcon

Supported

cbx_1.DragIcon = 'c:\archive\arrow.ico'

Enabled

Supported

cbx_1.Enabled=TRUE

cbx_1.Enabled = lb_value

FaceName

Supported

cbx_1.FaceName = ""

cbx_1.FaceName = ls_value

FontCharSet

Supported

cbx_1.FontCharSet = ANSI!

FontFamily

Supported

cbx_1.FontFamily = Roman!

FontPitch

Supported

cbx_1.FontPitch = Fixed!

Height

Supported

cbx_1.Height=889

cbx_1.Height = li_value

Italic

Supported

cbx_1.Italic=TRUE

cbx_1.Italic = lb_value

LeftText

Supported

cbx_1.LeftText = TRUE

Pointer

Supported

cbx_1.Pointer='Cross!'

cbx_1.Pointer='d:\archive\IBEAM.CUR'

RightToLeft

Supported

cbx_1.RightToLeft = TRUE

TabOrder

Supported

cbx_1.TabOrder = 10

Tag

Supported

cbx_1.Tag = ls_value

Text

Supported

cbx_1.Text = ls_value

TextColor

Supported

cbx_1.TextColor = long(88995)

cbx_1.TextColor = RGB(0,0,255)

TextSize

Supported

cbx_1.TextSize = 15

cbx_1.TextSize = li_value

ThirdState

Supported

cbx_1.ThreeState = TRUE

cbx_1.ThirdState = TRUE

ThreeState

Supported

cbx_1.ThreeState = TRUE

cbx_1.ThirdState = TRUE

Underline

Supported

cbx_1.Underline = TRUE

cbx_1.Underline = lb_value

Visible

Supported

cbx_1.Visible =TRUE

cbx_1.Visible = lb_value

Weight

Supported

cbx_1.Weight = 700

cbx_1.Weight = li_value

In both PowerBuilder and Appeon Web applications, a weight value smaller or equal to 550 indicates a normal weight, and a weight value larger than 550 indicates a bold weight.

Width

Supported

cbx_1.Width=899

cbx_1.Width = li_value

X

Supported

cbx_1.X = 100

cbx_1.X = li_value

Y

Supported

cbx_1.Y = 500

cbx_1.Y = li_value

ClassDefinition

Unsupported

 

Transparency

Unsupported

 

Events for CheckBox control

Table 10. 

Event

Support Level

Example Code

Clicked

Supported

Clicked()

Constructor

Supported

Constructor()

Destructor

Supported

Destructor()

DragDrop

Supported

DragDrop(source)

DragEnter

Supported

DragEnter(source)

DragLeave

Supported

DragLeave(source)

DragWithin

Supported

DragWithin(source)

GetFocus

Supported

GetFocus()

LoseFocus

Supported

LoseFocus()

RButtonDown

Supported

RbuttonDown(flags, xpos, ypos)

Help

Unsupported

 

Other

Unsupported

 

Functions for CheckBox control

Table 11. 

Function

Support Level

Example Code

ClassName

Supported

ls_return = cbx_1.ClassName()

Drag

Supported

cbx_1.Drag(Begin!)

GetParent

Supported

lobj_parent = cbx_1.GetParent()

Hide

Supported

li_return = cbx_1.Hide()

Move

Supported

cbx_1.Move(100,100)]

li_return = cbx_1.Move(li_x,li_y)

PointerX

Supported

li_return = cbx_1.PointerX()

PointerY

Supported

li_return = cbx_1.PointerY()

PostEvent

Supported

cbx_1.PostEvent(RButtonDown!)

lb_return = cbx_1.PostEvent(event)

Resize

Supported

cbx_1.Resize(100,20)

li_return = cbx_1.Resize(li_x, li_y)

SetFocus

Supported

cbx_1.SetFocus()

li_return = cbx_1.SetFocus()

Unsupported: SetFocus(cbx_1)

SetPosition

Supported

li_return = cbx_1.SetPosition(position)

SetRedraw

Supported

li_return= cbx_1.SetRedraw(TRUE)

Show

Supported

li_return = cbx_1.Show()

TriggerEvent

Supported

cbx_1.TriggerEvent(RButtonDown!)

TypeOf

Supported

if cbx_1.TypeOf() = Checkbox! Then

ls_return = "Checkbox!"

else

ls_return = "Not a Checkbox"

end if

GetContextService

Unsupported

 

Print

Unsupported

 

CommandButton control

Properties for CommandButton control

Table 12. 

Property

Support Level

Example Code

BringToTop

Supported

cb_1.BringToTop = TRUE

Cancel

Supported

cb_1.Cancel = TRUE

Default

Supported

cb_1.Default = TRUE

DragAuto

Supported

cb_1.DragAuto = TRUE

DragIcon

Supported

cb_1.DragIcon = 'c:\archive\arrow.ico'

Enabled

Supported

cb_1.Enabled = lb_value

FaceName

Supported

cb_1.FaceName = "" cb_1.FaceName = "Courier"

Height

Supported

cb_1.Height = li_value

FontCharSet

Supported

cb_1.FontCharSet = ANSI!

FontFamily

Supported

cb_1.FontFamily = Roman!

FontPitch

Supported

cb_1.FontPitch = Fixed!

Italic

Supported

cb_1.Italic = lb_value

Pointer

Supported

cb_1.Pointer = 'Size!'

cb_1.Pointer ='d:\archive\IBEAM.BMP.cur'

TabOrder

Supported

cb_1.TabOrder = 20

Tag

Supported

cb_1.Tag = ls_value

Text

Supported

cb_1.Text = ls_value

TextSize

Supported

cb_1.TextSize = li_value

Underline

Supported

cb_1.Underline = TRUE

cb_1.Underline = lb_value

Visible

Supported

cb_1.Visible = TRUE

cb_1.Visible = lb_value

Weight

Supported

cb_1.Weight = 700

cb_1.Weight = li_value

Width

Supported

cb_1.Width = 750

cb_1.Width = li_value

X

Supported

cb_1.X = 280

cb_1.X = li_value

Y

Supported

cb_1.Y = 1280

cb_1.Y = li_value

ClassDefinition

Unsupported

 

Events for CommandButton control

Table 13. 

Event

Support Level

Example Code

Clicked

Supported

Clicked()

Constructor

Supported

Constructor()

Destructor

Supported

Destructor()

DragDrop

Supported

DragDrop(source)

DragEnter

Supported

DragEnter(source)

DragLeave

Supported

DragLeave(source)

DragWithin

Supported

DragWithin(source)

GetFocus

Supported

GetFocus()

LoseFocus

Supported

LoseFocus()

RButtonDown

Supported

RButtonDown(flags, xpos, ypos)

Help

Unsupported

 

Other

Unsupported

 

Functions for CommandButton control

Table 14. 

Function

Support Level

Example Code

ClassName

Supported

ls_return = cb_1.ClassName()

Drag

Supported

cb_1.Drag(Begin!)

GetParent

Supported

PowerObject lpo_return

lpo_return = cb_1.GetParent()

Hide

Supported

li_return = cb_1.Hide()

Move

Supported

cb_1.Move(200,800)

li_return = cb_1.Move(li_x,li_y)

PointerX

Supported

li_return = cb_1.PointerX()

PointerY

Supported

li_return = cb_1.PointerY()

PostEvent

Supported

cb_1.PostEvent(Clicked!)

Resize

Supported

cb_1.Resize(200,800)

li_return = cb_1.Resize(li_x, li_y)

SetFocus

Supported

li_return = cb_1.SetFocus()

Unsupported: SetFocus(cb_1)

SetPosition

Supported

ll_return = cb_1.SetPosition(ToTop!)

SetRedraw

Supported

li_return = cb_1.SetRedraw(TRUE)

Show

Supported

li_return = cb_1.Show()

TriggerEvent

Supported

li_return = cb_1.TriggerEvent(Clicked!)

TypeOf

Supported

if cb_1.TypeOf() = commandbutton! then

ls_return = "commandbutton!"

end if

GetContextService

Unsupported

 

Print

Unsupported

 

DatePicker control

Difference

Left mouse clicking on the DatePicker control will trigger the Clicked, GetFocused events in sequence.

Properties for DatePicker control

Table 15. 

Property

Support Level

Example Code

Accelerator

Supported

dp_1.Accelerator=67

Accessible​Description

Supported

 

AccessibleName

Supported

 

AccessibleRole

Supported

 

AllowEdit

Supported

dp_1.AllowEdit = TRUE

Border

Supported

dp_1.Border = TRUE

BorderStyle

Supported

dp_1.BorderStyle = StyleBox!

dp_1.BorderStyle = StyleLowered!

dp_1.BorderStyle = StyleRaised!

Note: StyleShadowBox! is unsupported.

BringToTop

Supported

 

CalendarBack​Color

Supported

dp_1.CalendarBackColor = RGB(255, 255, 0)

CalendarFont​Charset

Supported

db_1.CalendarFontCharset = ANSI!

CalendarFont​Family

Supported

dp_1.CalendarFontFamily = Roman!

CalendarFont​Name

Supported

dp_1.CalendarFontName = ls_value

CalendarFont​Pitch

Supported

dp_1.CalendarFontPitch = Fixed!

CalendarFont​Weight

Supported

dp_1.CalendarFontWeight = li_value

CalendarItalic

Supported

dp_1.CalendarItalic = lb_value

CalendarText​Color

Supported

dp_1.CalendarTextColor = RGB(0,0,255)

CalendarTextSize

Supported

dp_1.CalendarTextSize = li_value

CalendarTitle​BackColor

Supported

dp_1.CalendarTitleBackColor = RGB(128, 255, 128)

CalendarTrailing​TextColor

Supported

dp_1.CalendarTrailingTextColor = RGB(128, 255, 128)

CalendarUnderline

Supported

dp_1.CalendarUnderline = lb_value

CustomFormat

Supported

dp_1.CustomFormat = ls_value

DateValue

Supported

dp_1.DateValue = ld_value

DragAuto

Supported

dp_1.DragAuto = TRUE

Notes:

  1. On the Web, dragging a DatePicker control will not trigger the DropDown event if the DragAuto property is set to True, which means there is no Month Calender displayed on the Web when you Drag the DatePicker with setting the DragAuto property to True.

  2. On the Web, if the DragAuto is set to True, clicking, dragging, and releasing the DatePicker control will trigger the following event in sequence: DragEnter, DragWithin, DragLeave.

DragIcon

Supported

dp_1.DragIcon = 'arrow.ico'

DropDownRight

Supported

dp_1.DropDownRight = true

Enabled

Supported

dp_1.Enabled = TRUE

FaceName

Supported

dp_1.FaceName = ""

FirstDayOfWeek

Supported

dp_1.FirstDayOfWeek = Monday!

FontCharSet

Supported

dp_1.FontCharSet = ANSI!

FontFamily

Supported

dp_1.FontFamily = Roman!

FontPitch

Supported

dp_1.FontPitch = Fixed!

FontWeight

Supported

dp_1.FontWeight = 700

Format

Supported

dp_1.Format = dtfShortDate!

Height

Supported

dp_1.Height = 750

dp_1.Height = li_value

Italic

Supported

dp_1.Italic=TRUE

dp_1.Italic = lb_value

MaxDate

Supported

dp_1.MaxDate = Date("2007/06/30")

MinDate

Supported

dp_1.MinDate = Date("2006/09/01")

Pointer

Supported

dp_1.Pointer = 'Size!'

ShowUpDown

Supported

dp_1.ShowUpDown = true

TabOrder

Supported

dp_1.TabOrder = 30

Tag

Supported

dp_1.Tag = ls_value

Text

Supported

dp_1.Text = ls_value

TextSize

Supported

dp_1.TextSize = li_value

TimeValue

Supported

lt_value = dp_1.TimeValue

TodayCircle

Supported

dp_1.TodayCircle = false

TodaySection

Supported

dp_1.TodaySection = false

Underline

Supported

dp_1.Underline = TRUE

Value

Supported

dp_1.Value = DateTime(Date("2005/07/01"),Time("12:00:00"))

Visible

Supported

dp_1.Visible = True

WeekNumbers

Supported

dp_1.WeekNumbers = true

Width

Supported

dp_1.Width = li_value

Note:

  1. If the Width value is set to -32768, obtaining the width property returns -32768 on the Web, however it returns 0 in PowerBuilder.

  2. If the Width value is set to 32768, obtaining the width property returns 0 on the Web, however it returns -32768 in PowerBuilder.

X

Supported

dp_1.X = li_value

Note:

  1. If the X value is set to -32768, obtaining the X property returns -32768 on the Web, however it returns 0 in PowerBuilder.

  2. If the Width value is set to 32768, obtaining the width property returns 0 on the Web, however it returns -32768 in PowerBuilder.

Y

Supported

dp_1.Y = li_value

Note:

  1. If the Y value is set to -32768, obtaining the Y property returns -32768 on the Web, however it returns 0 in PowerBuilder.

  2. If the Width value is set to 32768, obtaining the width property returns 0 on the Web, however it returns -32768 in PowerBuilder.

ClassDefinition

Unsupported

 

RightToLeft

Unsupported

 

Events for DatePicker control

Table 16. 

Event

Support Level

Example Code

Clicked

Supported

Clicked()

CloseUp

Supported

CloseUp()

Constructor

Supported

Constructor()

Destructor

Supported

Destructor()

DoubleClicked

Supported

Doubleclicked(flags,xpos,ypos)

DragDrop

Supported

DragDrop()

DragEnter

Supported

DragEnter(source)

DragLeave

Supported

DragLeave(source)

DragWithin

Supported

DragWithin(source)

DropDown

Supported

DropDown()

LoseFocus

Supported

GetFocus()

GetFocus

Supported

GetFocus()

RButtonDown

Supported

RButtonDown(flags, xpos, ypos)

ValueChanged

Supported

Valuechanged(flag,dtm)

Help

Unsupported

 

PreCreateWindow

Unsupported

 

UserString

Unsupported

 

Other

Unsupported

 

Functions for DatePicker Control

Table 17. 

Function

Support Level

Example Code

ClassName

Supported

ls_value = dp_1.ClassName()

Drag

Supported

dp_1.Drag(dragmode)

Note: If you use Drag(Begin!), single mouse clicking will trigger DragEnter and DragDrop event in sequence on the Web. This is different from the event sequences in PowerBuilder.

GetCalendar

Supported

dp_1.getcalendar( )

GetParent

Supported

PowerObject lpo_returnvalue

lpo_returnvalue = dp_1.GetParent()

GetText

Supported

ls_text = dp_1.GetText()

GetToday

Supported

currentdate = dp_1.GetToday()

GetValue

Supported

li_value = dp_1.GetValue(dt)

Hide

Supported

li_return = dp_1.Hide()

Move

Supported

li_return = dp_1.Move(li_x,li_y)

PointerX

Supported

li_value = dp_1.PointerX()

PointerY

Supported

li_value = dp_1.PointerY()

PostEvent

Supported

dp_1.PostEvent(Constructor!)

Resize

Supported

li_return = dp_1.Resize(li_width,li_height)

SetFocus

Supported

li_return = dp_1.SetFocus()

SetPosition

Supported

li_return = dp_1.SetPosition(position)

SetRedraw

Supported

li_return= dp_1.SetRedraw(FALSE)

SetToday

Supported

li_return = dp_1.SetToday(currentdate)

SetValue

Supported

dp_1.SetValue(dt)

Show

Supported

li_return = dp_1.Show()

TriggerEvent

Supported

dp_1.TriggerEvent(Constructor!)

TypeOf

Supported

if dp_1.TypeOf() = DatePicker! Then

ls_return = 'DatePicker!'

else

ls_return = 'isvalid'

end if

GetContextService

Unsupported

 

Print

Unsupported

 

DropDownListBox control

Important Requirements

In PowerBuilder, if a DropDownListBox has no item, an empty row will display in the ListBox portion when the user clicks the down arrow. However, on the Web application, no empty row will display.

Properties for DropDownListBox control

Table 18. 

Property

Support Level

Example Code

Accelerator

Supported

ddlb_1.Accelerator=67

AllowEdit

Supported

ddlb_1.AllowEdit = TRUE

ddlb_1.AllowEdit = lb_value

Note: The pbm_keydown event is unsupported if the AllowEdit property is set to true.

AutoHScroll

Supported

ddlb_1.AutoHScroll = TRUE

BringToTop

Supported

ddlb_1.BringToTop = TRUE

BackColor

Supported

ddlb_1.BackColor = RGB(0, 0, 255)

ddlb_1.BackColor = ll_value

Note: transparent value is unsupported.

Border

Supported

ddlb_1.Border = TRUE

ddlb_1.Border = lb_value

BorderStyle

Supported

ddlb_1.BorderStyle = StyleBox!

ddlb_1.BorderStyle = StyleLowered!

ddlb_1.BorderStyle = StyleRaised!

DragAuto

Supported

ddlb_1.DragAuto = TRUE

DragIcon

Supported

ddlb_1.DragIcon = 'c:\archive\arrow.ico'

Enabled

Supported

ddlb_1.Enabled=TRUE

ddlb_1.Enabled = lb_value

FaceName

Supported

ddlb_1.FaceName = ""

ddlb_1.FaceName = ls_value

FontCharSet

Supported

ddlb_1.FontCharSet = ANSI!

FontFamily

Supported

ddlb_1.FontFamily = Roman!

FontPitch

Supported

ddlb_1.FontPitch = Fixed!

Height

Supported

ddlb_1.Height = 750

ddlb_1.Height = li_value

HScrollBar

Supported

ddlb_1.HScrollBar = TRUE

ddlb_1.HscrollBar = lb_value

Italic

Supported

ddlb_1.Italic=TRUE

ddlb_1.Italic = lb_value

Item[ ]

Supported

ls_value = ddlb_1.Item[1]

Limit

Supported

ddlb_1.Limit = 256

ddlb_1.Limit = li_value

Pointer

Supported

ddlb_1.Pointer = 'Size!'

ddlb_1.Pointer ='d:\archive\IBEAM.BMP.cur'

RightToLeft

Supported

ddlb_1.RightToLeft = TRUE

ShowList

Supported

ddlb_1.ShowList = TRUE

Sorted

Supported

ddlb_1.Sorted = TRUE

ddlb_1.Sorted = lb_value

TabOrder

Supported

ddlb_1.TabOrder = 30

Tag

Supported

ddlb_1.Tag = ls_value

Text

Supported

ddlb_1.Text = ls_value

TextColor

Supported

ddlb_1.TextColor = ll_value

ddlb_1.TextColor = RGB(192,192,192)

TextSize

Supported

ddlb_1.TextSize = li_value

Underline

Supported

ddlb_1.Underline= TRUE

ddlb_1.Underline = lb_value

Visible

Supported

ddlb_1.Visible = TRUE

ddlb_1.Visible = lb_value

VScrollBar

Supported

ddlb_1.VScrollBar = TRUE

ddlb_1.VscrollBar = lb_value

Weight

Supported

ddlb_1.Weight = 700

ddlb_1.Weight = li_value

Width

Supported

ddlb_1.Width = li_value

X

Supported

ddlb_1.X = li_value

Y

Supported

ddlb_1.Y = li_value

ClassDefinition

Unsupported

 

Transparency

Unsupported

 

Events for DropDownListBox control

Table 19. 

Event

Support Level

Example Code

Constructor

Supported

Constructor()

Destructor

Supported

Destructor()

DoubleClicked

Supported

DoubleClicked()

DragDrop

Supported

DragDrop(source)

DragEnter

Supported

DragEnter(source)

DragLeave

Supported

DragLeave(source)

DragWithin

Supported

DragWithin(source)

GetFocus

Supported

GetFocus()

LoseFocus

Supported

LoseFocus()

Modified

Supported

Modified()

Note: it is unsupported to trigger the event by clicking the Enter key.

RButtonDown

Supported

RButtonDown(flags, xpos, ypos)

SelectionChanged

Supported

SelectionChanged(index)

If the return value of the event is greater than 0, the Modified event will be triggered. Otherwise, continue processing.

Help

Unsupported

 

Other

Unsupported

 

Functions for DropDownListBox control

Table 20. 

Function

Support Level

Example Code

AddItem

Supported

li_return = ddlb_1.AddItem(item)

ClassName

Supported

ls_return = ddlb_1.ClassName()

Clear

Supported

li_return = ddlb_1.Clear()

Copy

Supported

li_return = ddlb_1.Copy()

Cut

Supported

li_return = ddlb_1.Cut()

DeleteItem

Supported

li_return = ddlb_1.DeleteItem(index)

DirList

Supported

ddlb_1.DirList("C:\EMPLOYEE\*.TXT", 0)

DirSelect

Supported

lb_dir = ddlb_1.DirSelect(ls_dirname)

Drag

Supported

ddlb_1.Drag(Cancel!)

FindItem

Supported

li_return = ddlb_1.FindItem('hello', 4)

li_return = ddlb_1.FindItem(text, index)

GetParent

Supported

PowerObject lpo_return

lpo_return = ddlb_1.GetParent()

Hide

Supported

li_return = ddlb_1.Hide()

InsertItem

Supported

ddlb_1.InsertItem('hello',3)

li_return = ddlb_1.InsertItem(item, index)

Move

Supported

ddlb_1.Move(200,400)

li_return = ddlb_1.Move(li_x,li_ y)

Paste

Supported

li_return = ddlb_1.Paste()

PointerX

Supported

li_return = ddlb_1.PointerX()

PointerY

Supported

li_return = ddlb_1.PointerY()

PostEvent

Supported

ddlb_1.PostEvent(Clicked!)

ReplaceText

Supported

ddlb_1.ReplaceText("60 Days")

Reset

Supported

li_return = ddlb_1.Reset()

Resize

Supported

ddlb_1.Resize(200,800)

li_return = ddlb_1.Resize(li_x, li_y)

SelectItem

Supported

ddlb_1.SelectItem ('hello',3)

li_return = ddlb_1.SelectItem(item, index)

SelectedLength

Supported

li_returnvalue = ddlb_1.SelectedLength()

SelectedStart

Supported

li_returnvalue = ddlb_1.SelectedStart()

SelectedText

Supported

li_returnvalue = ddlb_1.SelectedText()

SelectText

Supported

li_returnvalue = ddlb_1.SelectText(start, length)

SetFocus

Supported

li_return = ddlb_1.SetFocus()

Unsupported: SetFocus(ddlb_1)

SetPosition

Supported

ddlb_1.SetPosition(ToTop!)

li_return = ddlb_1.SetPosition(position)

SetRedraw

Supported

li_return = ddlb_1.SetRedraw(FALSE)

Show

Supported

li_return = ddlb_1.Show()

Text

Supported

ls_return = ddlb_1.Text(index)

TotalItems

Supported

li_return = ddlb_1.TotalItems()

TriggerEvent

Supported

ddlb_1.TriggerEvent(Constructor!)

li_return = ddlb_1.TriggerEvent(event)

TypeOf

Supported

if ddlb_1.typeof() = DropDownListBox!

then messagebox("show"," DropDownListBox!")

end if

GetContextService

Unsupported

 

Position

Unsupported

 

Print

Unsupported

 

DropDownPictureListBox control

Properties for DropDownPictureListBox control

Table 21. 

Property

Support Level

Example Code

Accelerator

Supported

ddplb_1.Accelerator = 67

AllowEdit

Supported

ddplb_1.AllowEdit = TRUE

ddplb_1.AllowEdit = lb_value

Note: The pbm_keydown event is unsupported if the AllowEdit property is set to true.

AutoHScroll

Supported

ddplb_1.AutoHScroll = TRUE

BackColor

Supported

ddplb_1.BackColor = ll_value

ddplb_1.BackColor = RGB (0,0,255)

Note: transparent value is unsupported.

BringToTop

Supported

ddplb_1.BringToTop = TRUE

Border

Supported

ddplb_1.Border = TRUE

ddplb_1.Border = lb_value

BorderStyle

Supported

ddplb_1.BorderStyle = StyleBox!

ddplb_1.BorderStyle = StyleLowered!

ddplb_1.BorderStyle = StyleRaised!

Note: StyleShadowBox! is unsupported.

DragAuto

Supported

ddplb_1.DragAuto = TRUE

DragIcon

Supported

ddplb_1.DragIcon = 'c:\archive\arrow.ico'

Enabled

Supported

ddplb_1.Enabled = TRUE

ddplb_1.Enabled = lb_value

FaceName

Supported

ddplb_1.Facename = ls_value

FontCharSet

Supported

ddplb_1.FontCharSet = ANSI!

FontFamily

Supported

ddplb_1.FontFamily = Roman!

FontPitch

Supported

ddplb_1.FontPitch = Fixed!

Height

Supported

ddplb_1.Height = li_value

HScrollBar

Supported

ddplb_1.Hscrollbar = lb_value

Italic

Supported

ddplb_1.Italic = lb_value

Item[ ]

Supported

String a[] = ddplb_1.Item[]

ItemPictureIndex[ ]

Supported

ddplb_1.ItemPictureIndex[] = li_value[]

Limit

Supported

ddplb_1.Limit = 256

ddplb_1.Limit = li_value

PictureHeight

Supported

ddplb_1.PictureHeight = 16

PictureWidth

Supported

ddplb_1.PictureWidth = 16

PictureName[ ]

Supported

ls_value = ddplb_1.PictureName[1]

Assigning values to part of an array and using the default values for the other part is not supported.

For example:

picturename[1] = "aaa.bmp"

picturename[3] = "bbb.bmp"

var pic1 = picturename[1]; var pic2 = picturename[3];

A supported example is given as follows:

picturename[1] = "aaa.bmp"

picturename[2] = "bbb.bmp"

picturename[3] = "ccc.bmp"

var pic1 = picturename[1]; var pic2 = picturename[2]; var pic3 = picturename[3];

Pointer

Supported

ddplb_1.Pointer = "Beam!"

dbplb_1.Pointer = 'd:\archive\IBEAM.BMP.cur'

RightToLeft

Supported

dbplb_1.RightToLeft = TRUE

ShowList

Supported

ddplb_1.ShowList = TRUE

Sorted

Supported

ddplb_1.Sorted = lb_value

TabOrder

Supported

ddplb_1.TabOrder = 40

Tag

Supported

ddplb_1.Tag = ls_value

Text

Supported

ddplb_1.Text = ls_value

TextColor

Supported

ddplb_1.Textcolor = ll_value

ddplb_1.Textcolor = RGB(192,192,192)

TextSize

Supported

ddplb_1.TextSize = li_value

Underline

Supported

ddplb_1.Underline = lb_value

Visible

Supported

ddplb_1.Visible = lb_value

VScrollBar

Supported

ddplb_1.VscrollBar = lb_value

Weight

Supported

ddplb_1.Weight = li_value

Width

Supported

ddplb_1.Width = li_value

X

Supported

ddplb_1.X = li_value

Y

Supported

ddplb_1.Y = li_value

ClassDefinition

Unsupported

 

PictureMaskColor

Unsupported

 

Transparency

Unsupported

 

Events for DropDownPictureListBox control

Table 22. 

Event

Support Level

Example Code

Constructor

Supported

Constructor()

Destructor

Supported

Destructor()

DoubleClicked

Supported

DoubleClicked()

DragDrop

Supported

DragDrop(source)

DragEnter

Supported

DragEnter(source)

DragLeave

Supported

DragLeave(source)

DragWithin

Supported

DragWithin(source)

GetFocus

Supported

GetFocus()

LoseFocus

Supported

LoseFocus()

Modified

Supported

Modified()

RButtonDown

Supported

RButtonDown(flags, xpos, ypos)

SelectionChanged

Supported

SelectionChanged(index) //If the return value is greater than 0, the Modified event will be triggered. Otherwise, continue processing.

Help

Unsupported

 

Other

Unsupported

 

Functions for DropDownPictureListBox control

Table 23. 

Function

Support Level

Example Code

AddItem

Supported

li_return = ddplb_1.AddItem(ls_name, li_pic)

AddPicture

Supported

li_return = ddplb_1.AddPicture(picturename)

ClassName

Supported

ls_return = ddplb_1.ClassName()

Clear

Supported

ls_return = ddplb_1.Clear()

Copy

Supported

ls_return = ddplb_1.Copy()

Cut

Supported

ls_return = ddplb_1.Cut()

DeleteItem

Supported

li_return = ddplb_1.DeleteItem(index)

DeletePicture

Supported

li_return =ddplb_1.DeletePicture(index)

DeletePictures

Supported

li_return =ddplb_1.DeletePictures()

DirList

Supported

ddplb_1.DirList("C:\EMPLOYEE\*.TXT", 0)

ddplb_1.DirList("C:\EMPLOYEE\*.DOC", 1, st_path)

DirSelect

Supported

ddplb_1.DirSelect(ls_filename)

Drag

Supported

ddplb_1.Drag(End!)

FindItem

Supported

li_return = ddplb_1.FindItem(text, index)

GetParent

Supported

PowerObject lpo_return

lpo_return = ddplb_1.GetParent()

Hide

Supported

li_return = ddplb_1.Hide()

InsertItem

Supported

ddplb_1.InsertItem("Run Application", 5)

Move

Supported

li_return = ddplb_1.Move(li_x,li_ y)

Paste

Supported

li_return = ddplb_1.Paste()

PointerX

Supported

li_return = ddplb_1.PointerX()

PointerY

Supported

li_return = ddplb_1.PointerY()

PostEvent

Supported

ddplb_1.PostEvent(Clicked!)

lb_return = ddplb_1.PostEvent(event)

Reset

Supported

li_return = ddplb_1.Reset()

Resize

Supported

li_return = ddplb_1.Resize(li_width,li_height)

SelectItem

Supported

li_return = ddplb_1.SelectItem(item, index)

SelectedLength

Supported

li_returnvalue = ddplb_1.SelectedLength()

SelectedStart

Supported

li_returnvalue = ddplb_1.SelectedStart()

SelectedText

Supported

li_returnvalue = ddplb_1.SelectedText()

SelectText

Supported

li_returnvalue = ddplb_1.SelectText(start, length)

SetFocus

Supported

li_return = ddplb_1.SetFocus()

Unsupported: SetFocus(ddplb_1)

SetPosition

Supported

li_return = ddplb_1.SetPosition(position)

SetRedraw

Supported

li_return= ddplb_1.SetRedraw(FALSE)

Show

Supported

li_return = ddplb_1.Show()

Text

Supported

ls_return = ddplb_1.Text(index)

TotalItems

Supported

li_return = ddplb_1.TotalItems()

TriggerEvent

Supported

li_return = ddplb_1.TriggerEvent(event)

TypeOf

Supported

if ddplb_1.TypeOf() = DropDownPictureListBox!

Then ls_return = 'DropDownPictureListBox!'

else ls_return = 'isvalid'

end if

GetContextService

Unsupported

 

Position

Unsupported

 

Print

Unsupported

 

EditMask control

Properties for EditMask control

Table 24. 

Property

Support Level

Example Code

Accelerator

Supported

em_1.Accelerator = 67

Alignment

Supported

em_1.Alignment = Center!

AutoHScroll

Supported

 

AutoSkip

Supported

em_1.AutoSkip = TRUE

BackColor

Supported

em_1.BackColor = ll_value

em_1.BackColor = RGB (192,192,192)

Note: transparent value is unsupported.

Border

Supported

em_1.Border = TRUE

em_1.Border = lb_value

BorderStyle

Supported

em_1.BorderStyle = StyleLowered!

em_1.BorderStyle = StyleRaised!

em_1.BorderStyle = StyleBox!

Note: StyleShadowBox! is unsupported.

BringToTop

Supported

em_1.BringToTop = TRUE

DisplayData

Supported

 

DisplayOnly

Supported

em_1.DisplayOnly = TRUE

em_1.DisplayOnly = lb_value

DragAuto

Supported

em_1.DragAuto = TRUE

DropDownCalendar

Supported

 

DragIcon

Supported

em_1.DragIcon = 'c:\archive\arrow.ico''

Enabled

Supported

em_1.Enabled = TRUE

em_1.Enabled = lb_value

FaceName

Supported

em_1.FaceName = ls_value

FontCharSet

Supported

em_1.FontCharSet = ANSI!

FontFamily

Supported

em_1.FontFamily = Roman!

FontPitch

Supported

em_1.FontPitch = Fixed!

Height

Supported

em_1.Height = li_value

HideSelection

Supported

em_1.HideSelection = FALSE

Increment

Supported

em_1.Increment = 5.0

em_1.Increment = ld_value

Italic

Supported

em_1.Italic = lb_value

Limit

Supported

em_1.Limit = 50

em_1.Limit = li_value

Note: the Limit property cannot be dynamically changed.

Mask

Supported

em_1.MaskDataType =StringMask

em_1.Mask = "^^^-!!!"

Note: This property can only be set in the PowerBuilder Painter.

MaskDataType

Supported

em_1.MaskDataType = StringMask!

em_1.MaskDataType = DateTimeMask!

em_1.MaskDataType = NumericMask!

Note: This property can only be set in the PowerBuilder painter.

MinMax

Supported

em_1.MinMax = ("100 ~~ 10000")

Pointer

Supported

em_1.Pointer = 'AppStarting!'

em_1.Pointer = 'd:\archive\IBEAM.BMP.cur'

RightToLeft

Supported

em_1.RightToLeft = TRUE

Spin

Supported

em_1.Spin = TRUE em_1.Spin = FALSE

TabOrder

Supported

em_1.TabOrder = 50

Tag

Supported

em_1.Tag = ls_value

Text

Supported

em_1.Text = ls_value

TextColor

Supported

em_1.TextColor = ll_value

em_1.TextColor = RGB (192,192,192)

TextCase

Supported

em_1.TextCase = AnyCase!

em_1.TextCase = Lower!

em_1.TextCase = Upper!

TextSize

Supported

em_1.TextSize = li_value

Underline

Supported

em_1.Underline = TRUE

em_1.Underline = lb_value

UseCodeTable

Supported

em_1.UseCodeTable = TRUE

Visible

Supported

em_1.Visible = lb_value

Weight

Supported

em_1.Weight = li_value

Width

Supported

em_1.Width = li_value

X

Supported

em_1.X = li_value

Y

Supported

em_1.Y = li_value

AutoVScroll

Unsupported

 

ClassDefinition

Unsupported

 

HScrollBar

Unsupported

 

IgnoreDefaultButton

Unsupported

 

TabStop[ ]

Unsupported

 

Transparency

Unsupported

 

VScrollBar

Unsupported

 

Events for EditMask control

Table 25. 

Event

Support Level

Example Code

Constructor

Supported

Constructor()

Destructor

Supported

Destructor()

DragDrop

Supported

DragDrop(source)

DragEnter

Supported

DragEnter(source)

DragLeave

Supported

DragLeave(source)

DragWithin

Supported

DragWithin(source)

GetFocus

Supported

GetFocus()

LoseFocus

Supported

LoseFocus()

Modified

Supported

Modified()

RButtonDown

Supported

RButtonDown(flags, xpos, ypos)

Help

Unsupported

 

Other

Unsupported

 

Functions for EditMask control

Table 26. 

Function

Support Level

Example Code

ClassName

Supported

ls_returnvalue = em_1.ClassName()

Clear

Supported

li_returnvalue = em_1.Clear()

Copy

Supported

li_returnvalue = em_1.Copy()

Cut

Supported

li_returnvalue = em_1.Cut()

Drag

Supported

em_1.Drag(Begin!)

GetData

Supported

li_returnvalue = em_1.GetData(datavariable)

GetParent

Supported

PowerObject lpo_returnvalue

lpo_returnvalue = em_1.GetParent()

Hide

Supported

li_returnvalue = em_1.Hide()

LineCount

Supported

li_returnvalue = em_1.LineCount()

LineLength

Supported

li_returnvalue = em_1.LineLength()

Move

Supported

li_returnvalue = em_1.Move(li_xpos, li_ypos)

Paste

Supported

li_returnvalue = em_1.Paste()

PointerX

Supported

li_returnvalue = em_1.PointerX()

PointerY

Supported

li_returnvalue = em_1.PointerY()

PostEvent

Supported

lb_returnvalue = em_1.PostEvent(event)

ReplaceText

Supported

li_returnvalue = em_1.ReplaceText(text)

Resize

Supported

li_returnvalue = em_1.Resize(li_width, li_height)

SelectedLength

Supported

li_returnvalue = em_1.SelectedLength()

If the control is off screen, the execution of the function may have an incorrect return result.

SelectedLine

Supported

integer li_SL

li_SL = em_1.SelectedLine()

SelectedStart

Supported

li_returnvalue = em_1.SelectedStart()

If the control is off screen, the execution of the function may have an incorrect return result.

SelectedText

Supported

ls_returnvalue = em_1.SelectedText()

If the control is off screen, the execution of the function may have an incorrect return result.

SelectText

Supported

ls_returnvalue = em_1.SelectText(start, length)

If the control is off screen, the execution of the function may have an incorrect return result.

SetFocus

Supported

li_returnvalue = em_1.SetFocus()

Unsupported: SetFocus(em_test)

SetMask

Supported

li_returnvalue = em_1.SetMask(maskdatatype, mask)

SetPosition

Supported

li_returnvalue = em_1.SetPosition(position)

SetRedraw

Supported

li_returnvalue = em_1.SetRedraw (FALSE)

Show

Supported

li_returnvalue = em_1.Show()

TextLine

Supported

li_returnvalue = em_1.TextLine()

TriggerEvent

Supported

li_returnvalue = em_1.TriggerEvent()

TypeOf

Supported

If em_1.TypeOf() = editmask! Then

ls_returnvalue = 'editmask!'

else

ls_returnvalue = 'invalid!'

End if

CanUndo

Unsupported

 

GetContextService

Unsupported

 

Position

Unsupported

 

Print

Unsupported

 

Scroll

Unsupported

 

Undo

Unsupported

 

GroupBox control

Properties for GroupBox control

Table 27. 

Property

Support Level

Example Code

BackColor

Supported

gb_1.BackColor = ll_value

Note: transparent value is unsupported.

BorderStyle

Supported

gb_1.Border = TRUE

gb_1.BorderStyle = StyleLowered!

BringToTop

Supported

gb_1.BringToTop = TRUE

DragAuto

Supported

gb_1.DragAuto = TRUE

DragIcon

Supported

gb_1.DragIcon = 'c:\archive\arrow.ico''

Enabled

Supported

gb_1.Enabled = lb_value

FaceName

Supported

gb_1.FaceName = ls_value

FontCharSet

Supported

gb_1.FontCharSet = ANSI!

FontFamily

Supported

gb_1.FontFamily = Roman!

FontPitch

Supported

gb_1.FontPitch = Fixed!

Height

Supported

gb_1.Height = li_value

Italic

Supported

gb_1.Italic = lb_value

Pointer

Supported

gb_1.Pointer = 'Beam!'

gb_1.Pointer = 'd:\archive\IBEAM.BMP.cur'

RightToLeft

Supported

gb_1.RightToLeft = TRUE

TabOrder

Supported

gb_1.TabOrder = 50

Tag

Supported

gb_1.Tag = ls_value

Text

Supported

gb_1.Text = ls_value

TextColor

Supported

gb_1.TextColor = ll_value

gb_1.TextColor = RGB(192,192,192)

TextSize

Supported

gb_1.TextSize = li_value

Underline

Supported

gb_1.Underline = lb_value

Visible

Supported

gb_1.Visible = lb_value

Weight

Supported

gb_1.Weight = li_value

Width

Supported

gb_1.Width = li_value

X

Supported

gb_1.X = li_value

Y

Supported

gb_1.Y = li_value

ClassDefinition

Unsupported

 

Transparency

Unsupported

 

Events for GroupBox control

Table 28. 

Event

Support Level

Example Code

Constructor

Supported

Constructor( )

Destructor

Supported

Destructor( )

Help

Unsupported

 

Other

Unsupported

 

Functions for GroupBox control

Table 29. 

Function

Support Level

Example Code

ClassName

Supported

ls_returnvalue = gb_1.ClassName()

Drag

Supported

gb_1.drap(Cancel!)

GetParent

Supported

PowerObject lpo_returnvalue

lpo_returnvalue = gb_1.GetParent()

Hide

Supported

li_returnvalue = gb_1.Hide()

Move

Supported

gb_1.Move(200,500)

li_returnvalue = gb_1.Move(li_xpos, li_ypos)

PointerX

Supported

li_returnvalue = gb_1.PointerX()

PointerY

Supported

li_returnvalue = gb_1.PointerY()

PostEvent

Supported

lb_returnvalue = gb_1.PostEvent(event)

Resize

Supported

li_returnvalue = gb_1.Resize(li_width,li_height)

SetFocus

Supported

li_returnvalue = gb_1.SetFocus( )

Unsupported: SetFocus(gb_text)

SetPosition

Supported

li_returnvalue = gb_1.SetPosition(position)

SetRedraw

Supported

li_value = gb_1.SetRedraw(TRUE)

Show

Supported

li_returnvalue = gb_1.Show()

TriggerEvent

Supported

li_returnvalue = gb_1.TriggerEvent(event)

TypeOf

Supported

if gb_1.TypeOf() = GroupBox! Then

ls_returnvalue = "GroupBox!"

else

ls_returnvalue = "invalid"

end if

GetContextService

Unsupported

 

Print

Unsupported

 

HProgressBar control

Properties for HProgressBar control

Table 30. 

Property

Support Level

Example Code

BringToTop

Supported

hpb_1.BringToTop = TRUE

DragAuto

Supported

hpb_1.DragAuto = TRUE

DragIcon

Supported

hpb_1.DragIcon = 'Question!'

Height

Supported

hpb_1.Height = li_value

MaxPosition

Supported

hpb_1.MaxPosition = 120

MinPosition

Supported

hpb_1.MinPosition = 20

Pointer

Supported

hpb_1.Pointer = 'Beam!'

hpb_1.Pointer ='d:\archive\IBEAM.BMP.cur'

Position

Supported

hpb_1.Position = 50

SetStep

Supported

hpb_1.setstep = 20

SmoothScroll

Supported

hpb_1.SmoothScroll = True

TabOrder

Supported

hpb_1.TabOrder = 20

Tag

Supported

hpb_1.Tag = "HProgressBar control"

Visible

Supported

hpb_1.Visible = TRUE

Width

Supported

hpb_1.Width = 700

X

Supported

hpb_1.X = 280

Y

Supported

hpb_1.Y = 1280

ClassDefinition

Unsupported

 

Events for HProgressBar control

Table 31. 

Event

Support Level

Example Code

Clicked

Supported

Clicked()

Constructor

Supported

Constructor()

Destructor

Supported

Destructor()

DoubleClicked

Supported

DoubleClicked()

DragDrop

Supported

DragDrop(source)

DragEnter

Supported

DragEnter(source)

DragLeave

Supported

DragLeave(source)

DragWithin

Supported

DragWithin(source)

GetFocus

Supported

GetFocus()

LoseFocus

Supported

LoseFocus()

RightClicked

Supported

RightClicked()

Help

Unsupported

 

Other

Unsupported

 

Functions for HProgressBar control

Table 32. 

Function

Support Level

Example Code

ClassName

Supported

ls_classnm = hpb_1.classname()

Drag

Supported

li_return = hpb_1.drag(Begin!)

GetParent

Supported

lpo_return = hpb_1.GetParent()

Hide

Supported

li_return = hpb_1.Hide()

Move

Supported

li_return = hpb_1.Move(li_x,li_y)

OffsetPos

Supported

li_return = hpb_1.OffsetPos(10)

PointerX

Supported

li_return = hpb_1.PointerX()

PointerY

Supported

li_return = hpb_1.PointerY()

PostEvent

Supported

hpb_1.PostEvent(Clicked!)

Resize

Supported

li_return = hpb_1.Resize(li_x, li_y)

SetFocus

Supported

li_return = hpb_1.SetFocus()

SetPosition

Supported

li_return = hpb_1.SetPosition(ToTop!)

SetRange

Supported

li_return = hpb_1.SetRange(1, 10)

SetRedraw

Supported

li_return = hpb_1.SetRedraw(FALSE)

Show

Supported

li_return = hpb_1.Show()

StepIt

Supported

li_return = hpb_1.StepIt( )

TriggerEvent

Supported

li_return = hpb_1.TriggerEvent(Clicked!)

TypeOf

Supported

type_obj = hpb_1.typeof()

GetContextService

Unsupported

 

Print

Unsupported

 

HScrollBar control

Properties for HScrollBar control

Table 33. 

Property

Support Level

Example Code

BringToTop

Supported

hsb_1.BringToTop = TRUE

DragAuto

Supported

hsb_1.DragAuto = TRUE

DragIcon

Supported

hsb_1.DragIcon = 'Question!'

Height

Supported

hsb_1.Height = li_value

MaxPosition

Supported

hsb_1.MaxPosition = 120

MinPosition

Supported

hsb_1.MinPosition = 20

Pointer

Supported

hsb_1.Pointer = 'Beam!'

hsb_1.Pointer ='d:\archive\IBEAM.BMP.cur'

Position

Supported

hsb_1.Position = 50

StdHeight

Supported

hsb_1.StdHeight = True

TabOrder

Supported

hsb_1.TabOrder = 20

Tag

Supported

hsb_1.Tag = "HScrollBar control"

Visible

Supported

hsb_1.Visible = TRUE

Width

Supported

hsb_1.Width = 700

X

Supported

hsb_1.X = 280

Y

Supported

hsb_1.Y = 1280

ClassDefinition

Unsupported

 

Events for HScrollBar control

Table 34. 

Event

Support Level

Example Code

Constructor

Supported

Constructor()

Destructor

Supported

Destructor()

DragDrop

Supported

DragDrop(source)

DragEnter

Supported

DragEnter(source)

DragLeave

Supported

DragLeave(source)

DragWithin

Supported

DragWithin(source)

GetFocus

Supported

GetFocus()

LineLeft

Supported

LineLeft()

LineRight

Supported

LineRight()

Note: User defined events in the LineLeft or LineRight events for the HScrollBar control may be triggered more than once.

LoseFocus

Supported

LoseFocus()

Moved

Supported

Moved(scrollpos)

PageLeft

Supported

PageLeft()

PageRight

Supported

PageRight()

RButtonDown

Supported

RButtonDown()

Help

Unsupported

 

Other

Unsupported

 

Functions for HScrollBar control

Table 35. 

Function

Support Level

Example Code

ClassName

Supported

ls_classnm = hsb_1.classname()

Drag

Supported

li_return = hsb_1.drag(Begin!)

GetParent

Supported

lpo_return = hsb_1.GetParent()

Hide

Supported

li_return = hsb_1.Hide()

Move

Supported

li_return = hsb_1.Move(li_x,li_y)

PointerX

Supported

li_return = hsb_1.PointerX()

PointerY

Supported

li_return = hsb_1.PointerY()

PostEvent

Supported

hsb_1.PostEvent(Clicked!)

Resize

Supported

li_return = hsb_1.Resize(li_x, li_y)

SetFocus

Supported

li_return = hsb_1.SetFocus()

SetPosition

Supported

li_return = hsb_1.SetPosition(ToTop!)

SetRedraw

Supported

li_return = hsb_1.SetRedraw(FALSE)

Show

Supported

li_return = hsb_1.Show()

TriggerEvent

Supported

li_return = hsb_1.TriggerEvent(Clicked!)

TypeOf

Supported

type_obj = hsb_1.typeof()

GetContextService

Unsupported

 

Print

Unsupported

 

HTrackBar control

Properties for HTrackBar control

Table 36. 

Property

Support Level

Example Code

BringToTop

Supported

htb_1.BringToTop = TRUE

DragAuto

Supported

htb_1.DragAuto = TRUE

DragIcon

Supported

htb_1.DragIcon = 'Question!'

Height

Supported

htb_1.Height = li_value

LineSize

Supported

htb_1.LineSize = li_value

MaxPosition

Supported

htb_1.MaxPosition = 120

MinPosition

Supported

htb_1.MinPosition = 20

PageSize

Supported

htb_1.PageSize = li_value

Pointer

Supported

htb_1.Pointer = 'Beam!'

Position

Supported

htb_1.Position = 50

Slider

Supported

htb_1.Slider = TRUE

SliderSize

Supported

htb_1.SliderSize = li_value

TabOrder

Supported

htb_1.TabOrder = 20

Tag

Supported

htb_1.Tag = ls_tag

TickFrequency

Supported

htb_1.TickFrequency = li_value

TickMarks

Supported

htb_1.TickMarks = HTicksOnRight!

Visible

Supported

htb_1.Visible = TRUE

Width

Supported

htb_1.Width = li_value

X

Supported

htb_1.X = li_x

Y

Supported

htb_1.Y = li_y

ClassDefinition

Unsupported

 

Events for HTrackBar control

Table 37. 

Event

Support Level

Example Code

Constructor

Supported

Constructor()

Destructor

Supported

Destructor()

DragDrop

Supported

DragDrop(source)

DragEnter

Supported

DragEnter(source)

DragLeave

Supported

DragLeave(source)

DragWithin

Supported

DragWithin(source)

GetFocus

Supported

GetFocus()

LineDown

Supported

LineDown()

LineUp

Supported

LineUp()

LoseFocus

Supported

LoseFocus()

Moved

Supported

Moved(scrollpos)

PageDown

Supported

PageDown()

PageUp

Supported

PageUp()

RButtonDown

Supported

RButtonDown()

Help

Unsupported

 

Other

Unsupported

 

Functions for HTrackBar control

Table 38. 

Function

Support Level

Example Code

ClassName

Supported

ls_classnm = htb_1.classname()

Drag

Supported

li_return = htb_1.drag(Begin!)

GetParent

Supported

lpo_return = htb_1.GetParent()

Hide

Supported

li_return = htb_1.Hide()

Move

Supported

li_return = htb_1.Move(li_x,li_y)

PointerX

Supported

li_return = htb_1.PointerX()

PointerY

Supported

li_return = htb_1.PointerY()

PostEvent

Supported

htb_1.PostEvent(Clicked!)

Resize

Supported

li_return = htb_1.Resize(li_x, li_y)

SelectionRange

Supported

li_return = htb_1.SelectionRange(30, 70)

SetFocus

Supported

li_return = htb_1.SetFocus()

SetPosition

Supported

li_return = htb_1.SetPosition(ToTop!)

SetRedraw

Supported

li_return = htb_1.SetRedraw(FALSE)

Show

Supported

li_return = htb_1.Show()

TriggerEvent

Supported

li_return = htb_1.TriggerEvent(Clicked!)

TypeOf

Supported

type_obj = htb_1.typeof()

GetContextService

Unsupported

 

Print

Unsupported

 

InkPicture control

Properties for InkPicture control

Property added by Appeon

Recognitiontimer - Specifies the time period in milliseconds between the last ink stroke and the start of text recognition (the Appeon_recognition event). The default is 2000 (two seconds).

Table 39. 

Property

Support Level

Description

AutoErase

Unsupported

 

BackColor

Supported

 

Border

Supported

 

BorderStyle

Supported

 

BringToTop

Supported

 

ClassDefinition

Supported

 

CollectionMode

Supported

 

DragAuto

Supported

 

DragIcon

Supported

 

DynamicRendering

Supported

 

EditMode

Supported

InkPicSelectMode! is not supported.

Enabled

Supported

 

EraseMode

Supported

 

EraseWidth

Unsupported

 

Height

Supported

 

HighContrastInk

Unsupported

 

IgnorePressure

Unsupported

 

InkAntiAliased

Unsupported

 

InkColor

Supported

 

InkEnabled

Supported

 

InkFileName

Unsupported

 

InkHeight

Unsupported

 

InkTransparency

Unsupported

 

InkWidth

Supported

 

MarginX

Unsupported

 

MarginY

Unsupported

 

PenTip

Unsupported

 

PictureFileName

Unsupported

 

PictureSizeMode

Supported

 

Pointer

Supported

 

PowerTipText

Supported

 

Status

Unsupported

 

TabOrder

Supported

 

Tag

Supported

 

Visible

Supported

 

Width

Supported

 

X

Supported

 

Y

Supported

 

Events for InkPicture control

Event added by Appeon

Appeon_recognition - Occurs when the last ink stroke has finished (that is, Stroke event is ended) for the period of time specified in the Recognitiontimer property. This event provides a way for the developer to write PowerScript to, for example, save user strokes as images or blob data to the database.

Table 40. 

Event

Support Level

Example Code

Clicked

Supported

 

Constructor

Supported

 

Destructor

Supported

 

DoubleClicked

Supported

 

DragDrop

Supported

 

DragEnter

Supported

 

DragLeave

Supported

 

DragWithin

Supported

 

Gesture

Supported

 

GetFocus

Supported

 

Help

Supported

 

LoseFocus

Supported

 

Other

Supported

 

RButtonDown

Unsupported

 

SelectionChanged

Unsupported

 

SelectionChanging

Unsupported

 

SizeChanged

Supported

 

Stroke

Supported

 

Functions for InkPicture control

Table 41. 

Function

Support Level

Example Code

ClassName

Supported

 

Drag

Supported

 

GetContextService

Supported

 

GetParent

Supported

 

Hide

Supported

 

LoadInk

Unsupported

 

LoadPicture

Supported

 

Move

Supported

 

PointerX

Supported

 

PointerY

Supported

 

PostEvent

Supported

 

Print

Unsupported

 

ResetInk

Supported

 

ResetPicture

Supported

 

Resize

Supported

 

Save

Supported

WithInk argument can only be set to "True", not "False".

SaveInk

Unsupported

 

SetFocus

Supported

 

SetPosition

Supported

 

SetRedraw

Supported

 

Show

Supported

 

TriggerEvent

Supported

 

TypeOf

Supported

 

Line control

Properties for Line control

Table 42. 

Property

Support Level

Example Code

BeginX

Supported

ln_1.BeginX = li_value

BeginY

Supported

ln_1.BeginY = li_value

EndX

Supported

ln_1.EndX = li_value

EndY

Supported

ln_1.EndY = li_value

LineColor

Supported

ln_1.LineColor = ll_value

ln_1.LineColor = RGB(192,192,192)

LineStyle

Supported

ln_1.LineStyle = Continuous!

ln_1.LineStyle = Dash!

ln_1.LineStyle = DashDot!

ln_1.LineStyle = DashDotDot!

ln_1.LineStyle = Dot!

ln_1.LineStyle = Transparent!

LineThickness

Supported

ln_1.LineThickness = li_value

Tag

Supported

ln_1.Tag = ls_value

Visible

Supported

ln_1.Visible = TRUE ln_1.Visible = lb_value

ClassDefinition

Unsupported

 

Events for Line control

Table 43. 

Event

Support Level

Example Code

Constructor

Supported

Constructor()

Destructor

Supported

Destructor()


Functions for Line control

Table 44. 

Function

Support Level

Example Code

ClassName

Supported

ls_returnvalue = ln_1.ClassName()

GetParent

Supported

li_returnvalue = ln_1.GetParent( )

Hide

Supported

li_returnvalue = ln_1.Hide( )

Move

Supported

li_returnvalue = ln_1.Move(li_xpos, li_ypos)

Resize

Supported

li_returnvalue = ln_1.Resize(100, 150)

Show

Supported

li_returnvalue = ln_1.Show()

TypeOf

Supported

if ln_1.typeof() = Line! Then

ls_returnvalue = 'Line!'

else

ls_returnvalue = 'Invalid'

end if

GetContextService

Unsupported

 

ListBox control

Properties for ListBox control

Table 45. 

Property

Support Level

Example Code

Accelerator

Supported

lb_1.Accelerator=67

BackColor

Supported

lb_1.BackColor = ll_value

lb_1.BackColor = RGB(192,192,192)

Border

Supported

lb_1.Border = lb_value

BringToTop

Supported

lb_1.BringToTop = TRUE

BorderStyle

Supported

lb_1.BorderStyle = StyleLowered!

lb_1.BorderStyle = StyleRaised!

lb_1.BorderStyle = StyleBox!

Note: StyleShadowBox! is unsupported.

DisableNoScroll

Supported

lb_1.DisableNoScroll = FALSE

lb_1.DisableNoScroll = lb_value

DragAuto

Supported

lb_1.DragAuto = TRUE

DragIcon

Supported

lb_1.DragIcon = 'c:\examples\arrow.ico'

lb_1.DragIcon = 'Question!'

Enabled

Supported

lb_1.Enabled = lb_value

ExtendedSelect

Supported

lb_1.ExtendedSelect = lb_value

FaceName

Supported

lb_1.FaceName = ls_value

FontCharSet

Supported

lb_1.FontCharSet = ANSI!

FontFamily

Supported

lb_1.FontFamily = Roman!

FontPitch

Supported

lb_1.FontPitch = Fixed!

Height

Supported

lb_1.Height = li_value

HScrollBar

Supported

lb_1.HScrollBar = TRUE

lb_1.HscrollBar = lb_value

Italic

Supported

lb_1.Italic = lb_value

Item[ ]

Supported

ls_value = lb_1.Item[1]

MultiSelect

Supported

lb_1.MultiSelect = lb_value

Pointer

Supported

lb_1.Pointer = 'SizeNS!'

lb_1.Pointer='d:\archive\IBEAM.BMP.cur'

RightToLeft

Supported

lb_1.RightToLeft = TRUE

Sorted

Supported

lb_1.Sorted = TRUE

TabOrder

Supported

lb_1.TabOrder = 60

Tag

Supported

lb_1.Tag = ls_value

TextColor

Supported

lb_1.TextColor = ll_value

lb_1.TextColor = RGB(192,192,192)

TextSize

Supported

lb_1.TextSize = li_value

Underline

Supported

lb_1.Underline = lb_value

Visible

Supported

lb_1.Visible = lb_value

VScrollBar

Supported

lb_1.VscrollBar = lb_value

Weight

Supported

lb_1.Weight = li_value

Width

Supported

lb_1.Width = li_value

X

Supported

lb_1.X = li_value

Y

Supported

lb_1.Y = li_value

ClassDefinition

Unsupported

 

TabStop[ ]

Unsupported

 

Events for ListBox control

Table 46. 

Event

Support Level

Example Code

Constructor

Supported

Constructor()

Destructor

Supported

Destructor()

DoubleClicked

Supported

DoubleClicked()

DragDrop

Supported

DragDrop(source)

DragEnter

Supported

DragEnter(source)

DragLeave

Supported

DragLeave(source)

DragWithin

Supported

DragWithin(source)

GetFocus

Supported

GetFocus()

LoseFocus

Supported

LoseFocus()

RButtonDown

Supported

RButtonDown(flags, xpos, ypos)

SelectionChanged

Supported

SelectionChanged(index)

Help

Unsupported

 

Other

Unsupported

 

Functions for ListBox control

Table 47. 

Function

Support Level

Example Code

AddItem

Supported

li_returnvalue = lb_1.AddItem(item)

ClassName

Supported

ls_ returnvalue = lb_1.ClassName()

DeleteItem

Supported

li_returnvalue = lb_1.DeleteItem(index)

DirList

Supported

lb_1.DirList("C:\EMPLOYEE\*.TXT", 0)

DirSelect

Supported

lb_1.DirSelect(ls_filename)

Drag

Supported

lb_1.Drag(End!)

Find Item

Supported

li_returnvalue = lb_1.FindItem(text, index)

GetParent

Supported

PowerObject lpo_returnvalue

lpo_returnvalue = lb_1.GetParent()

Hide

Supported

li_returnvalue = lb_1.Hide()

InsertItem

Supported

li_returnvalue = lb_1.InsertItem(ls_x, li_y)

Move

Supported

li_returnvalue = string(lb_1.Move(li_x,li_y))

PointerX

Supported

li_returnvalue = lb_1.PointerX()

PointerY

Supported

li_returnvalue = lb_1.PointerY()

PostEvent

Supported

lb_returnvalue = string(lb_1.PostEvent(Clicked!))

Reset

Supported

li_returnvalue = lb_1.Reset()

Resize

Supported

li_returnvalue = lb_1.Resize(li_x,li_y)

SelectedIndex

Supported

li_returnvalue = lb_1.SelectedIndex()

SelectedItem

Supported

ls_returnvalue = lb_1.SelectedItem()

SelectItem

Supported

li_returnvalue = lb_1.SelectItem (item, index)

SetFocus

Supported

li_returnvalue = lb_1.SetFocus()

Unsupported: SetFocus(lb_test)

SetPosition

Supported

li_returnvalue = lb_1.SetPosition(position)

SetRedraw

Supported

li_value = lb_1.SetRedraw(TRUE)

SetState

Supported

li_returnvalue = lb_1.SetState(index, lb_y)

SetTop

Supported

li_returnvalue = lb_1.SetTop(index)

Show

Supported

li_returnvalue = lb_1.Show()

State

Supported

li_returnvalue = lb_1.State(index)

Text

Supported

ls_returnvalue = lb_1.Text (index)

Top

Supported

li_returnvalue = lb_1.Top()

TotalItems

Supported

li_returnvalue = lb_1.TotalItems()

TotalSelected

Supported

li_returnvalue = lb_1.TotalSelected()

TriggerEvent

Supported

li_returnvalue = lb_1.TriggerEvent(event)

TypeOf

Supported

if lb_1.typeof() = listbox! Then

ls_returnvalue ='listbox!'

else

ls_returnvalue ='isvalid' end if

GetContextService

Unsupported

 

Print

Unsupported

 

ListView control

Important Requirements

In the ListView control, selecting multiple items at one time is unsupported.

Properties for ListView control

Table 48. 

Property

Support Level

Example Code

Accelerator

Supported

lv_1.Accelerator=67

AutoArrange

Supported

lv_1.AutoArrange = TRUE

BackColor

Supported

lv_1.BackColor = ll_value

lv_1.BackColor = RGB(192,192,192)

Note: transparent value is unsupported.

Border

Supported

lv_1.Border = lb_value

BorderStyle

Supported

lv_1.BorderStyle = StyleBox!

lv_1.BorderStyle = StyleLowered!

lv_1.BorderStyle = StyleRaised!

Note: StyleShadowBox! is not supported.

BringToTop

Supported

lv_1.BringToTop = TRUE

ButtonHeader

Supported

lv_1.ButtonHeader = TRUE

CheckBoxes

Supported

lv_1.CheckBoxes = TRUE

DeleteItems

Supported

lv_1.DeleteItems = lb_value

DragAuto

Supported

lv_1.DragAuto = TRUE

DragIcon

Supported

lv_1.DragIcon = 'c:\archive\arrow.ico''

EditLabels

Supported

lv_1.EditLabels = lb_value

Enabled

Supported

lv_1.Enabled = lb_value

ExtendedSelect

Supported

lv_1.ExtendedSelect = TRUE

FaceName

Supported

lv_1.FaceName =ls_value

FixedLocations

Supported

lv_1.FixedLocations = FALSE

FontCharSet

Supported

lv_1.FontCharSet = ANSI!

FontFamily

Supported

lv_1.FontFamily = Roman!

FontPitch

Supported

lv_1.FontPitch = Fixed!

FullRowSelect

Supported

lv_1.FullRowSelect = TRUE

GridLines

Supported

lv_1.GridLines = TRUE

HeaderDragDrop

Supported

lv_1.HeaderDragDrop = TRUE

Height

Supported

lv_1.Height = li_value

HideSelection

Supported

lv_1.HideSelection = FALSE

Italic

Supported

lv_1.Italic = lb_value

Item[ ]

Supported

lv_1.item[intx] = ls_value

ItemPicture​Index[ ]

Supported

lv_1.ItemPictureIndex [li_x] = ls_value

LabelWrap

Supported

lv_1.LabelWrap = TRUE

LargePicture​Height

Supported

lv_1.LargePictureHeight = li_value

Note: This value cannot be set to 0 or negative.

LargePicture​MaskColor

Supported

lv_1.LargePictureMaskColor = RGB(255, 255, 0)

LargePicture​Name[ ]

Supported

lv_1.LargePictureName [li_x] = ls_value

LargePicture​Width

Supported

lv_1.LargePictureWidth = li_value

Note: This value cannot be set to 0 or negative.

OneClickActivate

Supported

lv_1.OneClickActivate = TRUE

Pointer

Supported

lv_1.Pointer = 'SizeNS!'

lv_1.Pointer = 'd:\archive\IBEAM.BMP.cur'

Scrolling

Supported

lv_1.Scrolling = TRUE

ShowHeader

Supported

lv_1.ShowHeader = TRUE

SmallPicture​Height

Supported

lv_1.SmallPictureHeight = li_value

Note: This value cannot be set to 0 or negative.

SmallPicture​MaskColor

Supported

lv_1.SmallPictureMaskColor = RGB(255, 255, 0)

SmallPictureName[ ]

Supported

lv_1.SmallPictureName [li_x] = ls_value

SmallPicture​Width

Supported

lv_1.SmallPictureWidth = li_value

Note: This value cannot be set to 0 or negative.

SortType

Supported

lv_1.SortType = Unsorted!

StatePicture​MaskColor

Supported

lv_1.StatePictureMaskColor = RGB(255, 255, 0)

StatePicture​Name[ ]

Supported

lv_1.StatePictureName [li_x] = ls_value

TabOrder

Supported

lv_1.TabOrder = 70

Tag

Supported

lv_1.Tag = ls_value

TextColor

Supported

lv_1.TextColor = ll_value

lv_1.TextColor = RGB(192,192,192)

TextSize

Supported

lv_1.TextSize = li_value

TrackSelect

Supported

lv_1.TrackSelect = TRUE

TwoClickActivate

Supported

lv_1.TwoClickActivate = TRUE

Underline

Supported

lv_1.Underline = lb_value

UnderlineCold

Supported

lv_1.UnderlineCold = TRUE

UnderlineHot

Supported

lv_1.UnderlineHot = TRUE

View

Supported

lv_1.View = ListViewLargeIcon!

Visible

Supported

lv_1.Visible = lb_value

Weight

Supported

lv_1.Weight = li_value

Width

Supported

lv_1.Width = li_value

X

Supported

lv_1.X = li_value

Y

Supported

lv_1.Y =li_value

ClassDefinition

Unsupported

 

LayoutRTL

Unsupported

 

StatePictureHeight

Unsupported

 

StatePictureWidth

Unsupported

 

Transparency

Unsupported

 

Events for ListView control

Table 49. 

Event

Support Level

Example Code

BeginDrag

Supported

BeginDrag(index)

BeginLabelEdit

Supported

BeginLabelEdit(index)

BeginRightDrag

Supported

BeginRightDrag(index)

Clicked

Supported

Clicked(index)

ColumnClick

Supported

ColumnClick(column)

Constructor

Supported

Constructor()

DeleteAllItems

Supported

DeleteAllItems()

DeleteItem

Supported

DeleteItem(index)

Destructor

Supported

Destructor()

DoubleClicked

Supported

DoubleClicked(index)

DragDrop

Supported

DragDrop(source,index)

DragEnter

Supported

DragEnter(source)

DragLeave

Supported

DragLeave(source)

DragWithin

Supported

DragWithin(source,index)

EndLabelEdit

Supported

EndLabelEdit(index,newlabel)

GetFocus

Supported

GetFocus()

InsertItem

Supported

InsertIem(index)

ItemActivate

Supported

ItemActivate(index, focuschanged, hasfocus, selectionchange, selected, otherchange)

ItemChanged

Supported

ItemChanged(index, focuschanged, hasfocus, selectionchange, selected, otherchange)

ItemChanging

Supported

ItemChanging(index, focuschange, hasfocus, selectionchange, selected, otherchange)

Key

Supported

Key(key,keyflags)

LoseFocus

Supported

LoseFocus()

RightClicked

Supported

RightClicked(index)

RightDouble​Clicked

Supported

RightDoubleClicked(index)

Help

Unsupported

 

Other

Unsupported

 

Sort

Unsupported

 

Functions for ListView control

Table 50. 

Function

Support Level

Example Code

AddColumn

Supported

li_value = lv_1.AddColumn(ls_x,Center!,li_y)

AddItem

Supported

li_value = lv_1.AddItem(ls_x,li_y)

AddLargePicture

Supported

li_value = lv_1.AddLargePicture(ls_prop)

AddSmallPicture

Supported

li_value = lv_1.AddSmallPicture(ls_prop)

AddStatePicture

Supported

li_value = lv_1.AddstatePicture(ls_prop)

Arrange

Supported

li_value = lv_1.Arrange()

ClassName

Supported

ls_value = lv_1.ClassName( )

DeleteColumn

Supported

li_value = lv_1.DeleteColumn(1)

DeleteColumns

Supported

li_value = lv_1.DeleteColumns( )

DeleteItem

Supported

li_value = lv_1.DeleteItem(li_x)

DeleteItems

Supported

li_value = lv_1.DeleteItems( )

DeleteLarge​Picture

Supported

li_value = lv_1.DeleteLargePicture(li_x)

DeleteLarge​Pictures

Supported

li_value = lv_1.DeleteLargePictures( )

DeleteSmallPicture

Supported

li_value = lv_1.DeleteSmallPicture(li_x)

DeleteSmall​Pictures

Supported

li_value = lv_1.DeleteSmallPictures( )

DeleteState​Picture

Supported

li_value = lv_1.DeleteStatePicture(li_x)

DeleteState​Pictures

Supported

li_value = lv_1.DeleteStatePictures( )

Drag

Supported

lv_1.Drag(Begin!)

EditLabel

Supported

li_value= lv_1.EditLabel()

FindItem

Supported

li_Value = lv_1.FindItem (startindex, label, partial, wrap)

li_value = lv_1.FindItem (startindex, direction, focused, selected, cuthighlighted, drophighlighted)

GetColumn

Supported

li_strValue = lv_1.GetColumn(index, label, alignment, width)

GetItem

Supported

li_value = lv_1.GetItem(li_x,lv1)

GetParent

Supported

PowerObject lpo_returnvalue

lpo_returnvalue = lv_1.GetParent()

Hide

Supported

li_value = lv_1.Hide( )

InsertColumn

Supported

li_value = lv_1.InsertColumn(li_x,ls_x,Center!,li_y)

InsertItem

Supported

li_value = lv_1.InsertItem(2, "Insert String")

Move

Supported

li_value = lv_1.Move(li_x,li_y)

PointerX

Supported

li_value = lv_1.PointerX()

PointerY

Supported

li_value = lv_1.PointerY()

PostEvent

Supported

lv_1.PostEvent(Clicked!)

Resize

Supported

li_value = lv_1.Resize(li_x,li_y)

SelectedIndex

Supported

li_value = lv_1.SelectedIndex( )

SetColumn

Supported

li_value = lv_1.SetColumn(li_x,ls_x,Center!,li_y)

SetFocus

Supported

li_value = lv_1.SetFocus( )

Unsupported: SetFocus(lv_test)

SetItem

Supported

li_value = lv_1.SetItem(li_x[],li_y[],lv1)

SetPosition

Supported

li_value = lv_1.SetPosition(Behind!, lv_three)

SetRedraw

Supported

li_value = lv_1.SetRedraw(TRUE)

Show

Supported

li_value = lv_1.Show( )

Sort

Supported

li_value = lv_1.Sort(Ascending!)

li_value = lv_1.Sort(Descending!)

li_value = lv_1.Sort(Unsorted!)

Note: userdefinesort! is not supported.

TotalColumns

Supported

li_cols = lv_1.TotalColumns( )

TotalItems

Supported

li_value = lv_1.TotalItems( )

TriggerEvent

Supported

li_value = lv_1.TriggerEvent("Clicked")

TypeOf

Supported

if lv_1.TypeOf( ) = ListView! Then

ls_value = "ListView!"

else

ls_value = "invalid"

end if

SetOverlayPicture

Supported

lv_1.SetOverlayPicture(1, index)

TotalSelected

Supported

 

GetContextService

Unsupported

 

GetOrigin

Unsupported

 

Print

Unsupported

 

MonthCalendar control

Properties for MonthCalendar control

Table 51. 

Property

Support Level

Example Code

Accelerator

Supported

mc_1.Accelerator=67

AccessibleDescription

Supported

 

AccessibleName

Supported

 

AccessibleRole

Supported

 

AutoSize

Supported

mc_1.AutoSize = false

BackColor

Supported

mc_1.BackColor = RGB(0, 0, 255)

mc_1.BackColor = ll_value

Border

Supported

mc_1.Border = TRUE

mc_1.Border = lb_value

BorderStyle

Supported

mc_1.BorderStyle = StyleBox!

mc_1.BorderStyle = StyleLowered!

mc_1.BorderStyle = StyleRaised!

Note: StyleShadowBox! is unsupported.

BringToTop

Supported

mc_1.BringToTop = TRUE

DragAuto

Supported

mc_1.DragAuto = TRUE

Note: On the Web, dragging a DatePicker control will not trigger the DropDown event if the DragAuto property is set to True, which means there is no Month Calender displayed on the Web when you Drag the DatePicker with setting the DragAuto property to True.

DragIcon

Supported

mc_1.DragIcon = 'arrow.ico'

Enabled

Supported

mc_1.Enabled=TRUE

mc_1.Enabled = lb_value

FaceName

Supported

mc_1.FaceName = ""

mc_1.FaceName = ls_value

FirstDayOfWeek

Supported

mc_1.FirstDayOfWeek = Monday!

FontCharSet

Supported

mc_1.FontCharSet = ANSI!

FontFamily

Supported

mc_1.FontFamily = Roman!

FontPitch

Supported

mc_1.FontPitch = Fixed!

Height

Supported

mc_1.Height = 750

mc_1.Height = li_value

Italic

Supported

mc_1.Italic=TRUE

mc_1.Italic = lb_value

MaxSelectCount

Supported

mc_1.MaxSelectCount = 7

MonthBackColor

Supported

mc_1.MonthBackColor = RGB(255, 255, 0

Pointer

Supported

mc_1.Pointer = 'Size!'

ScrollRate

Supported

mc_1.ScrollRate = 3

TabOrder

Supported

mc_1.TabOrder = 30

Tag

Supported

mc_1.Tag = ls_value

TextColor

Supported

mc_1.TextColor = ll_value

TextSize

Supported

mc_1.TextSize = li_value

TitleBackColor

Supported

mc_1.TitleBackColor = RGB(128, 255, 128)

TitleTextColor

Supported

mc_1.TitleTextColor = RGB(0,0,255)

TodayCircle

Supported

mc_1.TodaySection = false

TodaySection

Supported

mc_1.TodaySection = false

TrailingTextColor

Supported

mc_1.TrailingTextColor = 134217731

Underline

Supported

mc_1.Underline = lb_value

Visible

Supported

mc_1.Visible = True

WeekNumbers

Supported

mc_1.WeekNumbers = true

Weight

Supported

mc_1.Weight = 700 mc_1.Weight = li_value

Width

Supported

mc_1.Width = li_value

Note:

  1. If the Width value is set to -32768, obtaining the width property returns -32768 on the Web, however it returns 0 in PowerBuilder.

  2. If the Width value is set to 32768, obtaining the width property returns 0 on the Web, however it returns -32768 in PowerBuilder.

X

Supported

mc_1.X = li_value

Note:

  1. If the X value is set to -32768, obtaining the X property returns -32768 on the Web, however it returns 0 in PowerBuilder.

  2. If the Width value is set to 32768, obtaining the width property returns 0 on the Web, however it returns -32768 in PowerBuilder.

Y

Supported

mc_1.Y = li_value

Note:

  1. If the Y value is set to -32768, obtaining the Y property returns -32768 on the Web, however it returns 0 in PowerBuilder.

  2. If the Width value is set to 32768, obtaining the width property returns 0 on the Web, however it returns -32768 in PowerBuilder.

ClassDefinition

Unsupported

 

RightToLeft

Unsupported

 

Events for MonthCalendar control

Table 52. 

Event

Support Level

Example Code

Clicked

Supported

Clicked()

Constructor

Supported

Constructor()

DateChanged

Supported

DateChanged()

Note: SetSelectedDate and SetSelectedRange trigger a DateChanged event twice on the Web.

Destructor

Supported

Destructor()

DoubleClicked

Supported

Doubleclicked(flags,xpos,ypos)

DragDrop

Supported

DragDrop(source)

DragEnter

Supported

DragEnter(source)

DragLeave

Supported

DragLeave(source)

DragWithin

Supported

DragWithin(source)

RButtonDown

Supported

RButtonDown(flags, xpos, ypos)

GetFocus

Unsupported

 

LoseFocus

Unsupported

 

Help

Unsupported

 

UserString

Unsupported

 

Other

Unsupported

 

Functions for MonthCalendar Control

Table 53. 

Function

Support Level

Example Code

ClassName

Supported

ls_value = mc_1.ClassName()

ClearBoldDates

Supported

li_return = mc_1.ClearBoldDates()

Drag

Supported

mc_1.Drag(Begin!)

Note: If you use Drag(Begin!), single mouse clicking will trigger DragEnter and DragDrop event in sequence on the Web. This is different from the event sequences in PowerBuilder.

GetDateLimits

Supported

li_return = mc_1.GetDateLimits (mindate, maxdate)

GetDisplayRange

Supported

li_return = mc_1.GetDisplayRange (startdate, enddate,PartlyDisplayed!)

GetParent

Supported

PowerObject lpo_returnvalue

lpo_returnvalue = mc_1.GetParent()

GetSelectedDate

Supported

li_return = mc_1.GetSelectedDate(seldate)

Notes:

  1. The function returns 0 on the Web if there are several dates selected or the specified date is an invalid value.

  2. The function will trigger a DateChanged event twice on the Web.

GetSelectedRange

Supported

li_return = mc_1.GetSelectedRange(startdate, enddate)

Note: The function will trigger a DateChanged event twice on the Web.

GetToday

Supported

currentdate = mc_1.GetToday()

Hide

Supported

li_return = mc_1.Hide()

Move

Supported

li_return = mc_1.Move(li_x,li_y)

PointerX

Supported

li_value = mc_1.PointerX()

PointerY

Supported

li_value = mc_1.PointerY()

PostEvent

Supported

mc_1.PostEvent(Constructor!)

Resize

Supported

li_return = mc_1.Resize(li_width,li_height)

SetBoldDate

Supported

li_return = mc_1.SetBoldDate(d, true)

SetDateLimits

Supported

li_return = mc_1.SetDateLimits(mindate, maxdate)

SetFocus

Supported

li_return = mc_1.SetFocus()

SetPosition

Supported

li_return = mc_1.SetPosition(position)

SetRedraw

Supported

li_return= mc_1.SetRedraw(FALSE)

SetSelectedDate

Supported

li_return = mc_1.SetSelectedDate(seldate)

Notes: If input an invalid date, the function returns 0 on the Web but -1 in PowerBuilder.

SetSelectedRange

Supported

li_return = mc_1.SetSelectedRange(startdate, enddate)

SetToday

Supported

li_return = mc_1.SetToday(currentdate)

Show

Supported

li_return = mc_1.Show()

TriggerEvent

Supported

mc_1.TriggerEvent(Constructor!)

TypeOf

Supported

if mc_1.TypeOf() = MonthCalendar! Then

ls_return = 'MonthCalendar!'

else

ls_return = 'isvalid'

end if

GetContextService

Unsupported

 

Print

Unsupported

 

MultiLineEdit control

Properties for MultiLineEdit control

Table 54. 

Property

Support Level

Example Code

Accelerator

Supported

mle_1.Accelerator = 67

Alignment

Supported

mle_1.Alignment = Center!

AutoHScroll

Supported

mle_1.AutoHScroll = TRUE

AutoVScroll

Supported

mle_1.AutoVscroll = TRUE

BackColor

Supported

mle_1.BackColor = ll_value

mle_1.BackColor = RGB(192,192,192)

Note: transparent value is unsupported.

Border

Supported

mle_1.Border = lb_value

BorderStyle

Supported

mle_1.BorderStyle = StyleBox!

mle_1.BorderStyle = StyleLowered!

mle_1.BorderStyle = StyleRaised!

Note: StyleShadowBox! is unsupported.

BringToTop

Supported

mle_1.BringToTop = TRUE

DisplayOnly

Supported

mle_1.DisplayOnly =lb_value

DragAuto

Supported

mle_1.DragAuto = TRUE

DragIcon

Supported

mle_1.DragIcon = 'c:\archive\arrow.ico''

Enabled

Supported

mle_1.Enabled = lb_valueM

Note:

when the user moves the pointer over a MultiLineEdit control that has set the Enabled property to false, the pointer on the Web will be different from that in the PowerBuilder application.

FaceName

Supported

mle_1.FaceName = ls_value

FontCharSet

Supported

mle_1.FontCharSet = ANSI!

FontFamily

Supported

mle_1.FontFamily = Roman!

FontPitch

Supported

mle_1.FontPitch = Fixed!

Height

Supported

mle_1.Height = li_value

HideSelection

Supported

mle_1.HideSelection = FALSE

HScrollBar

Supported

mle_1.HScrollBar = TRUE

IgnoreDefault​Button

Supported

mle_1.IgnoreDefaultButton = TRUE

Italic

Supported

mle_1.Italic = lb_value

Limit

Supported

mle_1.Limit = li_value

Pointer

Supported

mle_1.pointer= 'beam!'

mle_1.pointer ='d:\archive\IBEAM.BMP.cur'

RightToLeft

Supported

mle_1.RightToLeft = TRUE

TabOrder

Supported

mle_1.TabOrder = 80

Tag

Supported

mle_1.Tag = ls_value

Text

Supported

mle_1.Text = ls_value

It is unsupported to set the value of this property to null.

TextCase

Supported

mle_1.TextCase = AnyCase!

mle_1.TextCase = Lower! mle_1.TextCase = Upper!

TextColor

Supported

mle_1.TextColor = ll_value

TextSize

Supported

mle_1.TextSize = li_value

Underline

Supported

mle_1.Underline = lb_value

Visible

Supported

mle_1.Visible = lb_value

VScrollBar

Supported

mle_1.VScrollBar = TRUE

Weight

Supported

mle_1.Weight = li_value

Width

Supported

mle_1.Width = li_value

X

Supported

mle_1.X = li_value

Y

Supported

mle_1.Y = li_value

ClassDefinition

Unsupported

 

TabStop[ ]

Unsupported

 

Transparency

Unsupported

 

Events for MultiLineEdit control

Table 55. 

Event

Support Level

Example Code

Constructor

Supported

Constructor()

Destructor

Supported

Destructor()

DragDrop

Supported

DragDrop(source)

DragEnter

Supported

DragEnter(source)

DragLeave

Supported

DragLeave(source)

DragWithin

Supported

DragWithin(source)

GetFocus

Supported

GetFocus()

LoseFocus

Supported

LoseFocus()

Modified

Supported

Modified() A Modified event is followed by a LoseFocus event.

RButtonDown

Supported

RButtonDown(flags, xpos, ypos)

Help

Unsupported

 

Other

Unsupported

 

Functions for MultiLineEdit control

Table 56. 

Function

Support Level

Example Code

ClassName

Supported

ls_value = mle_1.ClassName()

Clear

Supported

ls_value = mle_1.Clear()

Note: the function executes successfully only when the control has focus.

Copy

Supported

ls_value = mle_1.Copy()

Cut

Supported

ls_value = mle_1.Cut()

Drag

Supported

mle_1.Drag(Begin!)

GetParent

Supported

PowerObject lpo_returnvalue

lpo_returnvalue = mle_1.GetParent()

Hide

Supported

ls_value = mle_1.Hide()

LineCount

Supported

li_value = mle_1.LineCount()

LineLength

Supported

li_value = mle_1.LineLength()

Move

Supported

ls_value = mle_1.Move(li_x,li_y)

Paste

Supported

ls_value = mle_1.Paste()

PointerX

Supported

ls_value = mle_1.PointerX()

PointerY

Supported

ls_value = mle_1.PointerY()

Position

Supported

mle_1.Position()

PostEvent

Supported

ls_value = mle_1.PostEvent(Constructor!)

ReplaceText

Supported

ls_strexevalue = mle_1.ReplaceText(ls_x)

Resize

Supported

ls_value = mle_1.Resize(li_x,li_y)

Scroll

Supported

mle_1.Scroll(4)

SelectedLength

Supported

ls_value = mle_1.SelectedLength()

SelectedLine

Supported

integer li_SL

li_SL = mle_1.SelectedLine()

SelectedStart

Supported

ls_value = mle_1.SelectedStart()

SelectedText

Supported

ls_value = mle_1.SelectedText()

SelectText

Supported

li_value = mle_1.SelectText(li_x,li_y)

SetFocus

Supported

ls_value = mle_1.SetFocus()

Unsupported: SetFocus(mle_1)

SetPosition

Supported

mle_1.SetPosition(Behind!, mle_2)

ls_value = mle_1.SetPosition(ToTop!)

ls_value = mle_1.SetPosition(ToBottom!)

SetRedraw

Supported

li_return= mle_1.SetRedraw(FALSE)

Show

Supported

ls_value = mle_1.Show()

TextLine

Supported

ls_value = mle_1.TextLine()

TriggerEvent

Supported

ls_value = mle_1.TriggerEvent(Constructor!)

TypeOf

Supported

if mle_1.typeof() = MultiLineEdit! Then

ls_value = 'MultiLineEdit!'

else

ls_value = 'Invalid' end if

Undo

Supported

li_value = mle_1.Undo()

CanUndo

Unsupported

 

GetContextService

Unsupported

 

Print

Unsupported

 

OLEControl control

Important Requirements

The shortcut key for Ocx is unsupported.

Using parentheses when calling an OLEObject method is required.

Properties for OLEControl control

Table 57. 

Property

Support Level

Example Code

Activation

Supported

ole_1.Activation = ActivateOnDoubleClick!

Note: activateOnGetfocus! is unsupported.

BackColor

Supported

ole_1.BackColor = ll_value

ole_1.BackColor = RGB(192,192,192)

BinaryIndex

Supported

 

BinaryKey

Supported

 

Border

Supported

ole_1.Border = TRUE

ole_1.Border = lb_value

BorderStyle

Supported

ole_1.BorderStyle = StyleBox!

ole_1.BorderStyle = StyleLowered!

Note: StyleShadowBox! is unsupported.

BringToTop

Supported

ole_1.BringToTop = TRUE

DisplayName

Supported

ole_1.DisplayName = "My project"

DisplayType

Supported

ole_1.DisplayType = DisplayAsIcon!

Note: displayasactivexdocument! is unsupported

DocFileName

Supported

ls_ret = ole_1.docfilename

DragAuto

Supported

ole_1.DragAuto = TRUE

DragIcon

Supported

ole_1.DragIcon = 'Question!'

Enabled

Supported

ole_1.Enabled=TRUE

ole_1.Enabled = lb_value

FocusRectangle

Supported

ole_1.FocusRectangle = TRUE

ole_1.FocusRectangle = lb_value

Height

Supported

ole_1.Height = 750

ole_1.Height = li_value

LinkItem

Supported

ls_ret = iole.LinkItem

Object

Supported

OLEObject obj = ole_1.object.activesheet.cells

Int x = ole_1.object.month

ObjectData

Supported

blob lblob_data = ole_1.objectdata

Pointer

Supported

ole_1.Pointer = 'SizeWE!'

ole_1.Pointer='d:\archive\IBEAM.BMP.cur'

SizeMode

Supported

ole_1.SizeMode = Clip!

TabOrder

Supported

ole_1.TabOrder = 40

ole_1.TabOrder = li_order

Tag

Supported

ole_1.Tag = ls_value

Visible

Supported

ole_1.Visible = lb_value

Width

Supported

ole_1.Width = li_value

X

Supported

ole_1.X = li_value

Y

Supported

ole_1.Y = li_value

ClassDefinition

Unsupported

 

ClassLongName

Unsupported

 

ClassShortName

Unsupported

 

ContentsAllowed

Unsupported

 

IsDragTarget

Unsupported

 

LinkUpdate​Options

Unsupported

 

ParentStorage

Unsupported

 

Events for OLEControl control

Table 58. 

Event

Support Level

Example Code

Clicked

Supported

Clicked()

Constructor

Supported

Constructor()

DataChange

Supported

DataChange()

Destructor

Supported

Destructor()

DoubleClicked

Supported

DoubleClicked()

GetFocus

Supported

GetFocus()

LoseFocus

Supported

LoseFocus()

PropertyChanged

Supported

PropertyChanged(propertyname)

PropertyRequest​Edit

Supported

PropertyRequestEdit(propertyname,cancelchange)

RButtonDown

Supported

RButtonDown(flags, xpos, ypos)

SaveObject

Supported

 

Close

Unsupported

 

DragDrop

Unsupported

 

DragEnter

Unsupported

 

DragLeave

Unsupported

 

DragWithin

Unsupported

 

Error

Unsupported

 

ExternalException

Unsupported

 

Help

Unsupported

 

Other

Unsupported

 

Rename

Unsupported

 

Save

Unsupported

 

ViewChange

Unsupported

 

Functions for OLEControl control

Table 59. 

Function

Support Level

Example Code

Activate

Supported

integer li_return

li_return = ole_1.Activate(OffSite!)

Note: the argument InPlace! is unsupported

ClassName

Supported

ls_return = ole_1.ClassName()

Clear

Supported

li_return = ole_1.Clear()

DoVerb

Supported

li_return = ole_1.DoVerb(7)

GetData

Supported

li_return = ole_1.GetData(ClipFormatText!, ls_oledata)

GetNativePointer

Supported

UnsignedLong lul_oleptr

li_return = ole_1.GetNativePointer(lul_oleptr)

GetParent

Supported

PowerObject lpo_parent

lpo_parent = ole_1.GetParent()

Hide

Supported

ole_1.Hide()

InsertClass

Supported

li_return = ole_1.InsertClass("excel.sheet")

InsertFile

Supported

li_return = ole_1.InsertFile("c:\xls\expense.xls")

InsertObject

Supported

li_return = ole_1.InsertObject()

Items listed in the Web Insert Object dialog box contain and only contain all the registered OLE applications in the client. Items listed in PowerBuilder Insert object dialog box are defined in PowerBuilder.

LinkTo

Supported

li_return = ole_1.LinkTo("c:\xls\expense.xls", "R1C1:R5C5")

Move

Supported

li_return = ole_1.Move(P_Train1.X + P_Train1.Width, P_Train1.Y)

Open

Supported

li_return = ole_1.Open("c:\ole2\mystuff.ole")

PointerX

Supported

li_return = ole_1.PointX()

PointerY

Supported

li_return = ole_1.PointY()

PostEvent

Supported

ole_1.PostEvent("DataChange")

ReleaseNative​Pointer

Supported

li_return = ole_1.ReleaseNativePointer(lul_oleptr)

Resize

Supported

li_return = ole_1.Resize(500, 1000)

Save

Supported

li_return = ole_1.Save()

SaveAs

Supported

li_return = ole_1.SaveAs("c:\ole\expense.ole")

SetData

Supported

li_return = ole_1.SetData(ClipFormatText!, ls_oledata)

SetFocus

Supported

li_return = ole_1.SetFocus()

SetPosition

Supported

ole_1.SetPosition(ToTop!)

ole_1.SetPosition(Behind!, cb_exec)

SetRedraw

Supported

ole_1.SetRedraw(true)

Show

Supported

ole_1.Show()

TriggerEvent

Supported

li_return = ole_1.TriggerEvent("DataChange")

TypeOf

Supported

if ole_1.typeof()=olecontrol! then

ls_return="olecontrol!"

Copy

Unsupported

 

Cut

Unsupported

 

Drag

Unsupported

 

GetContextService

Unsupported

 

Paste

Unsupported

 

PasteLink

Unsupported

 

PasteSpecial

Unsupported

 

Print

Unsupported

 

SelectObject

Unsupported

 

UpdateLinks​Dialog

Unsupported

 

OLECustomControl control

Important Requirements

The shortcut key for Ocx is unsupported.

Using parentheses when calling an OLEObject method is required.

Properties for OLECustomControl control

Table 60. 

Property

Support Level

Example Code

BackColor

Supported

ole_1.BackColor = ll_value

ole_1.BackColor = RGB(192,192,192)

BinaryIndex

Supported

 

BinaryKey

Supported

 

Border

Supported

ole_1.Border = TRUE

ole_1.Border = lb_value

BorderStyle

Supported

ole_1.BorderStyle = StyleBox!

ole_1.BorderStyle = StyleLowered!

Note: StyleShadowBox! is unsupported.

BringToTop

Supported

ole_1.BringToTop = TRUE

DisplayName

Supported

ole_1.DisplayName = "My project"

DragAuto

Supported

ole_1.DragAuto = TRUE

DragIcon

Supported

ole_1.DragIcon = 'Question!'

Enabled

Supported

ole_1.Enabled =TRUE

ole_1.Enabled = lb_value

FocusRectangle

Supported

ole_1.FocusRectangle = TRUE

ole_1.FocusRectangle = lb_value

Object

Supported

OLEObject obj = ole_1.object.activesheet.cells

Int x = ole_1.object.month

Pointer

Supported

ole_1.Pointer = 'SizeNWSE!'

ole_1.Pointer='d:\archive\IBEAM.BMP.cur'

TabOrder

Supported

ole_1.TabOrder = 40

ole_1.TabOrder = li_order

Tag

Supported

ole_1.Tag = ls_value

Visible

Supported

ole_1.Visible = lb_value

Width

Supported

ole_1.Width = li_value

X

Supported

ole_1.X = li_value

Y

Supported

ole_1.Y = li_value

Alignment

Unsupported

 

Cancel

Unsupported

 

ClassDefinition

Unsupported

 

ClassLongName

Unsupported

 

ClassShortName

Unsupported

 

Default

Unsupported

 

FaceName

Unsupported

 

FontCharSet

Unsupported

 

FontFamily

Unsupported

 

FontPitch

Unsupported

 

IsDragTarget

Unsupported

 

Italic

Unsupported

 

TextColor

Unsupported

 

TextSize

Unsupported

 

Underline

Unsupported

 

Weight

Unsupported

 

Events for OLECustomControl control

Table 61. 

Event

Support Level

Example Code

Clicked

Supported

Clicked()

Constructor

Supported

Constructor()

DataChange

Supported

DataChange()

Destructor

Supported

Destructor()

DoubleClicked

Supported

DoubleClicked()

GetFocus

Supported

GetFocus()

LoseFocus

Supported

LoseFocus()

PropertyChanged

Supported

PropertyChanged(propertyname)

PropertyRequest​Edit

Supported

PropertyRequestEdit(propertyname,cancelchange)

RButtonDown

Supported

RButtonDown(flags, xpos, ypos)

DragDrop

Unsupported

 

DragEnter

Unsupported

 

DragLeave

Unsupported

 

DragWithin

Unsupported

 

Error

Unsupported

 

ExternalException

Unsupported

 

Help

Unsupported

 

Other

Unsupported

 

Functions for OLECustomControl control

Table 62. 

Function

Support Level

Example Code

ClassName

Supported

ls_return = ole_1.ClassName( )

GetData

Supported

li_return = ole_1.GetData(ClipFormatText!, ls_oledata)

GetNativePointer

Supported

UnsignedLong lul_oleptr

li_return = ole_1.GetNativePointer(lul_oleptr)

GetParent

Supported

PowerObject lpo_parent

lpo_parent = ole_1.GetParent()

Hide

Supported

li_return = ole_1.Hide()

Move

Supported

li_return = ole_1.Move(500 , 1000)

PointerX

Supported

li_return = ole_1.PointX()

PointerY

Supported

li_return = ole_1.PointY( )

PostEvent

Supported

ole_1.PostEvent("DoubleClicked")

ReleaseNative​Pointer

Supported

li_return = ole_1.ReleaseNativePointer(lul_oleptr)

Resize

Supported

li_return = ole_1.Resize(500, 1000)

SetData

Supported

li_return = ole_1.SetData(ClipFormatText!, ls_oledata)

SetFocus

Supported

li_return = ole_1.SetFocus( )

SetPosition

Supported

ole_1.SetPosition(ToTop!)

ole_1.SetPosition(Behind!, cb_exec)

SetRedraw

Supported

ole_1.SetRedraw(true)

Show

Supported

li_return = ole_1.Show( )

TriggerEvent

Supported

li_return = ole_1.TriggerEvent("DoubleClicked")

TypeOf

Supported

if ole_1.typeof( )=olecustomcontrol! then

ls_return="olecustomcontrol!"

end if

Drag

Unsupported

 

GetContextService

Unsupported

 

Print

Unsupported

 

Oval control

Properties for Oval control

Table 63. 

Property

Support Level

Example Code

FillColor

Supported

o_1.FillColor=RGB(255,255,0)

FillPattern

Supported

o_1.FillPattern = Diamond!

Height

Supported

o_1.Height = 750

LineColor

Supported

o_1.LineColor = RGB(255,0,0)

LineStyle

Supported

o_1.LineStyle = Dash!

LineThickness

Supported

 

Tag

Supported

o_1.SetMicroHelp(This.Tag)

Visible

Supported

o_1.Visible = TRUE

Width

Supported

o_1.Width = 750

X

Supported

o_1.X = 215

Y

Supported

o_1.Y = 215

ClassDefinition

Unsupported

 

Events for Oval control

Table 64. 

Event

Support Level

Example Code

Constructor

Supported

Constructor()

Destructor

Supported

Destructor()


Functions for Oval control

Table 65. 

Function

Support Level

Example Code

ClassName

Supported

ls_value = o_1.ClassName()

GetParent

Supported

lo_value = o_1.GetParent()

Hide

Supported

o_1.Hide()

Move

Supported

o_1.Move(150, 200)

PostEvent

Supported

o_1.PostEvent(Clicked!)

Note: The PostEvent function returns 1 if it is successful.

Resize

Supported

o_1.Resize(100, 150)

Show

Supported

o_1.Show()

TriggerEvent

Supported

o_1.TriggerEvent(Clicked!)

Note: in an Web application the TriggerEvent function returns 1 if it is successful.

TypeOf

Supported

if o_1.typeof()=Oval! then

ls_return="Oval!"

end if

GetContextService

Unsupported

 

Picture control

Important Requirements

Picture controls can contain images in the following formats:

  • Bitmaps, with .BMP extensions

  • GIF or animated GIF files, with the .GIF extension

  • JPEG files, with .JPEG or .JPG extensions

  • Ico files with .ICO extensions

  • Cursor files with .CUR extensions

  • PNG files with .PNG extensions

Pictures in an application

  • The name of a picture file cannot be a string that ends with '!'.

  • The picture directory can be an absolute path or relative path.

    For example:

    this.picturename = "c:\app\about.bmp"

    or this.picturename = " image\about.bmp"

  • Different from PB, Appeon supports using an Internet URL as the value for PictureName, for example,

    this.picturename = "http://192.168.168.52/Appeon/AEM/images/AEM_TOP.jpg"

  • If a picture fails to display in the Web application, copy the picture directly to the Web Root Path /images directory. Web Root Path stands for the folder in the Web server that is configured in Appeon Developer Config for storing the Web application files.

Properties for Picture control

Table 66. 

Property

Support Level

Example Code

Border

Supported

p_1.Border = lb_value

BringToTop

Supported

p_1.BringToTop = TRUE

BorderStyle

Supported

p_1.BorderStyle = StyleBox!

p_1.BorderStyle = StyleLowered!

p_1.BorderStyle = StyleRaised!

Note: StyleShadowBox! is unsupported.

DragAuto

Supported

p_1.DragAuto = TRUE

DragIcon

Supported

p_1.DragIcon = 'c:\examples\arrow.ico'

Enabled

Supported

p_1.Enabled = lb_value

FocusRectangle

Supported

p_1.FocusRectangle = TRUE

Height

Supported

p_1.Height = li_value

Invert

Supported

p_1.Invert = FALSE

OriginalSize

Supported

p_1.OriginalSize = lb_value

PictureName

Supported

p_1.PictureName = ls_value

Note: It is unsupported to dynamically change this property if the initial value is a GIF file.

Different from PB, Appeon supports using an Internet URL as the value for PictureName, for example,

p_1.Picturename = "http://192.168.168.52/Appeon/AEM/images/AEM_TOP.jpg"

Pointer

Supported

p_1.pointer= ‘size!’

p_1.pointer= '''d:\archive\IBEAM.BMP.cur'

PowerTipText

Supported

p_1.PowerTipText = "Cancel the operation"

TabOrder

Supported

p_1.TabOrder = 100

Tag

Supported

p_1.Tag = ls_value

Visible

Supported

p_1.Visible = lb_value

Width

Supported

p_1.Width = li_value

X

Supported

p_1.X = li_value

Y

Supported

p_1.Y = li_value

ClassDefinition

Unsupported

 

Map3DColors

Unsupported

 

Events for Picture control

Table 67. 

Event

Support Level

Example Code

Clicked

Supported

Clicked()

Constructor

Supported

Constructor()

Destructor

Supported

Destructor()

DoubleClicked

Supported

DoubleClicked()

DragDrop

Supported

DragDrop(source)

DragEnter

Supported

DragEnter(source)

DragLeave

Supported

DragLeave(source)

DragWithin

Supported

DragWithin(source)

GetFocus

Supported

GetFocus()

LoseFocus

Supported

LoseFocus()

RButtonDown

Supported

RButtonDown(flags, xpos, ypos)

Help

Unsupported

 

Other

Unsupported

 

Functions for Picture control

Table 68. 

Function

Support Level

Example Code

ClassName

Supported

ls_value = p_1.ClassName( )

Drag

Supported

p_1.Drag(Begin!)

Draw

Supported

li_value = p_1.Draw(li_x,li_y)

Note: run the Draw function once the picture has been resized. After conversion, the size of the modified picture will be the same as the most recent state. In PowerBuilder, the size of the drawn picture will be the same as the original one.

GetParent

Supported

PowerObject lpo_value

lpo_value = p_1.GetParent( )

Hide

Supported

li_value = p_1.Hide( )

Move

Supported

li_value = p_1.Move(li_x,li_y)

PointerX

Supported

li_value = p_1.PointerX()

PointerY

Supported

li_value = p_1.PointerY()

PostEvent

Supported

lb_value = p_1.PostEvent(Clicked!)

Resize

Supported

li_value = p_1.Resize(li_x,li_y)

SetFocus

Supported

li_value = p_1.SetFocus( )

Unsupported: SetFocus(p_1)

SetPicture

Supported

p_1.SetPicture(Emp_pic)

SetPosition

Supported

li_value = p_1.SetPosition( )

SetRedraw

Supported

li_value = p_1.SetRedraw(FALSE)

Show

Supported

li_value = p_1.Show( )

TriggerEvent

Supported

li_value = p_1.TriggerEvent(Clicked!)

TypeOf

Supported

if p_1.TypeOf( ) = Picture! Then

ls_value = "Picture!"

else

ls_value = "invalid"

end if

GetContextService

Unsupported

 

Print

Unsupported

 

PictureButton control

Important Requirements

It is unsupported to use GIF files in PictureButton controls.

Properties for PictureButton control

Table 69. 

Property

Support Level

Example Code

BackColor

Supported

pb_1.BackColor = 8421376

Note: transparent value is unsupported.

BringToTop

Supported

pb_1.BringToTop = TRUE

Cancel

Supported

pb_1.Cancel = TRUE

Default

Supported

pb_1.Default = TRUE

DisabledName

Supported

pb_1.DisabledName = "d:\pbhelp\controls.bmp"

DragAuto

Supported

pb_1.DragAuto = TRUE

DragIcon

Supported

pb_1.DragIcon = 'c:\archive\arrow.ico'

Enabled

Supported

pb_1.Enabled = TRUE

FaceName

Supported

pb_1.FaceName = ls_value

FontCharSet

Supported

pb_1.FontCharSet = ANSI!

FontFamily

Supported

pb_1.FontFamily = Roman!

FontPitch

Supported

pb_1.FontPitch = Fixed!

Height

Supported

pb_1.Height = li_value

HTextAlign

Supported

pb_1.HtextAlign = "Left!"

//Specifies how the text in the control is aligned. Values are: Center! Justify! Left! Right!

Italic

Supported

pb_1.Italic = lb_value

OriginalSize

Supported

pb_1.OriginalSize = FALSE

//Specifies whether the width and height properties of a bitmap image (picture) are set to their original values.

PictureName

Supported

pb_1.PictureName = ls_value

Different from PB, Appeon supports using an Internet URL as the value for PictureName, for example,

pb_1.Picturename = "http://192.168.168.52/Appeon/AEM/images/AEM_TOP.jpg"

Pointer

Supported

pb_1.pointer = 'Arrow!'

pb_1.pointer ='d:\archive\IBEAM.BMP.cur'

PowerTipText

Supported

pb_1.PowerTipText = "This button opens a new form"

TabOrder

Supported

pb_1.TabOrder = 10

Tag

Supported

pb_1.Tag = ls_value

Text

Supported

pb_1.Text = ls_value

TextColor Supported pb_1.TextColor = li_value

TextSize

Supported

pb_1.TextSize = li_value

Underline

Supported

pb_1.Underline = lb_value

Visible

Supported

pb_1.Visible = lb_value

VTextAlign

Supported

pb_1.VTextAlign= Top!

//Specifies how the text in the control is aligned. Values are: Bottom!, MultiLine!, Top!, and VCenter! All these values, except for MultiLine!, assume that there is only one line of text.

Weight

Supported

pb_1.Weight = li_value

Width

Supported

pb_1.Width = li_value

X

Supported

pb_1.X = li_value

Y

Supported

pb_1.Y = li_value

ClassDefinition

Unsupported

 

FlatStyle

Unsupported

 

Map3DColors

Unsupported

 

Transparency

Unsupported

 

Events for PictureButton control

Table 70. 

Event

Support Level

Example Code

Clicked

Supported

Clicked()

Constructor

Supported

Constructor()

Destructor

Supported

Destructor()

DragDrop

Supported

DragDrop(source)

DragEnter

Supported

DragEnter(source)

DragLeave

Supported

DragLeave(source)

DragWithin

Supported

DragWithin(source)

GetFocus

Supported

GetFocus()

LoseFocus

Supported

LoseFocus()

RButtonDown

Supported

RButtonDown(flags, xpos, ypos)

Help

Unsupported

 

Other

Unsupported

 

Functions for PictureButton control

Table 71. 

Function

Support Level

Example Code

ClassName

Supported

ls_returnvalue = pb_1.ClassName()

Drag

Supported

pb_1.Drag (Cancel!)

GetParent

Supported

PowerObject lpo_returnvalue

lpo_returnvalue = pb_1.GetParent()

Hide

Supported

li_returnvalue = pb_1.Hide()

Move

Supported

li_returnvalue = pb_1.Move(li_xpos, li_ypos)

PointerX

Supported

lb_returnvalue = pb_1.PointerX()

PointerY

Supported

lb_returnvalue = pb_1.PointerY()

PostEvent

Supported

lb_returnvalue = pb_1.PostEvent(event)

Resize

Supported

li_returnvalue = pb_1.Resize(li_width, li_height)

SetFocus

Supported

li_returnvalue = pb_1.SetFocus()

Unsupported: SetFocus(pb_1)

SetPosition

Supported

li_returnvalue = pb_1.SetPosition(position)

SetRedraw

Supported

li_returnvalue = pb_1.SetRedraw (TRUE)

Show

Supported

li_returnvalue = pb_1.Show()

TriggerEvent

Supported

li_returnvalue = pb_1.TriggerEvent(event)

TypeOf

Supported

if pb_1.TypeOf() = PictureButton! Then

ls_returnvalue = 'PictureButton!'

end if

GetContextService

Unsupported

 

Print

Unsupported

 

PictureHyperLink control

Important Requirements

The PictureHyperLink controls can contain images in the following formats:

  • Bitmaps, with .BMP extensions

  • GIF or animated GIF files, with the .GIF extensions

  • JPEG files, with .JPEG or .JPG extensions

  • Ico files with .ICO extensions

  • Cursor files with .CUR extensions

Properties for PictureHyperLink control

Table 72. 

Property

Support Level

Example Code

Border

Supported

phl_1.Border = lb_value

BorderStyle

Supported

phl_1.BorderStyle = StyleBox!

phl_1.BorderStyle = StyleLowered!

phl_1.BorderStyle = StyleRaised!

Note: StyleShadowBox! is unsupported.

BringToTop

Supported

phl_1.BringToTop = TRUE

DragAuto

Supported

 

DragIcon

Supported

 

Enabled

Supported

phl_1.Enabled = lb_value

FocusRectangle

Supported

phl_1.FocusRectangle = TRUE

Height

Supported

phl_1.Height = li_value

OriginalSize

Supported

phl_1.OriginalSize = lb_value

PictureName

Supported

phl_1.PictureName = ls_value

Different from PB, Appeon supports using an Internet URL as the value for PictureName, for example,

phl_1.Picturename = "http://192.168.168.52/Appeon/AEM/images/AEM_TOP.jpg"

Pointer

Supported

phl_1= 'Size!'

phl_1='d:\archive\IBEAM.BMP.cur'

PowerTipText

Supported

phl_1.PowerTipText = "This button opens a new form"

TabOrder

Supported

phl_1.TabOrder = 100

Tag

Supported

phl_1.Tag = ls_value

URL

Supported

phl_1.URL = "http://www.appeon.com/"

Visible

Supported

phl_1.Visible = lb_value

Width

Supported

phl_1.Width = li_value

X

Supported

phl_1.X = li_value

Y

Supported

phl_1.Y = li_value

ClassDefinition

Unsupported

 

Invert

Unsupported

 

Map3DColors

Unsupported

 

Events for PictureHyperLink control

Table 73. 

Event

Support Level

Example Code

Clicked

Supported

Clicked()

Constructor

Supported

Constructor()

Destructor

Supported

Destructor()

DoubleClicked

Supported

DoubleClicked()

DragDrop

Supported

DragDrop(source)

DragEnter

Supported

DragEnter(source)

DragLeave

Supported

DragLeave(source)

DragWithin

Supported

DragWithin(source)

GetFocus

Supported

GetFocus()

LoseFocus

Supported

LoseFocus()

RButtonDown

Supported

RButtonDown(flags, xpos, ypos)

Help

Unsupported

 

Other

Unsupported

 

Functions for PictureHyperLink control

Table 74. 

Function

Support Level

Example Code

ClassName

Supported

ls_value = phl_1.ClassName( )

Draw

Supported

li_value = phl_1.Draw(li_x,li_y)

Drag

Supported

phl_1.Drag(Begin!)

GetParent

Supported

PowerObject lpo_value

lpo_value = phl_1.GetParent()

Hide

Supported

li_value = phl_1.Hide( )

Move

Supported

li_value = phl_1.Move(li_x,li_y)

PointerX

Supported

li_value = phl_1.PointerX()

PointerY

Supported

li_value = phl_1.PointerY()

PostEvent

Supported

lb_value = phl_1.PostEvent(Clicked!)

Resize

Supported

li_value = phl_1.Resize(li_x,li_y)

SetFocus

Supported

li_value = phl_1.SetFocus( )

Unsupported: SetFocus(phl_1)

SetPicture

Supported

phl_1.SetPicture(Emp_pic)

SetPosition

Supported

li_value = phl_1.SetPosition( )

SetRedraw

Supported

li_returnvalue = phl_1.SetRedraw (FALSE)

Show

Supported

li_value = phl_1.Show( )

TriggerEvent

Supported

li_value = phl_1.TriggerEvent(Clicked!)

TypeOf

Supported

if phl_1.TypeOf( ) = PictureHyperLink! Then

ls_value = "PictureHyperLink!"

else

ls_value = "invalid"

end if

GetContextService

Unsupported

 

Print

Unsupported

 

PictureListBox control

Important Requirements

Setting a PictureListBox as a Dropdown PictureListBox is not supported.

Properties for PictureListBox control

Table 75. 

Property

Support Level

Example Code

Accelerator

Supported

plb_1.Accelerator=67

BackColor

Supported

plb_1.BackColor = ll_value

plb_1.BackColor = RGB(192,192,192)

Border

Supported

plb_1.Border = lb_value

BorderStyle

Supported

plb_1.BorderStyle = StyleLowered!

plb_1.BorderStyle = StyleRaised!

plb_1.BorderStyle = StyleBox!

Note: StyleShadowBox! is not supported.

BringToTop

Supported

plb_1.BringToTop = TRUE

DisableNoScroll

Supported

plb_1.DisableNoScroll = lb_value

DragAuto

Supported

plb_1.DragAuto = TRUE

DragIcon

Supported

plb_1.DragIcon ='c:\archive\arrow.ico'

Enabled

Supported

plb_1.Enabled = lb_value

ExtendedSelect

Supported

plb_1.ExtendedSelect = lb_value

FaceName

Supported

plb_1.FaceName = ls_value

FontCharSet

Supported

plb_1.FontCharSet = ANSI!

FontFamily

Supported

plb_1.FontFamily = Roman!

FontPitch

Supported

plb_1.FontPitch = Fixed!

Height

Supported

plb_1.Height = li_value

HScrollBar

Supported

plb_1.Hscrollbar = lb_value

Italic

Supported

plb_1.Italic = lb_value

Item[ ]

Supported

plb_1.Item[] = ls_value

ItemPicture​Index[ ]

Supported

plb_1.ItemPictureIndex[ ] = li_value[]

MultiSelect

Supported

plb_1.MultiSelect = lb_value

PictureHeight

Supported

plb_1.PictureHeight = 16

PictureWidth

Supported

plb_1.PictureWidth = 16

PictureName[ ]

Supported

ls_result[] = plb_1.PictureName[li_x[]]

Assigning values to part of an array and using the default values for the other part is not supported.

For example:

picturename[1] = "aaa.bmp"

picturename[3] = "bbb.bmp"

var pic1 = picutrename[1];

var pic2 = picturename[3];

A supported example is given as follows:

picturename[1] = "aaa.bmp"

picturename[2] = "bbb.bmp"

picturename[3] = "ccc.bmp"

var pic1 = picutrename[1];

var pic2 = picturename[2];

var pic3 = picturename[3];

Pointer

Supported

plb_1.pointer = 'Icon!'

plb_1.pointer ='d:\archive\IBEAM.BMP'

RightToLeft

Supported

plb_1.RightToLeft = TRUE

Sorted

Supported

plb_1.Sorted =lb_value

TabOrder

Supported

plb_1.TabOrder = 110

Tag

Supported

plb_1.Tag = ls_value

TextColor

Supported

plb_1.Textcolor = ll_value

TextSize

Supported

plb_1.TextSize = li_value

Underline

Supported

plb_1.Underline = lb_value

Visible

Supported

plb_1.Visible = lb_value

VScrollBar

Supported

plb_1.VScrollBar = lb_value

Weight

Supported

plb_1.Weight = li_value

Width

Supported

plb_1.Width = li_value

X

Supported

plb_1.X = li_value

Y

Supported

plb_1.Y = li_value

PictureMaskColor

Supported

plb_1.PictureMaskColor= ll_value

ClassDefinition

Unsupported

 

ShowList

Unsupported

 

TabStop[ ]

Unsupported

 

Events for PictureListBox control

Table 76. 

Event

Support Level

Example Code

Constructor

Supported

Constructor()

Destructor

Supported

Destructor()

DoubleClicked

Supported

DoubleClicked()

DragDrop

Supported

DragDrop(source)

DragEnter

Supported

DragEnter(source)

DragLeave

Supported

DragLeave(source)

DragWithin

Supported

DragWithin(source)

GetFocus

Supported

GetFocus()

LoseFocus

Supported

LoseFocus()

RButtonDown

Supported

RButtonDown(flags, xpos, ypos)

SelectionChanged

Supported

SelectionChanged(index)

Help

Unsupported

 

Other

Unsupported

 

Functions for PictureListBox control

Table 77. 

Function

Support Level

Example Code

AddItem

Supported

li_position = plb_1.AddItem(ls_name, li_pic)

AddPicture

Supported

li_pic = plb_1.AddPicture("c:\pics\cardinal.bmp")

ClassName

Supported

ls_value = plb_1.ClassName()

DeleteItem

Supported

plb_1.DeleteItem(li_value)

DeletePicture

Supported

plb_1.DeletePicture (6)

DeletePictures

Supported

plb_1.DeletePictures ()

DirList

Supported

plb_1.DirList("C:\EMPLOYEE\*.TXT", 0)

DirSelect

Supported

plb_1.DirSelect(ls_filename)

Drag

Supported

plb_1.Drag(End!)

FindItem

Supported

li_index = plb_1.FindItem ("Delete", 1)

GetParent

Supported

PowerObject lpo_value

lpo_value = plb_1.GetParent()

Hide

Supported

li_value = plb_1.Hide()

InsertItem

Supported

plb_1.InsertItem("Run Application", 5)

plb_1.InsertItem("Run Application", 5, 4)

Move

Supported

li_value = plb_1.Move(li_x[],li_y[])

PointerX

Supported

li_value = plb_1.PointerX()

PointerY

Supported

li_value = plb_1.PointerY()

PostEvent

Supported

lb_value = plb_1.PostEvent(Clicked!)

Reset

Supported

li_value = plb_1.Reset()

Resize

Supported

li_value = plb_1.Resize(li_x[],li_y[])

SelectedIndex

Supported

li_index = plb_1.SelectedIndex()

SelectedItem

Supported

li_item = plb_1.SelectedItem()

SelectItem

Supported

li_value = plb_1.SelectItem (li_x[],li_y[])

SetFocus

Supported

li_value = plb_1.SetFocus()

Unsupported: SetFocus(plb_1)

SetPosition

Supported

li_returnvalue = plb_1.SetPosition(position)

SetRedraw

Supported

li_returnvalue = plb_1.SetRedraw (FALSE)

SetState

Supported

plb_1.SetState(6, TRUE)

SetTop

Supported

plb_1.SetTop(6)

Show

Supported

li_value = plb_1.Show()

State

Supported

li_item = plb_1.State(3)

Text

Supported

ls_return = plb_1.Text(2)

Top

Supported

li_num = plb_1.Top()

TotalItems

Supported

li_value= plb_1.TotalItems()

TotalSelected

Supported

integer SelectedTotal

SelectedTotal = plb_1.TotalSelected()

TriggerEvent

Supported

li_value = plb_1.TriggerEvent(Constructor!)

TypeOf

Supported

if plb_1.typeof()=picturelistbox! Then

ls_value='picturelistbox!'

else

ls_value='isvalid'

end if

Clear

Unsupported

 

Copy

Unsupported

 

Cut

Unsupported

 

GetContextService

Unsupported

 

Paste

Unsupported

 

Position

Unsupported

 

Print

Unsupported

 

RadioButton control

Properties for RadioButton control

Table 78. 

Property

Support Level

Example Code

Automatic

Supported

rb_1.Automatic = TRUE

BackColor

Supported

rb_1.BackColor = ll_value

rb_1.BackColor = RGB(192,192,192)

Note: transparent value is unsupported.

BorderStyle

Supported

rb_1.BorderStyle = StyleLowered!

rb_1.BorderStyle = StyleRaised!

BringToTop

Supported

rb_1.BringToTop = TRUE

Checked

Supported

rb_1.Checked = lb_value

DragAuto

Supported

rb_1.DragAuto = TRUE

DragIcon

Supported

rb_1.DragIcon ='c:\archive\arrow.ico'

Enabled

Supported

rb_1.Enabled = lb_value

FaceName

Supported

rb_1.FaceName = ls_value

FontCharSet

Supported

rb_1.FontCharSet = ANSI!

FontFamily

Supported

rb_1.FontFamily = Roman!

FontPitch

Supported

rb_1.FontPitch = Fixed!

Height

Supported

rb_1.Height = li_value

LeftText

Supported

rb_1.LeftText = TRUE

Italic

Supported

rb_1.Italic = lb_value

Pointer

Supported

rb_1.Pointer ='AppStarting!'

rb_1.Pointer='d:\archive\IBEAM.BMP'

RightToLeft

Supported

rb_1.RightToLeft = TRUE

TabOrder

Supported

rb_1.TabOrder = 120

Tag

Supported

rb_1.Tag = ls_value

Text

Supported

rb_1.Text = ls_value

TextColor

Supported

rb_1.TextColor = ll_value

TextSize

Supported

rb_1.TextSize = li_value

Underline

Supported

rb_1.Underline = lb_value

Visible

Supported

rb_1.Visible = lb_value

Weight

Supported

rb_1.Weight = li_value

Width

Supported

rb_1.Width = li_value

X

Supported

rb_1.X = li_value

Y

Supported

rb_1.Y = li_value

ClassDefinition

Unsupported

 

Transparency

Unsupported

 

Events for RadioButton control

Table 79. 

Event

Support Level

Example Code

Clicked

Supported

Clicked()

Constructor

Supported

Constructor()

Destructor

Supported

Destructor()

DragDrop

Supported

DragDrop(source)

DragEnter

Supported

DragEnter(source)

DragLeave

Supported

DragLeave(source)

DragWithin

Supported

DragWithin(source)

GetFocus

Supported

GetFocus()

LoseFocus

Supported

LoseFocus()

RButtonDown

Supported

RButtonDown(flags, xpos, ypos)

Help

Unsupported

 

Other

Unsupported

 

Functions for RadioButton control

Table 80. 

Function

Support Level

Example Code

ClassName

Supported

ls_value = rb_1.ClassName( )

Drag

Supported

rb_1.Drag(Begin!)

GetParent

Supported

PowerObject lpo_value

lpo_value = rb_1.GetParent( )

Hide

Supported

li_value = rb_1.Hide( )

Move

Supported

li_value = rb_1.Move(li_x,li_y)

PointerX

Supported

li_vaule = rb_1.PointerX()

PointerY

Supported

li_value = rb_1.PointerY()

PostEvent

Supported

lb_value = rb_1.PostEvent(Clicked!)

Resize

Supported

li_value = rb_1.Resize(li_x,li_y)

SetFocus

Supported

li_value = rb_1.SetFocus( )

Unsupported: SetFocus(rb_1)

SetPosition

Supported

li_value = rb_1.SetPosition(ToTop!)

li_value = rb_1.SetPosition(ToBottom!)

SetRedraw

Supported

li_returnvalue = rb_1.SetRedraw (FALSE)

Show

Supported

li_value = rb_1.Show( )

TriggerEvent

Supported

li_value = rb_1.TriggerEvent(Clicked!)

TypeOf

Supported

if rb_1.TypeOf( ) = RadioButton! Then

ls_value = "RadioButton!"

end if

GetContextService

Unsupported

 

Print

Unsupported

 

Rectangle control

Properties for Rectangle control

Table 81. 

Property

Support Level

Example Code

FillColor

Supported

r_1.FillColor = ll_value

FillPattern

Supported

r_1.FillPattern = Diamond!

Height

Supported

r_1.Height = li_value

LineColor

Supported

r_1.LineColor = ll_value

LineStyle

Supported

r_1.LineStyle = Continuous!

r_1.LineStyle = Dash!

r_1.LineStyle = DashDot!

r_1.LineStyle = DashDotDot!

r_1.LineStyle = Dot!

r_1.LineStyle = Transparent!

LineThickness

Supported

r_1.LineThickness =li_value

Note: If LineThickness is greater than one pixel (about four PowerBuilder units), the LineStyle property is forced to Continuous!

Tag

Supported

r_1.Tag = ls_value

Visible

Supported

r_1.Visible = lb_value

Width

Supported

r_1.Width = li_value

X

Supported

r_1.X = li_value

Y

Supported

r_1.Y = li_value

ClassDefinition

Unsupported

 

Events for Rectangle control

Table 82. 

Event

Support Level

Example Code

Constructor

Supported

Constructor()

Destructor

Supported

Destructor()


Functions for Rectangle control

Table 83. 

Function

Support Level

Example Code

ClassName

Supported

ls_value = r_1.ClassName( )

GetParent

Supported

PowerObject lpo_value

lpo_value = r_1.GetParent( )

Hide

Supported

li_value = r_1.Hide( )

Move

Supported

li_value = r_1.Move(li_x,li_y)

PostEvent

Supported

lb_value = r_1.PostEvent(Clicked!)

Note: The PostEvent function returns 1 if it is successful.

Resize

Supported

lb_value = r_1.Resize(Clicked!)

Show

Supported

li_value = r_1.Show( )

TriggerEvent

Supported

li_value = r_1.TriggerEvent(Clicked!)

Note: The TriggerEvent function returns 1 if it is successful.

TypeOf

Supported

if r_1.TypeOf( ) = Rectangle! Then

li_value = "Rectangle!"

end if

GetContextService

Unsupported

 

RichTextEdit control

Differences

  1. On the Web, the printed result of the rich text may be different from what you see in the RichTextEdit control. This is because the printed result will be reformatted according to the size of the paper.

  2. On the Web, an input field is selected when you click on it, you can then delete or replace it by using the keyboard. This is different from that in PowerBuilder.

  3. Because of the following differences, the return value on the Web and in PowerBuilder is different when using the functions that relates to the calculation of length. For example, SelectText, SelectedText, SelectAllText, CopyRTF, PasteRTF, Position, Clear, LineCount, TextLine, Copy, Cut, Position, Paste and SelectLength.

    • A picture will be counted as one character on the Web.

    • A new line character will be counted as one character on the Web.

    • A line ending character will be counted as one character.

    • An input field will be counted as separated characters, therefore the return value will be the length of the content in the input fields or the content of the input field.

  4. Appeon adopts Windows RTF specification, which differs from PowerBuilder RTF specification, so the display result on the Web may differ from that in PowerBuilder. For example: Copying and pasting the content to the RichTextEdit control, the display result on the Web is different from that in PowerBuilder; the content of RichTextEdit control saved on the Web differs from that in PowerBuilder. However the pure text displayed is almost the same.

  5. A menu does not pop up when right clicking a picture in the RichTextEdit control on the Web. This is different from that in PowerBuilder.

  6. When part of the text in an input field is selected, pressing Tab control replaces the selected text with a white space on the Web while a white space is inserted before the selected text in PowerBuilder.

  7. When using CTRL + V to paste a picture to the RichTextEdit control, a shortcut icon will be shown on Web, and when clicked, the picture will display, while pasted in PowerBuilder, the picture will directly display in the RichTextEdit control.

  8. Only the Detail section will be displayed by default on the Web; and when the ShowHeadFoot function is called, the Header and Footer sections will be displayed while the Detail section will not. This is different from PowerBuilder where the Header, Footer, and Detail sections can display at the same time.

Unsupported

  1. After you double click the ruler bar in the RichTextEdit control, Paragraph window will be displayed. On the Web, the Standard tab item in the Paragraph window is unsupported.

  2. End identifier is unsupported.

Properties for RichTextEdit control

Table 84. 

Property

Support Level

Example Code

Accelerator

Supported

rte_1.Accelerator=67

rte_1.Accelerator = ASC("M")

BackColor

Supported

rte_1.BackColor = RGB(255, 255, 0)

Note: transparent value is unsupported.

Border

Supported

rte_1.Border = TRUE

BorderStyle

Supported

rte_1.BorderStyle = StyleLowered!

BottomMargin

Supported

rte_1.BottomMargin = 1

BringToTop

Supported

rte_1.BringToTop = TRUE

DisplayOnly

Supported

rte_1.DisplayOnly = TRUE

DocumentName

Supported

rte_1.DocumentName = "Report 1"

DragAuto

Supported

rte_1.DragAuto = TRUE

DragIcon

Supported

rte_1.DragIcon = 'Question!'

Enabled

Supported

rte_1.Enabled = TRUE

HeaderFooter

Supported

 

Height

Supported

rte_1.Height = 750

HScrollBar

Supported

rte_1.HScrollBar = TRUE

Note: On the Web, the horizontal scrollbar is always displayed even if the property is set to FALSE, However, the scroll box of the scrollbar is displayed only when all of the data cannot be displayed at one time

InputFieldNames​Visible

Supported

rte_1.InputFieldNamesVisible = FALSE

InputFieldsVisible

Supported

rte_1.InputFieldsVisible = TRUE

LeftMargin

Supported

rte_1.LeftMargin = 1

Modified

Supported

 

PopMenu

Supported

rte_1.PopMenu = TRUE

Resizable

Supported

rte_1.Resizable = TRUE

Note: After setting this property to True, setting Border properties will not be effective.

RightMargin

Supported

rte_1.RightMargin = 1

RulerBar

Supported

rte_1.RulerBar = TRUE

TabBar

Supported

rte_1.TabBar = TRUE

TabOrder

Supported

rte_1.TabOrder = 10

Tag

Supported

rte_1.SetMicroHelp(This.Tag)

ToolBar

Supported

rte_1.ToolBar = TRUE

TopMargin

Supported

rte_1.TopMargin = 1

Visible

Supported

rte_1.Visible = TRUE

VScrollBar

Supported

rte_1.VScrollBar = TRUE

Note: On the Web, the vertical scrollbar is always displayed even if the property is set to FALSE. However, the scroll box of the scrollbar is displayed only when the contents of the object are outside the borders.

Width

Supported

rte_1.Width = 750

WordWrap

Supported

rte_1.WordWrap = TRUE

Note:

  1. When this property is changed from TRUE to FALSE, the content in the RichTextEdit control will be rearranged on the Web. This is different from that in PowerBuilder.

  2. If this property is set to False, you cannot execute SetAlignment to set the alignment for the selected paragraphs on the Web and the text will not automatically wrap to the next line even if the line reaches the margin. These are different from that in PowerBuilder.

  3. Alignment buttons on the Web are only effective if the WordWrap property is set to True. This is different from that in PowerBuilder.

X

Supported

rte_1.X = 215

Y

Supported

rte_1.Y = 215

ClassDefinition

Unsupported

 

ImeMode

Unsupported

 

InputFieldBack​Color

Unsupported

 

Pointer

Unsupported

 

PicturesAsFrame

Unsupported

 

ReturnsVisible

Unsupported

 

SpacesVisible

Unsupported

 

TabsVisible

Unsupported

 

Transparency

Unsupported

 

UndoDepth

Unsupported

 

Events for RichTextEdit control

Table 85. 

Event

Support Level

Example Code

Constructor

Supported

Constructor

Destructor

Supported

Destructor

DoubleClicked

Supported

DoubleClicked

GetFocus

Supported

rte_1 = GetFocus()

Key

Supported

IF key = KeyF1! THEN Beep(1)

Note: Some keystrokes take no effect in formatting the document in RichText DataWindow. For example, pressing Esc after updating data in an input field restores the data in PowerBuilder but takes no effect on the Web.

LoseFocus

Supported

 

Modified

Supported

 

MouseDown

Supported

 

MouseMove

Supported

 

MouseUp

Supported

 

RButtonDown

Supported

 

RButtonUp

Supported

 

DragDrop

Supported

 

DragEnter

Supported

 

DragLeave

Supported

 

DragWithin

Supported

 

FileExists

Unsupported

 

Help

Unsupported

 

InputFieldSelected

Unsupported

 

Other

Unsupported

 

PictureSelected

Unsupported

 

PrintFooter

Unsupported

 

PrintHeader

Unsupported

 

Functions for RichTextEdit control

Table 86. 

Function

Support Level

Example Code

ClassName

Supported

ls_value = rte_1.ClassName(gd_double)

Clear

Supported

rte_1.Clear()

Note: Executing this function on the Web clears the selected text as well as the format from the control. However, in PowerBuilder, it only clears the selected text.

Copy

Supported

li_value = rte_1.Copy()

CopyRTF

Supported

ls_value = rte_1.CopyRTF()

Cut

Supported

rte_1.Cut()

DataSource

Supported

rte_1.DataSource(dw_1)

Drag

Supported

rte_1.Drag(Begin!)

Find

Supported

li_value = rte_1.Find(sle_search.Text, TRUE, & TRUE, FALSE, TRUE)

FindNext

Supported

rte_1.FindNext()

GetAlignment

Supported

l_align = rte_1.GetAlignment()

GetParagraph​Setting

Supported

ll_value = rte_1.GetParagraphSetting(Indent!))

GetParent

Supported

luo_value = rte_1.GetParent()

GetSpacing

Supported

l_spacing = rte_1.GetSpacing()

GetTextColor

Supported

ll_color = rte_1.GetTextColor()

GetTextStyle

Supported

lb_value = rte_1.GetTextStyle(Bold!)

Hide

Supported

rte_1.Hide()

InputField​ChangeData

Supported

li_value = rte_1.InputFieldChangeData ("instrument", & lb_instruments.SelectedItem())

InputField​CurrentName

Supported

ls_value = rte_1.InputFieldCurrentName()

InputField​DeleteCurrent

Supported

li_value = rte_1.InputFieldDeleteCurrent()

The input field that is being edited can be deleted by executing the InputFieldDeleteCurrent function on the Web. But it cannot be deleted in PowerBuilder in that way.

InputField​GetData

Supported

ls_value = rte_1.InputFieldGetData(empname)

InputFieldInsert

Supported

ls_value = String(rte_1.InputFieldInsert("lastname"))

Note: On the Web, when you click on an input field and then execute InputFieldInsert, the input field is replaced by the new one. In PowerBuilder, the new input field is inserted and the old one will still exist.

InputFieldLocate

Supported

ls_value = rte_1.InputFieldLocate(Last!, "address")

InsertDocument

Supported

li_value = rte_1.InsertDocument("c:\pb\test .rtf", & TRUE, FileTypeRichText!)

InsertPicture

Supported

li_value = rte_1.InsertPicture("c:\windows\earth.bmp")

IsPreview

Supported

lb_value = rte_1.IsPreview()

LineCount

Supported

li_value = rte_1.LineCount()

LineLength

Supported

li_value = rte_1.LineLength()

Move

Supported

rte_1.Move(150, 200)

PageCount

Supported

ls_value = String(rte_1.PageCount())

Paste

Supported

rte_1.Paste()

Note: Double-byte characters inserted by executing this function can not be displayed properly.

PasteRTF

Supported

string ls_richtext rte_1.PasteRTF(ls_richtext, Header!)

PointerX

Supported

li_value = rte_1.PointerX()

PointerY

Supported

li_value = rte_1.PointerY()

Position

Supported

l_band = rte_1.Position(ll_startline, ll_startchar, & ll_endline, ll_endchar)

PostEvent

Supported

rte_1.PostEvent(Clicked!)

Preview

Supported

rte_1.Preview(TRUE)

Note: When executing this function to display the RichTextEdit control, the content will be rearranged according to the size of the page on the Web. This is different from that in PowerBuilder.

Print

Supported

rte_1.Print(1, "1-5", FALSE, TRUE)

ReplaceText

Supported

rte_1.ReplaceText("Draft")

Note: If the text contains double-byte characters, the return value of this function is different from in PowerBuilder.

Resize

Supported

rte_1.Resize(100, 150)

SaveDocument

Supported

rte_1.SaveDocument("c:\test.rtf", FileTypeRichText!)

Note:

  1. encoding argument is unsupported.

  2. The values FileTypePDF!, FileTypeDoc!, FileTypeHTML! of the filetype argument are unsupported.

Scroll

Supported

rte_1.Scroll(4)

ScrollNextPage

Supported

rte_1.ScrollNextPage()

ScrollNextRow

Supported

rte_1.ScrollNextRow()

ScrollPriorPage

Supported

rte_1.ScrollPriorPage()

ScrollPriorRow

Supported

rte_1.ScrollPriorRow()

ScrollToRow

Supported

rte_1.ScrollToRow(25)

SelectedLength

Supported

ll_length = rte_1.SelectedLength()

SelectedLine

Supported

li_value = rte_1.SelectedLine()

SelectedPage

Supported

li_value = rte_1.SelectedPage()

SelectedStart

Supported

li_value = rte_1.SelectedStart()

SelectedText

Supported

ls_value = rte_1.SelectedText()

Notes:

  1. Executing the this function on the Web will select text and pictures , however the pictures will not appear to be selected.

  2. It returns a string containing the selected text when selecting text in the header or footer bands on the Web. This is different from in PowerBuilder.

SelectText

Supported

rte_1.SelectText(1,1, 3,4)

Note:

  1. When the focus is on an input field, executing the SelectText function will select the input field however the input field will not appear to be selected on the Web.

  2. After executing the SelectText function on the Web, if the focus is not at the area where the arguments specify, the focus will be automatically placed at that area. This is different from that in PowerBuilder.

  3. If the ReadOnly is set to True, this function still takes effect on the Web.

SelectTextAll

Supported

rte_1.SelectTextAll()

Note: If the focus is in the header or footer band, executing “SelectTextAll (detail!)” on the Web returns -1 and no text will be selected. However, in PowerBuilder, the text in the band, which the focus is in, will be selected.

SelectTextLine

Supported

rte_1.SelectTextLine()

SelectTextWord

Supported

rte_1.SelectTextWord()

SetAlignment

Supported

li_value = rte_1.SetAlignment(Right!)

SetFocus

Supported

rte_1.SetFocus()

SetParagraph​Setting

Supported

ll_indent = rte_1.SetParagraphSetting(Indent!, 250)

SetPosition

Supported

rte_1.SetPosition(ToTop!)

SetRedraw

Supported

rte_1.SetRedraw(FALSE)

SetSpacing

Supported

rte_1.SetSpacing(Spacing2!)

SetTextColor

Supported

rte_1.SetTextColor(RGB(100, 0, 0))

SetTextStyle

Supported

rte_1.SetTextStyle(TRUE, FALSE, FALSE, & FALSE, TRUE, FALSE)

Note: If the RichTextEdit control retrieves the focus by executing the SetFocus or SetText, executing the SetTextStyle function will affect the formatting of the following inputted text on the Web. This is different from that in PowerBuilder.

Show

Supported

rte_1.Show()

ShowHeadFoot

Supported

rte_1.ShowHeadFoot(TRUE)

On the Web, ShowHeadFoot ( editheadfoot ) is supported, while ShowHeadFoot ( editheadfoot, {headerfooter}) is unsupported.

TextLine

Supported

ls_value = rte_1.TextLine()

TriggerEvent

Supported

rte_1.TriggerEvent(Clicked!)

TypeOf

Supported

rte_1.Typeof()

CanUndo

Unsupported

 

GetContextService

Unsupported

 

SelectedColumn

Unsupported

 

Undo

Unsupported

 

RoundRectangle control

Properties for RoundRectangle control

Table 87. 

Property

Support Level

Example Code

CornerHeight

Supported

rr_1.CornerHeight = 10

CornerWidth

Supported

rr_1.CornerWidth = 10

FillColor

Supported

rr_1.FillColor=RGB(255,255,0)

FillPattern

Supported

rr_1.FillPattern = Diamond!

Height

Supported

rr_1.Height = 750

LineColor

Supported

rr_1.LineColor = RGB(255,0,0)

LineStyle

Supported

rr_1.LineStyle = Dash!

LineThickness

Supported

rr_1.LineThickness =li_value

Tag

Supported

rr_1.Tag = ls_value

Visible

Supported

rr_1.Visible = True

Width

Supported

rr_1.Width = 750

X

Supported

rr_1.X = 215

Y

Supported

rr_1.Y = 215

ClassDefinition

Unsupported

 

Events for RoundRectangle control

Table 88. 

Event

Support Level

Example Code

Constructor

Supported

Constructor()

Destructor

Supported

Destructor()


Functions for RoundRectangle control

Table 89. 

Function

Support Level

Example Code

ClassName

Supported

ls_value = rr_1.ClassName( )

GetParent

Supported

PowerObject lpo_value

lpo_value = rr_1.GetParent( )

Hide

Supported

li_value = rr_1.Hide( )

Move

Supported

li_value = rr_1.Move(li_x,li_y)

PostEvent

Supported

lb_value = rr_1.PostEvent(Clicked!)

Note: The PostEvent function returns 1 if it is successful.

Resize

Supported

lb_value = rr_1.Resize(Clicked!)

Show

Supported

li_value = rr_1.Show( )

TriggerEvent

Supported

li_value = rr_1.TriggerEvent(Clicked!)

Note: The TriggerEvent function returns 1 if it is successful.

TypeOf

Supported

if rr_1.TypeOf( ) = RoundRectangle! Then

li_value = "RoundRectangle!"

end if

GetContextService

Unsupported

 

SingleLineEdit control

Properties for SingleLineEdit control

Table 90. 

Property

Support Level

Example Code

Accelerator

Supported

sle_1.Accelerato r= 67

AutoHScroll

Supported

sle_1.AutoHScroll = TRUE

BackColor

Supported

sle_1.BackColor = ll_value

Note: transparent value is unsupported.

Border

Supported

sle_1.Border = lb_value

BorderStyle

Supported

sle_1.BorderStyle = StyleBox!

sle_1.BorderStyle = StyleLowered!

sle_1.BorderStyle = StyleRaised!

Note: StyleShadowBox! is unsupported.

BringToTop

Supported

sle_1.BringToTop = TRUE

DisplayOnly

Supported

sle_1.DisplayOnly = lb_value

DragAuto

Supported

sle_1.DragAuto = TRUE

DragIcon

Supported

sle_1.DragIcon ='c:\archive\arrow.ico'

Enabled

Supported

sle_1.Enabled = lb_value

FaceName

Supported

sle_1.FaceName = ls_value

FontCharSet

Supported

sle_1.FontCharSet = ANSI!

FontFamily

Supported

sle_1.FontFamily = Roman!

FontPitch

Supported

sle_1.FontPitch = Fixed!

Height

Supported

sle_1.Height = li_value

HideSelection

Supported

sle_1.HideSelection = FALSE

Italic

Supported

sle_1.Italic = lb_value

Limit

Supported

sle_1.Limit = li_value

Password

Supported

sle_1.Password = lb_value

Pointer

Supported

sle_1.pointer= 'Arrow!'

sle_1.pointer= 'd:\archive\IBEAM.BMP.cur'

RightToLeft

Supported

sle_1.RightToLeft = TRUE

TabOrder

Supported

sle_1.TabOrder = 130

Tag

Supported

sle_1.Tag = ls_value

Text

Supported

sle_1.Text = ls_value

TextCase

Supported

sle_1.TextCase = AnyCase!

sle_1.TextCase = Lower!

sle_1.TextCase = Upper!

TextColor

Supported

sle_1.TextColor = ll_value

TextSize

Supported

sle_1.TextSize = li_value

Underline

Supported

sle_1.Underline = lb_value

Visible

Supported

sle_1.Visible = lb_value

Weight

Supported

sle_1.Weight = li_value

Width

Supported

sle_1.Width = li_value

X

Supported

sle_1.X = li_value

Y

Supported

sle_1.Y = li_value

ClassDefinition

Unsupported

 

Transparency

Unsupported

 

Events for SingleLineEdit control

Table 91. 

Event

Support Level

Example Code

Constructor

Supported

Constructor()

Destructor

Supported

Destructor()

DragDrop

Supported

DragDrop(source)

DragEnter

Supported

DragEnter(source)

DragLeave

Supported

DragLeave(source)

DragWithin

Supported

DragWithin(source)

GetFocus

Supported

GetFocus()

LoseFocus

Supported

LoseFocus()

Modified

Supported

Modified()

RButtonDown

Supported

RButtonDown(flags, xpos, ypos)

Help

Unsupported

 

Other

Unsupported

 

Functions for SingleLineEdit control

Table 92. 

Function

Support Level

Example Code

ClassName

Supported

ls_returnvalue = sle_1.ClassName()

Clear

Supported

li_returnvalue = sle_1.Clear()

Copy

Supported

li_returnvalue = sle_1.Copy()

Cut

Supported

li_returnvalue = sle_1.Cut()

Drag

Supported

sle_1Drag(Cancel!)

GetParent

Supported

PowerObject lpo_returnvalue

lpo_returnvalue = sle_1.GetParent()

Hide

Supported

li_returnvalue = sle_1.Hide()

Move

Supported

li_returnvalue = sle_1.Move(li_x,li_y)

Paste

Supported

li_returnvalue = sle_1.Paste()

PointerX

Supported

li_returnvalue = sle_1.PointerX()

PointerY

Supported

li_returnvalue = sle_1.PointerY()

Position

Supported

sle_1.Position()

PostEvent

Supported

lb_returnvalue = sle_1.PostEvent(event)

ReplaceText

Supported

li_returnvalue = sle_1.ReplaceText(text)

Resize

Supported

li_returnvalue = sle_1.Resize(li_x,li_y)

SelectedLength

Supported

li_returnvalue = sle_1.SelectedLength()

If the control is off screen, the execution of the function may have an incorrect return result.

SelectedStart

Supported

li_returnvalue = sle_1.SelectedStart()

If the control is off screen, the execution of the function may have an incorrect return result.

SelectedText

Supported

ls_returnvalue = sle_1.SelectedText()

If the control is off screen, the execution of the function may have an incorrect return result.

SelectText

Supported

li_returnvalue = sle_1.SelectText(start, length)

If the control is off screen, the execution of the function may have an incorrect return result.

SetFocus

Supported

li_returnvalue = sle_1.SetFocus()

Unsupported: SetFocus(sle_1)

SetPosition

Supported

li_returnvalue = sle_1.SetPosition(position)

SetRedraw

Supported

li_return= sle_1.SetRedraw(FALSE)

Show

Supported

li_returnvalue = sle_1.Show()

TriggerEvent

Supported

li_returnvalue = sle_1.TriggerEvent(event)

TypeOf

Supported

if sle_1.TypeOf() = SingleLineEdit! Then

ls_returnvalue = "SingleLineEdit!"

end if

Undo

Supported

li_returnvalue = sle_1.Undo()

CanUndo

Unsupported

 

GetContextService

Unsupported

 

Print

Unsupported

 

StaticHyperLink control

Properties for StaticHyperLink control

Table 93. 

Property

Support Level

Example Code

Alignment

Supported

shl_1.Alignment = ls_value

BackColor

Supported

shl_1.BackColor = ll_value

shl_1.BackColor = RGB(192,192,192)

Note: transparent value is unsupported.

Border

Supported

shl_1.Border = lb_value

BorderColor

Supported

shl_1.BorderColor = ll_value

BorderStyle

Supported

shl_1.BorderStyle = StyleBox!

shl_1.BorderStyle = StyleLowered!

shl_1.BorderStyle = StyleRaised!

Note: StyleShadowBox! is unsupported.

BringToTop

Supported

shl_1.BringToTop = TRUE

DisabledLook

Supported

 

DragAuto

Supported

shl_1.DragAuto = TRUE

DragIcon

Supported

shl_1.DragIcon = 'c:\archive\arrow.ico'

Enabled

Supported

shl_1.Enabled = lb_value

Note: in PowerBuilder, setting the Enabled property of StaticHyperLink to TRUE or FALSE has no effect. The text always displays as it is.

FaceName

Supported

shl_1.FaceName = ls_value

FillPattern

Supported

shl_1.FillPattern = Diamond!

FocusRectangle

Supported

shl_1.FocusRectangle = TRUE

FontCharSet

Supported

shl_1.FontCharSet = ANSI!

FontFamily

Supported

shl_1.FontFamily = Roman!

FontPitch

Supported

shl_1.FontPitch = Fixed!

Height

Supported

shl_1.Height = li_value

Italic

Supported

shl_1.Italic = lb_value

Pointer

Supported

shl_1.Pointer = 'HourGlass!'

shl_1.Pointer='d:\archive\IBEAM.BMP.cur'

RightToLeft

Supported

shl_1.RightToLeft = TRUE

TabOrder

Supported

shl_1.TabOrder = 140

Tag

Supported

shl_1.Tag = ls_value

Text

Supported

shl_1.Text = ls_value

TextColor

Supported

shl_1.TextColor = ll_value

TextSize

Supported

shl_1.TextSize = li_value

Underline

Supported

shl_1.Underline = lb_value

URL

Supported

shl_1.URL = "http://www.appeon.com"

Visible

Supported

shl_1.Visible = lb_value

Weight

Supported

shl_1.Weight = li_value

Width

Supported

shl_1.Width = li_value

X

Supported

shl_1.X = li_value

Y

Supported

shl_1.Y = li_value

ClassDefinition

Unsupported

 

Transparency

Unsupported

 

Events for StaticHyperLink control

Table 94. 

Event

Support Level

Example Code

Clicked

Supported

Clicked()

Constructor

Supported

Constructor()

Destructor

Supported

Destructor()

DoubleClicked

Supported

DoubleClicked()

DragDrop

Supported

DragDrop(source)

DragEnter

Supported

DragEnter(source)

DragLeave

Supported

DragLeave(source)

DragWithin

Supported

DragWithin(source)

GetFocus

Supported

GetFocus()

LoseFocus

Supported

LoseFocus()

RButtonDown

Supported

RButtonDown(flags, xpos, ypos)

Help

Unsupported

 

Other

Unsupported

 

Functions for StaticHyperLink control

Table 95. 

Function

Support Level

Example Code

ClassName

Supported

ls_returnvalue = shl_1.ClassName()

Drag

Supported

shl_1.Drag(End!)

GetParent

Supported

PowerObject lpo_returnvalue

lpo_returnvalue = shl_1.GetParent()

Hide

Supported

li_returnvalue = shl_1.Hide()

Move

Supported

li_returnvalue = shl_1.Move(li_x,li_y)

PointerX

Supported

li_returnvalue = shl_1.PointerX()

PointerY

Supported

li_returnvalue = shl_1.PointerY()

PostEvent

Supported

lb_returnvalue = shl_1.PostEvent(event)

Resize

Supported

li_returnvalue = shl_1.Resize(li_x,li_y)

SetFocus

Supported

li_returnvalue = shl_1.SetFocus()

Unsupported: SetFocus(shl_1)

SetPosition

Supported

li_returnvalue = shl_1.SetPosition(position)

SetRedraw

Supported

shl_1.SetRedraw(FALSE)

Show

Supported

li_returnvalue = shl_1.Show()

TriggerEvent

Supported

li_returnvalue = shl_1.TriggerEvent(event)

TypeOf

Supported

if shl_1.typeof() = StaticHyperLink!

then

ls_returnvalue = 'StaticHyperLink!'

end if

GetContextService

Unsupported

 

Print

Unsupported

 

StaticText control

Properties for StaticText control

Table 96. 

Property

Support Level

Example Code

Alignment

Supported

st_1.Alignment = ls_value

BackColor

Supported

st_1.BackColor = ll_value

st_1.BackColor = RGB(192,192,192)

Border

Supported

st_1.Border = lb_value

BorderColor

Supported

st_1.BorderColor = ll_value

BorderStyle

Supported

st_1.BorderStyle = StyleBox!

st_1.BorderStyle = StyleLowered!

st_1.BorderStyle = StyleRaised!

Note: StyleShadowBox! is unsupported.

BringToTop

Supported

st_1.BringToTop = TRUE

DisabledLook

Supported

 

DragAuto

Supported

st_1.DragAuto = TRUE

DragIcon

Supported

st_1.DragIcon = 'c:\archive\arrow.ico'

Enabled

Supported

st_1.Enabled = lb_value

FaceName

Supported

st_1.FaceName = ls_value

FillPattern

Supported

st_1.FillPattern = Diamond!

FocusRectangle

Supported

st_1.FocusRectangle = TRUE

FontCharSet

Supported

st_1.FontCharSet = ANSI!

FontFamily

Supported

st_1.FontFamily = Roman!

FontPitch

Supported

st_1.FontPitch = Fixed!

Height

Supported

st_1.Height = li_value

Italic

Supported

st_1.Italic = lb_value

Pointer

Supported

st_1.Pointer = 'AppStarting!'

st_1.Pointer = 'd:\archive\IBEAM.BMP.cur'

RightToLeft

Supported

st_1.RightToLeft = TRUE

TabOrder

Supported

st_1.TabOrder = 140

Tag

Supported

st_1.Tag = ls_value

Text

Supported

st_1.Text = ls_value

TextColor

Supported

st_1.TextColor = ll_value

TextSize

Supported

st_1.TextSize = li_value

Underline

Supported

st_1.Underline = lb_value

Visible

Supported

st_1.Visible = lb_value

Weight

Supported

st_1.Weight = li_value

Width

Supported

st_1.Width = li_value

X

Supported

st_1.X = li_value

Y

Supported

st_1.Y = li_value

ClassDefinition

Unsupported

 

Events for StaticText control

Table 97. 

Event

Support Level

Example Code

Clicked

Supported

Clicked()

Constructor

Supported

Constructor()

Destructor

Supported

Destructor()

DoubleClicked

Supported

DoubleClicked()

DragDrop

Supported

DragDrop(source)

DragEnter

Supported

DragEnter(source)

DragLeave

Supported

DragLeave(source)

DragWithin

Supported

DragWithin(source)

GetFocus

Supported

GetFocus()

LoseFocus

Supported

LoseFocus()

RButtonDown

Supported

RButtonDown(flags, xpos, ypos)

Help

Unsupported

 

Other

Unsupported

 

Functions for StaticText control

Table 98. 

Function

Support Level

Example Code

ClassName

Supported

ls_returnvalue = st_1.ClassName()

Drag

Supported

st_1.Drag(Cancel!)

GetParent

Supported

PowerObject lpo_returnvalue

lpo_returnvalue = st_1.GetParent()

Hide

Supported

li_returnvalue = st_1.Hide()

Move

Supported

li_returnvalue = st_1.Move(li_x,li_y)

PointerX

Supported

li_returnvalue = st_1.PointerX()

PointerY

Supported

li_returnvalue = st_1.PointerY()

PostEvent

Supported

lb_returnvalue = st_1.PostEvent(event)

Resize

Supported

li_returnvalue = st_1.Resize(li_x,li_y)

SetFocus

Supported

li_returnvalue = st_1.SetFocus()

Unsupported: SetFocus(st_1)

SetPosition

Supported

li_returnvalue = st_1.SetPosition(position)

Show

Supported

li_returnvalue = st_1.Show()

SetRedraw

Supported

li_returnvalue = st_1.SetRedraw (FALSE)

TriggerEvent

Supported

li_returnvalue = st_1.TriggerEvent(event)

TypeOf

Supported

if st_1.typeof() = StaticText! Then

ls_returnvalue = 'StaticText!'

end if

GetContextService

Unsupported

 

Print

Unsupported

 

Tab control

Differences

  • If the MultiLine property of a Tab control is set to True, and the width of the control is exactly the same as the width of all the tabs in it, the tabs may be displayed in two lines on the Web although one line in PowerBuilder. To avoid the difference, specify a width for the Tab control that is bigger than the width of all the tabs, and do more testing till the tabs on the Web can be displayed in the same way as in PowerBuilder.

  • In the following scenario, setting the RaggedRight to TRUE will not take effect:

    1. The MultiLine property is disabled.

    2. The MultiLine property is enabled but all tabs can be located in a row.

  • In PowerBuilder, if the BoldSelectText property is enabled, only the label of the selected tab page will be displayed in bold type. However, on the Web, the labels of all tabs appear in bold type.  Remember to adjust the width of each tab page so that the text can be displayed within the label when enabling this property for the Web.

  • In the following scenario, the width of tabs on the Web may be different from in PowerBuilder.  When the MultiLine property is enabled and the RaggedRight property is disabled, the largest width of a tab is over W/N (W stands for the total width of all tabs, N stands for the total number of all tabs.)

Properties for Tab control

Table 99. 

Property

Support Level

Example Code

Alignment

Supported

tab_1.Alignment = 'Center!'

BackColor

Supported

tab_1.BackColor = ll_value

tab_1.BackColor = RGB(192,192,192)

Note: transparent value is unsupported.

BoldSelectedText

Supported

tab_1.BoldSelectedText = TRUE

BringToTop

Supported

tab_1.BringToTop = TRUE

Control[]

Supported

Userobject luo_1

luo_1 = tab_1.Control[1]

Note: this property cannot be dynamically changed.

CreateOnDemand

Supported

tab_1.CreateOnDemand = TRUE

DragAuto

Supported

tab_1.DragAuto = True

DragIcon

Supported

tab_1.DragIcon ='c:\archive\arrow.ico'

Enabled

Supported

tab_1.Enabled = FALSE

FaceName

Supported

tab_1.FaceName = ls_value

FixedWidth

Supported

tab_1.FixedWidth = lb_value

FocusOnButton​Down

Supported

tab_1.FocusOnButtonDown = TRUE

FontCharSet

Supported

tab_1.FontCharSet = ANSI!

FontFamily

Supported

tab_1.FontFamily = Roman!

FontPitch

Supported

tab_1.FontPitch = Fixed!

Height

Supported

tab_1.Height = li_value

Italic

Supported

tab_1.Italic = lb_value

MultiLine

Supported

tab_1.Multiline = TRUE

PictureOnRight

Supported

tab_1.PictureOnRight = TRUE

Pointer

Supported

tab_1.Pointer='SizeNWSE!'

tab_1.Pointer='d:\archive\IBEAM.BMP.cur'

PowerTips

Supported

tab_1.PowerTips = TRUE

RaggedRight

Supported

tab_1.RaggedRight=TRUE

SelectedTab

Supported

tab_1.SelectedTab = li_value

ShowPicture

Supported

tab_1.ShowPicture = TRUE

ShowText

Supported

tab_1.ShowText = lb_value

TabOrder

Supported

tab_1.TabOrder = 150

TabPosition

Supported

tab_1.TabPosition = TabsOnTop!

The TabPosition property is partially supported:

  • Supported values of the TabPosition property: TabsOnBottom!,TabsOnTop!

  • Unsupported values of the TabPosition property: TabsOnBottomAndTop!, TabsOnLeftAndRight!, TabsOnRightAndLeft!, TabsOnTopAndBottom!,TabsOnLeft!, TabsOnRight!

Tag

Supported

tab_1.Tag = ls_value

TextSize

Supported

tab_1.TextSize = li_value

Underline

Supported

tab_1.Underline = lb_value

Visible

Supported

tab_1.Visible = lb_value

Weight

Supported

tab_1.Weight = li_value

Width

Supported

tab_1.Width = li_value

X

Supported

tab_1.X = li_value

Y

Supported

tab_1.Y = li_value

ClassDefinition

Unsupported

 

PerpendicularText

Unsupported

 

Transparency

Unsupported

 

Events for Tab control

Table 100. 

Event

Support Level

Example Code

Clicked

Supported

Clicked(index)

Constructor

Supported

Constructor()

Destructor

Supported

Destructor()

DoubleClicked

Supported

DoubleClicked()

DragDrop

Supported

DragDrop(source,index)

DragEnter

Supported

DragEnter(source)

DragLeave

Supported

DragLeave(source)

DragWithin

Supported

DragWithin(source,index)

GetFocus

Supported

GetFocus()

Key

Supported

Key(key,keyflags)

LoseFocus

Supported

LoseFocus()

3Clicked

Supported

RightClicked(index)

RightDouble​Clicked

Supported

RightDoubleClicked(index)

SelectionChanged

Supported

SelectionChanged(oldindex,newindex)

Selection​Changing

Supported

SelectionChanging(oldindex,newindex)

Help

Unsupported

 

Other

Unsupported

 

Functions for Tab control

Table 101. 

Function

Support Level

Example Code

ClassName

Supported

ls_returnvalue = tab_1.ClassName()

CloseTab

Supported

li_returnvalue = tab_1.CloseTab()

Drag

Supported

li_returnvalue = tab_1.Drag()

GetParent

Supported

PowerObject lpo_returnvalue

lpo_returnvalue = tab_1.GetParent()

Hide

Supported

li_returnvalue = tab_1.Hide()

Move

Supported

li_returnvalue = tab_1.Move(li_x,li_y)

MoveTab

Supported

li_returnvalue = tab_1.MoveTab(li_x,li_y)

OpenTab

Supported

li_returnvalue = tab_1.OpenTab()

OpenTabWith​Parm

Supported

li_returnvalue = tab_1.OpenTabWithParm()

PointerX

Supported

li_returnvalue = tab_1.PointerX()

PointerY

Supported

li_returnvalue = tab_1.PointerY()

PostEvent

Supported

li_returnvalue = tab_1.PostEvent(Clicked!)

Resize

Supported

li_returnvalue = tab_1.Resize(li_x,li_y)

SelectTab

Supported

li_returnvalue = tab_1.SelectTab(tabidentifier)

SetFocus

Supported

li_returnvalue = tab_1.SetFocus()

Unsupported: SetFocus(tab_1)

SetPosition

Supported

li_returnvalue = tab_1.SetPosition(position)

SetRedraw

Supported

li_return= tab_1.SetRedraw(FALSE)

Show

Supported

li_returnvalue = tab_1.Show()

TabTriggerEvent

Supported

li_returnvalue = tab_address.TabTriggerEvent("ue_display")

TriggerEvent

Supported

li_returnvalue = tab_1.TriggerEvent(event)

TypeOf

Supported

if tab_1.typeof() = Tab! then

ls_returnvalue = 'Tab!'

endif

GetContextService

Unsupported

 

Print

Unsupported

 

TabPostEvent

Unsupported

 

TreeView control

Differences

The length of the converted TreeView labels has minor differences to those in PowerBuilder.

Properties for TreeView control

Table 102. 

Property

Support Level

Example Code

Accelerator

Supported

tv_1.Accelerator = 67

BackColor

Supported

tv_1.BackColor = ll_value

tv_1.BackColor = RGB(192,192,192)

Note: transparent value is unsupported.

Border

Supported

tv_1.Border = lb_value

BorderStyle

Supported

tv_1.BorderStyle=StyleRaised!

tv_1.BorderStyle=StyleBox!

tv_1.BorderStyle=StyleLowered!

Note: StyleShadowBox! is not supported.

BringToTop

Supported

tv_1.BringToTop = TRUE

CheckBoxes

Supported

tv_1.CheckBoxes = lb_value

DeleteItems

Supported

tv_1.DeleteItems = lb_value

DisableDragDrop

Supported

tv_1.DisableDragDrop = TRUE

DragAuto

Supported

tv_1.DragAuto = TRUE

DragIcon

Supported

tv_1.DragIcon='c:\archive\arrow.ico'

EditLabels

Supported

tv_1.EditLabels = lb_value

Enabled

Supported

tv_1.Enabled = lb_value

FontCharSet

Supported

tv_1.FontCharSet = ANSI!

FontFamily

Supported

tv_1.FontFamily = Roman!

FontPitch

Supported

tv_1.FontPitch = Fixed!

FaceName

Supported

tv_1.FaceName = ls_value

FullRowSelect

Supported

tv_1.FullRowSelect = TRUE

HasButtons

Supported

tv_1.HasButtons = lb_value

HasLines

Supported

tv_1.HasLines = lb_value

Height

Supported

tv_1.Height = li_value

HideSelection

Supported

tv_1.HideSelection = FALSE

Indent

Supported

tv_1.Indent = 100

Italic

Supported

tv_1.Italic = lb_value

LinesAtRoot

Supported

tv_1.LinesAtRoot = lb_value

PictureHeight

Supported

tv_1.PictureHeight = 16

PictureMaskColor

Supported

tv_1.PictureMaskColor = RGB(255, 255, 0)

PictureName

Supported

tv_1.PictureName = ls_value

Assigning values to part of an array and using the default values for the other part is not supported.

For example:

picturename[1] = "aaa.bmp" 
picturename[3] = "bbb.bmp" 
var pic1 = picutrename[1]; 
var pic2 = picturename[3]; 

A supported example is given as follows:

picturename[1] = "aaa.bmp" 
picturename[2] = "bbb.bmp" 
picturename[3] = "ccc.bmp" 
var pic1 = picutrename[1]; 
var pic2 = picturename[2]; 
var pic3 = picturename[3];

PictureWidth

Supported

tv_1.PictureWidth = 16

Pointer

Supported

tv_1.Pointer ='UPArrow!'

tv_1.Pointer ='d:\archive\IBEAM.BMP.cur'

SingleExpand

Supported

tv_1.SingleExpand = TRUE

StatePicture​Height

Supported

tv_1.StatePictureHeight = 16

StatePicture​MaskColor

Supported

tv_1.StatePictureMaskColor = RGB(255, 255, 0)

StatePicture​Name[ ]

Supported

ls_value[] = tv_1.StatePictureName[]

Assigning values to part of an array and using the default values for the other part is not supported.

For example:

statepicturename[1] = "aaa.bmp" 
statepicturename[3] = "bbb.bmp" 
var pic1 = statepicturename[1]; 
var pic2 = statepicturename[3]; 

A supported example is given as follows:

statepicturename[1] = "aaa.bmp" 
statepicturename[2] = "bbb.bmp" 
statepicturename[3] = "ccc.bmp" 
var pic1 = statepicturename[1]; 
var pic2 = statepicturename[2]; 
var pic3 = statepicturename[3];

StatePictureWidth

Supported

tv_1.StatePictureWidth = 16

TabOrder

Supported

tv_1.TabOrder = 160

Tag

Supported

tv_1.Tag = ls_value

TextColor

Supported

tv_1.TextColor = ll_value

TextSize

Supported

tv_1.TextSize = li_value

ToolTips

Supported

tv_1.ToolTips = TRUE

TrackSelect

Supported

tv_1.TrackSelect = TRUE

Underline

Supported

tv_1.Underline = lb_value

Visible

Supported

tv_1.Visible = lb_value

Weight

Supported

tv_1.Weight = li_value

Width

Supported

tv_1.Width = li_value

X

Supported

tv_1.X = li_value

Y

Supported

tv_1.Y = li_value

ClassDefinition

Unsupported

 

SortType

Unsupported

 

Transparency

Unsupported

 

Events for TreeView control

Table 103. 

Event

Support Level

Example Code

BeginDrag

Supported

BeginDrag(handle)

BeginLabelEdit

Supported

BeginLabelEdit(handle)

BeginRightDrag

Supported

BeginRightDrag(handle)

Clicked

Supported

Clicked(handle)

Constructor

Supported

Constructor()

DeleteItem

Supported

DeleteItem(handle)

Destructor

Supported

Destructor()

DoubleClicked

Supported

DoubleClicked(handle)

DragDrop

Supported

DragDrop(source,handle)

DragEnter

Supported

DragEnter(source)

DragLeave

Supported

DragLeave(source)

DragWithin

Supported

DragWithin(source,handle)

EndLabelEdit

Supported

EndLabelEdit(handle,newtext)

GetFocus

Supported

GetFocus()

Key

Supported

Key(key,keyflags)

ItemCollapsed

Supported

ItemCollapsed(handle)

ItemCollapsing

Supported

ItemCollapsing(handle)

ItemExpanded

Supported

ItemExpanded(handle)

ItemExpanding

Supported

ItemExpanding(handle)

ItemPopulate

Supported

ItemPopulate(handle)

LoseFocus

Supported

LoseFocus()

RightClicked

Supported

RightClicked(handle)

RightDouble​Clicked

Supported

RightDoubleClicked(handle)

SelectionChanged

Supported

SelectionChanged(oldhandle,newhandle)

Selection​Changing

Supported

SelectionChanging(oldhandle,newhandle)

Help

Unsupported

 

Other

Unsupported

 

Sort

Unsupported

 

Functions for TreeView control

Table 104. 

Function

Support Level

Example Code

AddPicture

Supported

li_returnvalue = tv_1.AddPicture(picturename)

AddStatePicture

Supported

li_returnvalue = tv_1.AddStatePicture(picturename)

ClassName

Supported

ls_returnvalue = tv_1.ClassName()

CollapseItem

Supported

li_returnvalue = tv_1.CollapseItem(itemhandle)

DeleteItem

Supported

li_returnvalue = tv_1.DeleteItem(itemhandle)

DeletePicture

Supported

li_returnvalue = tv_1.DeletePicture(index)

DeletePictures

Supported

li_returnvalue = tv_1.DeletePictures()

DeleteState​Picture

Supported

li_returnvalue = tv_1.DeleteStatePicture(index)

DeleteStatePictures

Supported

li_returnvalue = tv_1.DeleteStatePictures()

Drag

Supported

tv_1.Drag(End!)

EditLabel

Supported

li_returnvalue = tv_1.EditLabel(itemhandle)

ExpandAll

Supported

li_returnvalue = tv_1.ExpandAll(itemhandle)

ExpandItem

Supported

li_returnvalue = tv_1.ExpandItem(itemhandle)

FindItem

Supported

ll_returnvalue = tv_1.FindItem(navigationcode, itemhandle)

Note: the argument navigationcode can only use the following values: RootTreeItem!, NextTreeItem!, PreviousTreeItem!, ParentTreeItem!, ChildTreeItem!, FirstVisibleTreeItem!, NextVisibleTreeItem!, PreviousVisibleTreeItem!, CurrentTreeItem!.

The navigationcode value cannot be DropHighlightTreeItem!.

GetItem

Supported

li_returnvalue = tv_1.GetItem(itemhandle,tvi_ret)

GetItemAtPointer

Supported

li_index = tv_1.GetItematPointer( )

GetParent

Supported

lobj_returnvalue = tv_1.GetParent( )

Hide

Supported

li_returnvalue = tv_1.Hide( )

InsertItem

Supported

ll_returnvalue = tv_1.InsertItem(handleparent,handleafter,item)

ll_returnvalue = tv_1.InsertItem(handleparent,handleafter,label,pictureindex)

InsertItemFirst

Supported

ll_returnvalue = tv_1.InsertItemFirst(handleparent,item)

ll_returnvalue = tv_1.InsertItemFirst(handleparent,label,pictureindex)

InsertItemLast

Supported

ll_returnvalue = tv_1.InsertItemLast(handleparent,item)

ll_returnvalue = tv_1.InsertItemLast(handleparent, label, pictureindex)

InsertItemSort

Supported

tv_1.InsertItemSort(ll_roothandle, l_tvi)

Move

Supported

li_returnvalue = tv_1.Move(li_xpos,li_ypos)

PointerX

Supported

li_returnvalue = tv_1.PointerX()

PointerY

Supported

li_returnvalue = tv_1.PointerY()

PostEvent

Supported

lb_returnvalue = tv_1.PostEvent(event)

Resize

Supported

li_returnvalue = tv_1.Resize(li_width,li_height)

SelectItem

Supported

ll_returnvalue = tv_1.SelectItem(itemhandle)

SetFirstVisible

Supported

li_tvret = tv_1.SetFirstVisible(ll_tvi)

SetFocus

Supported

li_returnvalue = tv_1.SetFocus()

Unsupported: SetFocus(tv_1)

SetItem

Supported

li_returnvalue = tv_1.SetItem(itemhandle,item)

SetLevelPictures

Supported

tv_1.SetLevelPictures(3, li_level, li_level, & li_level, li_level)

SetOverlayPicture

Supported

tv_1.SetOverlayPicture(1, index)

SetPosition

Supported

li_returnvalue = tv_1.SetPosition(position)

SetRedraw

Supported

li_return= tv_1.SetRedraw(True)

Show

Supported

li_returnvalue = tv_1.Show()

Sort

Supported

li_returnvalue = tv_1.Sort()

SortAll

Supported

tv_1.SortAll(ll_tvi , Ascending!)

TriggerEvent

Supported

li_returnvalue = tv_1.TriggerEvent(event)

TypeOf

Supported

if tv_1.TypeOf() = TreeView! Then

ls_returnvalue = 'TreeView!'

end if

GetContextService

Unsupported

 

Print

Unsupported

 

SetDropHighlight

Unsupported

 

VProgressBar control

Properties for VProgressBar control

Table 105. 

Property

Support Level

Example Code

BringToTop

Supported

vpb_1.BringToTop = TRUE

DragAuto

Supported

vpb_1.DragAuto = TRUE

DragIcon

Supported

vpb_1.DragIcon = 'Question!'

Height

Supported

vpb_1.Height = li_value

MaxPosition

Supported

vpb_1.MaxPosition = 120

MinPosition

Supported

vpb_1.MinPosition = 20

Pointer

Supported

vpb_1.Pointer = 'Beam!'

vpb_1.Pointer ='d:\archive\IBEAM.BMP.cur'

Position

Supported

vpb_1.Position = 50

StdStep

Supported

vpb_1.setstep = 20

SmoothScroll

Supported

vpb_1.SmoothScroll = True

TabOrder

Supported

vpb_1.TabOrder = 20

Tag

Supported

vpb_1.Tag = "VProgressBar control"

Visible

Supported

vpb_1.Visible = TRUE

Width

Supported

vpb_1.Width = 700

X

Supported

vpb_1.X = 280

Y

Supported

vpb_1.Y = 1280

ClassDefinition

Unsupported

 

Events for VProgressBar control

Table 106. 

Event

Support Level

Example Code

Clicked

Supported

Clicked(flags,xpos,ypos)

Constructor

Supported

Constructor()

Destructor

Supported

Destructor()

DoubleClicked

Supported

DoubleClicked(flags,xpos,ypos)

DragDrop

Supported

DragDrop(source)

DragEnter

Supported

DragEnter(source)

DragLeave

Supported

DragLeave(source)

DragWithin

Supported

DragWithin(source)

GetFocus

Supported

GetFocus()

LoseFocus

Supported

LoseFocus()

RButtonDown

Supported

RButtonDown(flags,xpos,ypos)

Help

Unsupported

 

Other

Unsupported

 

Functions for VProgressBar control

Table 107. 

Function

Support Level

Example Code

ClassName

Supported

ls_classnm = vpb_1.classname()

Drag

Supported

li_return = vpb_1.drag(Begin!)

GetParent

Supported

lpo_return = vpb_1.GetParent()

Hide

Supported

li_return = vpb_1.Hide()

Move

Supported

li_return = vpb_1.Move(li_x,li_y)

OffsetPos

Supported

li_return = vpb_1.OffsetPos(10)

PointerX

Supported

li_return = vpb_1.PointerX()

PointerY

Supported

li_return = vpb_1.PointerY()

PostEvent

Supported

vpb_1.PostEvent(Clicked!)

Resize

Supported

li_return = vpb_1.Resize(li_x, li_y)

SetFocus

Supported

li_return = vpb_1.SetFocus()

SetPosition

Supported

li_return = vpb_1.SetPosition(ToTop!)

SetRange

Supported

li_return = vpb_1.SetRange(1, 10)

SetRedraw

Supported

li_return = vpb_1.SetRedraw(FALSE)

Show

Supported

li_return = vpb_1.Show()

StepIt

Supported

li_return = vpb_1.StepIt( )

TriggerEvent

Supported

li_return = vpb_1.TriggerEvent(Clicked!)

TypeOf

Supported

type_obj = vpb_1.typeof( )

GetContextService

Unsupported

 

Print

Unsupported

 

VScrollBar control

Properties for VScrollBar control

Table 108. 

Property

Support Level

Example Code

BringToTop

Supported

vsb_1.BringToTop = TRUE

DragAuto

Supported

vsb_1.DragAuto = TRUE

DragIcon

Supported

vsb_1.DragIcon = 'Question!'

Height

Supported

vsb_1.Height = li_value

MaxPosition

Supported

vsb_1.MaxPosition = 120

MinPosition

Supported

vsb_1.MinPosition = 20

Pointer

Supported

vsb_1.Pointer = 'Beam!'

vsb_1.Pointer ='d:\archive\IBEAM.BMP.cur'

Position

Supported

vsb_1.Position = 50

StdWidth

Supported

vsb_1.StdHeight = True

TabOrder

Supported

vsb_1.TabOrder = 20

Tag

Supported

vsb_1.Tag = "VScrollBar control"

Visible

Supported

vsb_1.Visible = TRUE

Width

Supported

vsb_1.Width = 700

X

Supported

vsb_1.X = 280

Y

Supported

vsb_1.Y = 1280

ClassDefinition

Unsupported

 

Events for VScrollBar control

Table 109. 

Event

Support Level

Example Code

Constructor

Supported

Constructor()

Destructor

Supported

Destructor()

DragDrop

Supported

DragDrop(source)

DragEnter

Supported

DragEnter(source)

DragLeave

Supported

DragLeave(source)

DragWithin

Supported

DragWithin(source)

GetFocus

Supported

GetFocus()

LineDown

Supported

LineDown()

LineUp

Supported

LineUp()

LoseFocus

Supported

LoseFocus()

Moved

Supported

Moved(scrollpos)

PageDown

Supported

PageDown()

PageUp

Supported

PageUp()

RButtonDown

Supported

RButtonDown(flags,xpos,ypos)

Help

Unsupported

 

Other

Unsupported

 

Functions for VScrollBar control

Table 110. 

Function

Support Level

Example Code

ClassName

Supported

ls_classnm = vsb_1.classname()

Drag

Supported

li_return = vsb_1.drag(Begin!)

GetParent

Supported

lpo_return = vsb_1.GetParent()

Hide

Supported

li_return = vsb_1.Hide()

Move

Supported

li_return = vsb_1.Move(li_x,li_y)

PointerX

Supported

li_return = vsb_1.PointerX()

PointerY

Supported

li_return = vsb_1.PointerY()

PostEvent

Supported

vsb_1.PostEvent(Clicked!)

Resize

Supported

li_return = vsb_1.Resize(li_x, li_y)

SetFocus

Supported

li_return = vsb_1.SetFocus()

SetPosition

Supported

li_return = vsb_1.SetPosition(ToTop!)

SetRedraw

Supported

li_return = vsb_1.SetRedraw(FALSE)

Show

Supported

li_return = vsb_1.Show()

TriggerEvent

Supported

li_return = vsb_1.TriggerEvent(Clicked!)

TypeOf

Supported

type_obj = vsb_1.typeof()

GetContextService

Unsupported

 

Print

Unsupported

 

VTrackBar control

Properties for VTrackBar control

Table 111. 

Property

Support Level

Example Code

BringToTop

Supported

vtb_1.BringToTop = TRUE

DragAuto

Supported

vtb_1.DragAuto = TRUE

DragIcon

Supported

vtb_1.DragIcon = 'Question!'

Height

Supported

vtb_1.Height = li_value

LineSize

Supported

vtb_1.LineSize = li_value

MaxPosition

Supported

vtb_1.MaxPosition = 120

MinPosition

Supported

vtb_1.MinPosition = 20

PageSize

Supported

vtb_1.PageSize = li_value

Pointer

Supported

vtb_1.Pointer = 'Beam!'

vtb_1.Pointer ='d:\archive\IBEAM.BMP.cur'

Position

Supported

vtb_1.Position = 50

Slider

Supported

vtb_1.Slider = TRUE

SliderSize

Supported

vtb_1.SliderSize = li_value

TabOrder

Supported

vtb_1.TabOrder = 20

Tag

Supported

vtb_1.Tag = ls_tag

TickFrequency

Supported

vtb_1.TickFrequency = li_value

TickMarks

Supported

vtb_1.TickMarks = VTicksOnBottom!

Visible

Supported

vtb_1.Visible = TRUE

Width

Supported

vtb_1.Width = li_value

X

Supported

vtb_1.X = li_x

Y

Supported

vtb_1.Y = li_y

ClassDefinition

Unsupported

 

Events for VTrackBar control

Table 112. 

Event

Support Level

Example Code

Constructor

Supported

Constructor()

Destructor

Supported

Destructor()

DragDrop

Supported

DragDrop(source)

DragEnter

Supported

DragEnter(source)

DragLeave

Supported

DragLeave(source)

DragWithin

Supported

DragWithin(source)

GetFocus

Supported

GetFocus()

LineDown

Supported

LineDown()

LineUp

Supported

LineUp()

LoseFocus

Supported

LoseFocus()

Moved

Supported

Moved(scrollpos)

PageDown

Supported

PageDown()

PageUp

Supported

PageUp()

RButtonDown

Supported

RButtonDown(flags,xpos,ypos)

Help

Unsupported

 

Other

Unsupported

 

Functions for VTrackBar control

Table 113. 

Function

Support Level

Example Code

ClassName

Supported

ls_classnm = vtb_1.classname()

Drag

Supported

li_return = vtb_1.drag(Begin!)

GetParent

Supported

lpo_return = vtb_1.GetParent()

Hide

Supported

li_return = vtb_1.Hide()

Move

Supported

li_return = vtb_1.Move(li_x,li_y)

PointerX

Supported

li_return = vtb_1.PointerX()

PointerY

Supported

li_return = vtb_1.PointerY()

PostEvent

Supported

vtb_1.PostEvent(Clicked!)

Resize

Supported

li_return = vtb_1.Resize(li_x, li_y)

SelectionRange

Supported

li_return = vtb_1.SelectionRange(30, 70)

SetFocus

Supported

li_return = vtb_1.SetFocus()

SetPosition

Supported

li_return = vtb_1.SetPosition(ToTop!)

SetRedraw

Supported

li_return = vtb_1.SetRedraw(FALSE)

Show

Supported

li_return = vtb_1.Show()

TriggerEvent

Supported

li_return = vtb_1.TriggerEvent(Clicked!)

TypeOf

Supported

type_obj = vtb_1.typeof()

GetContextService

Unsupported

 

Print

Unsupported

 

Window control

Important Requirements

  • There are six window types: Child, Main, MDI, MDIHelp, Popup, and Response.

  • Window object cannot be dynamically created (for example, using the CREATE statement); it must be defined in the PowerBuilder painter.

  • Main Window can have an associated menu.

  • User-defined window events and control events are supported.

  • For more information relating to windows refer to the following links:

    Window types

    Window variables

    Opening and closing windows

    User operation in windows

Properties for Window control

Table 114. 

Property

Support Level

Example Code

BackColor

Supported

w_1.BackColor = RGB(0, 0, 255)

Note: transparent value is unsupported.

Border

Supported

w_1.Border = TRUE

BringToTop

Supported

w_1.BringToTop = TRUE

Center

Supported

w_1.Center = TRUE

Note: This property is unsupported for an MDI frame window.

Control [ ]

Supported

Control[]

graphicobject lobj_control

lobj_control = w_1.control[1]

Note: This property cannot be dynamically changed.

ControlMenu

Supported

w_1.ControlMenu= TRUE

Enabled

Supported

w_1.Enabled = TRUE

Height

Supported

w_1.Height = 750

//Specifies the height of the window w_1

Note: The Height property is unsupported for an MDI frame window.

HScrollBar

Supported

w_1.HScrollBar = TRUE

Icon

Supported

PowerBuilder and Web behaves differently if no icon is specified for the window:

  • For PowerBuilder, the icon (if any) specified for the application will be displayed as the icon for the window;

  • For Web, the Windows default icon will be displayed as the icon for the window.

MaxBox

Supported

w_1.MaxBox= TRUE

MenuID

Supported

Menu menuvar = w_1.MenuID

MenuName

Supported

ls_value = w_1.MenuName

MinBox

Supported

w_1.MinBox = TRUE

Pointer

Supported

w_1.pointer = 'Icon!'

w_1.pointer ='d:\archive\IBEAM.BMP.cur'

Resizable

Supported

w_1.Resizable = TRUE

Notes:

  1. For MDI frame window, the Resizable property will always be TRUE.

  2. At the execution of the ArrangeSheet function, no matter whether the Resizable property of each open sheet is set to TRUE or FALSE, all open sheets will be tiled and resized so that they do not overlap.

  3. After setting this property to True, setting Border properties will not be effective.

RightToLeft

Supported

w_1.RightToLeft = TRUE

Note: If the RightToLeft property of an MDI Window is set to Yes, the content in the window except for the content in the status bar displays from right to left.

Tag

Supported

w_1.SetMicroHelp(This.Tag)

//Set or get the Tag property

Title

Supported

w_1.Title = "Monthly Report"

TitleBar

Supported

w_1.TitleBar = TRUE

ToolbarVisible

Supported

w_1.ToolbarVisible = TRUE

Note: The ToolBarVisible is unsupported for Popup and Main windows.

Visible

Supported

w_1.Visible = TRUE

Note: This property is unsupported for sheets whose window type is Response, Popup or Main windows.

VScrollBar

Supported

w_1.VScrollBar = TRUE

Width

Supported

w_1.Width = 750 //Set or get the Width property

Note: The Width property is unsupported for an MDI frame window.

WindowState

Supported

w_1.WindowState = Maximized!

Note: On the Web, the initial window state for an MDI frame window is not based on the WindowState property. It will be decided by the Internet Explorer state.

WindowType

Supported

IF dw_1.WindowType=Main! THEN

MessaMessageBox("Window Type", "This is a main window.")

END IF

X

Supported

w_1.X = 215

//Set or get the X property

Notes: The X property is not supported for the MDI frame window.

Y

Supported

w_1.Y = 215

//Set or get the Y property

Notes: The Y property is not supported for the MDI frame window.

AnimationTime

Unsupported

 

ClassDefinition

Unsupported

 

ClientEdge

Unsupported

 

CloseAnimation

Unsupported

 

ColumnsPerPage

Unsupported

 

ContextHelp

Unsupported

 

KeyboardIcon

Unsupported

 

LinesPerPage

Unsupported

 

OpenAnimation

Unsupported

 

PaletteWindow

Unsupported

 

ToolbarAlignment

Unsupported

 

ToolbarHeight

Unsupported

 

ToolbarWidth

Unsupported

 

ToolbarX

Unsupported

 

ToolbarY

Unsupported

 

Transparency

Unsupported

 

UnitsPerColumn

Unsupported

 

UnitsPerLine

Unsupported

 

Events for Window control

Table 115. 

Event

Support Level

Example Code

Activate

Supported

Activate

Note: Activate and Deactivate events are unsupported for dialogue boxes.

Clicked

Supported

Clicked

Close

Supported

Close

Note: the Close event is handled the same way as Post in Appeon. In the Web application, the return value of the Close event may be different from that in PowerBuilder.

CloseQuery

Supported

CloseQuery

Deactivate

Supported

Deactivate

Notes:

  1. With the Web applications, the Activate/Deactivate events will not be triggered if the user shift the focus from a window in the current application to a place outside the application.

  2. Activate and Deactivate events are unsupported for dialogue boxes.

DoubleClicked

Supported

DoubleClicked

DragDrop

Supported

DragDrop

DragEnter

Supported

DragEnter

DragLeave

Supported

DragLeave

DragWithin

Supported

DragWithin

Hide

Supported

Hide

HotLinkAlarm

Supported

HotLinkAlarm

Key

Supported

Key

MouseDown

Supported

MouseDown

MouseMove

Supported

MouseMove

MouseUp

Supported

MouseUp

Open

Supported

Open

RButtonDown

Supported

RButtonDown

Resize

Supported

Resize

Show

Supported

Show

Timer

Supported

Timer

Help

Unsupported

 

Other

Unsupported

 

RemoteExec

Unsupported

 

Remote​HotLinkStart

Unsupported

 

Remote​HotLinkStop

Unsupported

 

RemoteRequest

Unsupported

 

RemoteSend

Unsupported

 

SystemKey

Unsupported

 

ToolbarMoved

Unsupported

 

Functions for Window control

Table 116. 

Function

Support Level

Example Code

ArrangeSheets

Supported

w_mdi.ArrangeSheets (arrangetype)

ChangeMenu

Supported

Parent.ChangeMenu(m_test_menu2)

Notes:

  1. It is unsupported to use a menu item as the menuname argument.

  2. The menu you want to make the current menu and the current menu cannot be the same menu.

ClassName

Supported

ls_value = w_test.ClassName()

CloseChannel

Supported

w_test.CloseChannel()

CloseUserObject

Supported

w_test.CloseUserObject()

ExecRemote

Supported

ExecRemote ("[Save()]", "Excel", "REGION.XLS")

GetActiveSheet

Supported

w_test.GetActiveSheet()

GetDataDDE

Supported

w_test.GetDataDDE(Str20)

GetDataDDE​Origin

Supported

string ls_name

GetCommandDDEOrigin (ls_name)

GetFirstSheet

Supported

w_test.GetFirstSheet()

GetNextSheet

Supported

w_test.GetNextSheet()

GetRemote

Supported

GetRemote ("[Save()]", "Excel", "REGION.XLS")

GetParent

Supported

w_test.GetParent()

Hide

Supported

Parent.Hide()

Move

Supported

w_test.Move (X,Y)

OpenChannel

Supported

long handle

handle = OpenChannel ("Excel", "REGION.XLS")

OpenUserObject

Supported

w_test.OpenUserObject()

Note: The userobjecttype argument cannot be a system control.

Using Post function to call the OpenUserObject function is unsupported, for example, this.post openuserobject (icbx_uo,100,100) is unsupported.

OpenUserObject​WithParm

Supported

w_test.OpenUserObjectWithParm()

ParentWindow

Supported

w_parent = w_test.parentwindow()

PointerX

Supported

li_dist = w_city.PointerX()

PointerY

Supported

li_dist = w_city.PointerY()

PostEvent

Supported

w_main.PostEvent (Clicked!)

Resize

Supported

w_test.Resize (300,250)

RespondRemote

Supported

IF GetDataDDE (Value) = 1 THEN

RespondRemote (TRUE)

END IF

SetFocus

Supported

w_test.SetFocus()

Unsupported: SetFocus (w_test)

SetMicroHelp

Supported

w_test.SetMicroHelp ("Preview")

SetPosition

Supported

w_test.SetPosition (position [, precedingwindow])

Note: The window with the TopMost property may not always be the top one in Appeon.

SetRedraw

Supported

li_return= w_test.SetRedraw(FALSE)

SetRemote

Supported

SetRemote ("R5C7", "4500", handle)

Show

Supported

Parent.Show()

StartHotLink

Supported

StartHotLink ("Any", "MyPBApp", "Any")

StopHotLink

Supported

StopHotLink ("Any", "MyPBApp", "Any")

TriggerEvent

Supported

w_test.TriggerEvent (close!)

TypeOf

Supported

if this.typeof() = window! then

messagebox ("show", "test typeof()")

end if

WorkSpaceHeight

Supported

Height = W_employee.WorkSpaceHeight()

WorkSpaceWidth

Supported

Width = W_employee.WorkSpaceWidth()

WorkSpaceX

Supported

w_test.WorkSpaceX()

WorkSpaceY

Supported

w_test.WorkSpaceY()

CommitDocking

Unsupported

 

GetCommand​DDE

Unsupported

 

GetCommand​DDEOrigin

Unsupported

 

GetContextService

Unsupported

 

GetToolbar

Unsupported

 

GetToolbarPos

Unsupported

 

LoadDockingState

Unsupported

 

OpenSheetFromDockingState

Unsupported

 

OpenSheetWithParmFromDockingState

Unsupported

 

Print

Unsupported

 

SaveDockingState

Unsupported

 

SetDataDDE

Unsupported

 

SetSheetID

Unsupported

 

SetToolbar

Unsupported

 

SetToolbarPos

Unsupported

 

StartServerDDE

Unsupported

 

StopServerDDE

Unsupported

 

Window types

The six window types, including Child, Main, MDI, MDIHelp, Popup, and Response, are supported well by Appeon with the following behavior differences.

  • For a Web application, an MDI sheet will be always behind the windows that are opened with the function Open.

  • For a Web application, events that should be triggered by clicking the Title bar of an MDI frame window will be triggered by clicking the Title bar of Internet Explorer.

  • Child: In PowerBuilder, a Child window is always above its parent window. With Web applications, a Child window can be behind its parent window.

Window variables
  • Window type arrays are supported, and window type variable that is a structure member is supported.

  • The declaration and assignment of window variable are all supported.

  • It is supported to dynamically create a window instance by using CREATE.

    For example, the following syntax is supported:

    window lwin_onewindow
    lwin_onewindow = create Window
    lwin_onewindow.title = "This is a city processing window"
    
Opening and closing windows

Opening Windows

  • Open (windowvar, windowtype{, parent})

    Refer to the Window Functions section of System Functions for the supported syntax for opening the windows.

    In the Web application, if window A is opened by the Open function whereas window B is opened by the OpenSheet function, window A will always display over window B.

  • When a window is open, the Constructor events for the instance variables and controls are executed in the same order on the Web as in PowerBuilder:

    1. Executing Constructor events for all instance variables is prior to executing Constructor events for all controls.

    2. For the instance variables/controls, the events are triggered by the following order: outside -> inside and top -> bottom.

    3. If a control is a container (tab/tab page/visual user object), the Constructor event for the container is triggered first. Then all the controls in the container are subsequently triggered.

      Events triggered for the window object follows the order Open >> Resize >> Show >> Activate.

  • The same rule applies in PowerBuilder: the front-to-back order of all the controls in the window is determined by the Control[] property of the window and the BringToTop property of each specific control.

Closing Windows

  • Refer to the Window Functions section for the supported syntax for closing the windows.

  • When a window is closed, the Destructor events of the variables and controls in the window are executed in the same order on the Web as in PowerBuilder:

    1. The Destructor events for the controls are triggered in the same order as the Constructor events.

    2. Executing Destructor events for all controls happens prior to executing Destructor events for all instance variables.

    3. The Destructor events for the instance variables are triggered in the opposite order as the Constructor events.

User operation in windows

Supported

The following major user operations are supported.

  • Maximize

  • Restore

  • Minimize

  • Single-click

  • Double-click

  • Drag

  • Close

  • Switching between controls in the window with the Tab key

  • Switch between windows by pressing the Ctrl + Tab key

Unsupported

  • It is unsupported to scroll a window using the PageUp/PageDown, upArrow/downArrow, or leftArrow/rightArrow keys

  • It is unsupported to switch between controls in a window by pressing the Enter/UpArrow/DownArrow/LeftArrow/RightArrow key