Object-oriented interface

This document...***********

Key:

 [-]: Static class, you should access it by using the "::" operator.

 [+]: Parent class, you cannot initialize them

 [>]: Final class, you may initialize them

 [@]: You can initialize them, but that's not recommended.

 [!]: Buggy or not implemented

  a : Attribute of a class. You may be able to read and modify them

  v : Virtual attribute of a class. You may be able to read and modify them

  m : Method of a class.

  # : Comments

 

Wb

 

 

 

 

Auxiliary functions

 

 

 

generateIni

 

 

 

getFolderFiles

 

 

 

parseIni

 

 

 

parseRc ı

($filename, $winvar, $classname, $width, $height, $posx, $posy, $parent, $style, $notify)

 

 

generateIni

 

 

 

getFolderFiles

 

 

 

Windows functions

 

 

 

exec

 

 

 

findFile

 

 

 

getRegistryKey

 

 

 

getSystemInfo

 

 

 

mainLoop

 

 

 

playSound

 

 

 

setRegistryKey

 

 

 

Low-level functions

 

 

 

getAddress

 

 

 

peek

 

 

 

poke

 

 

sendMessage

 

 

 

Predef dialogs

 

 

 

sysDlgColor

 

 

 

sysDlgOpen

 

 

 

sysDlgPath

 

 

 

sysDlgSave

 

 

 

Extra functions

 

 

findObjFromHandler

 

 

 

Predef dialogs

 

 

ı Please read the considerations about this method in ooi_wb.php.

[-]WbDatabase

 | # Won't implement.. It's not necessary

 

[>]WbImage

 |m create       ($width, $height)

 |m createMask   ($transparentColor)

 |m destroy      () // auto-called on class destroy

 |m load         ($filename, $index=0)

 |m getImageSize ($filename)

 |m save         ($filename)

 |m getPixel     ($xpos, $ypos)

 |m setPixel     ($xpos, $ypos, $color)

 

[@]WbObject ($address)

 |a address # WARNING:

 |v handle  #

 |v id      #   These are low-level properties.

 |v wbclass #   Be careful when you change it.

 |v item    #   After modifying any value, you must call

 |v subitem #   "update()" method, so the new values will be

 |v style   #   inserted into memory...

 |v parent  #

 |v handler #   Please, modify it ONLY if you know what are you doing.

 |v lparam  #

 |

 |[+]WbWidget

 | |v visible     (wb_[gs]et_visible)

 | |v text        (wb_[gs]et_text)

 | |v width       (wb_[gs]et_size)

 | |v height      (wb_[gs]et_size)

 | |v left        (wb_[gs]et_position)

 | |v top         (wb_[gs]et_position)

 | |m refresh     ()

 | |m sendMessage ($message, $wparam, $lparam)

 | |m setFocus    ()

 | |m setImage    (string  $source, $index, $trasparent_color, lparam)

 | |  ŻŻŻŻŻŻŻŻ\or (WbImage $source)

 | |m setPosition ($posx, $posy)

 | |

 | |[+]WbHolder

 | | |m getControl ($id)

 | | |[+]WbWindow

 | | | |m setHandler   ($callback)

 | | | |m destroy      ()

 | | | |m startTimer   ($id, $interval)

 | | | |m destroyTimer ($id)

 | | | |m getPixel     ($xpos, $ypos)

 | | | |m setPixel     ($xpos, $ypos, $color)

 | | | |m addControl   ($class_name, ...)

 | | | |[>]WbAppWindow       ($caption=false, $posx=false, $posy=false, $width=false, $height=false, $style=false, $lparam=false)

 | | | |[>]WbPopupWindow     ($caption=false, $posx=false, $posy=false, $width=false, $height=false, $style=false, $lparam=false)

 | | | |[>]WbResizableWindow ($caption=false, $posx=false, $posy=false, $width=false, $height=false, $style=false, $lparam=false)

 | | | |[>]WbModalDialog     ($parent, $caption=false, $posx=false, $posy=false, $width=false, $height=false, $style=false, $lparam=false)

 | | | |[>]WbModelessDialog  ($parent, $caption=false, $posx=false, $posy=false, $width=false, $height=false, $style=false, $lparam=false)

 | | | |[>]WbToolDialog      ($parent, $caption=false, $posx=false, $posy=false, $width=false, $height=false, $style=false, $lparam=false)

 | | |

 | |

 | |[+]WbControl

 | | |v enabled         [wb_gset_enabled]

 | | |v value           [wb_gset_value]

 | | |v selected        [wb_gset_selected]

 | | |[!]WbCalendar     ($parent, $posx, $posy, $width, $height, $caption, $id, $style, $lparam)

 | | |[>]WbCheckBox     ($parent, $posx, $posy, $width, $height, $caption, $id, $style, $lparam)

 | | | |v checked       [wb_gset_value]

 | | |[>]WbEditBox      ($parent, $posx, $posy, $width, $height, $caption, $id, $style, $lparam)

 | | |[>]WbFrame        ($parent, $posx, $posy, $width, $height, $caption, $id, $style, $lparam)

 | | |[>]WbGauge        ($parent, $posx, $posy, $width, $height, $caption, $id, $style, $lparam)

 | | |[!]WbHTMLControl  ($parent, $posx, $posy, $width, $height, $caption, $id, $style, $lparam)

 | | |[!]WbHyperlink    ($parent, $posx, $posy, $width, $height, $caption, $id, $style, $lparam)

 | | |[>]WbLabel        ($parent, $posx, $posy, $width, $height, $caption, $id, $style, $lparam)

 | | |[>]WbPushButton   ($parent, $posx, $posy, $width, $height, $caption, $id, $style, $lparam)

 | | |[>]WbRadioButton  ($parent, $posx, $posy, $width, $height, $caption, $id, $style, $lparam)

 | | | |v checked       [wb_gset_value]

 | | |[>]WbRTFEditBox   ($parent, $posx, $posy, $width, $height, $caption, $id, $style, $lparam)

 | | |[>]WbScrollBar    ($parent, $posx, $posy, $width, $height, $caption, $id, $style, $lparam)

 | | |[>]WbSlider       ($parent, $posx, $posy, $width, $height, $caption, $id, $style, $lparam)

 | | |[>]WbSpinner      ($parent, $posx, $posy, $width, $height, $caption, $id, $style, $lparam)

 | | |[>]WbStatusBar    ($parent, $posx, $posy, $width, $height, $caption, $id, $style, $lparam)

 | | |

 | | |[>]WbTabControl   ($parent, $posx, $posy, $width, $height, $id, $style, $lparam)

 | | | |a selected

 | | | |m next   ()

 | | | |m back   ()

 | | | |m end    ()

 | | | |m first  ()

 | | |

 | | |[>]WbTab       ($tabcontrol, $description)

 | | | |a index

 | | | |a controller

 | | | |m focus      ()

 | | | |m addControl ($class_name, ...)

 | | |

 | | |[>]WbToolBar ($parent)

 | | | |m setIconPallete ($filename, $width, $height)

 | | | |m addButton      ($id, $description, $icon_index) # if all null, a separator is created

 | | | |m finished       ()

 | | |

 | | |[>]WbAccel   ($parent)

 | | | |m addAccel ($id, $keys)

 | | | |m finished ()

 | | |

 | | |[>]WbMenu        ($parent)

 | | | |m addItem      ($group_name)

 | | | |ŻŻŻŻŻŻŻŻŻŻŻ\or ($id, $text, $image, $accel) # [this will return a WbMenuItem object]

 | | | |m finished()

 | | |

 | | |[>]WbMenuItem ($parent, $menu_complete)

 | | | |a parent  # All atributes listed in here, can be modified only before

 | | | |a id      # parent::finished() method.

 | | | |a text    #

 | | | |a hint    # The virtual properties, extended from WbWidget and WbControl only will

 | | | |a image   # work if used AFTER parent::finished(). Otherwise, an error will be displayed.

 | | | |a accel   #

 | | | |v checked   [wb_gset_value]

 | | |

 | | |[+]WbListBoxes

 | | | |v selectedValue  (special attribute, wich returns the selected 'name')

 | | | |v selectedDesc   (special attribute, wich returns the selected 'description')

 | | | |m addOption      ($value, $inner) # like <option name="$value">$inner</option>

 | | | |m deleteOption   ($index, $length)

 | | | |m clearOptions   ()

 | | | |m refreshOptions ()

 | | | |m sort           ($ascending)

 | | | |[>] WbComboBox   ($parent, $posx, $posy, $width, $height, $options, $id, $style, $lparam)

 | | | |[>] WbListBox    ($parent, $posx, $posy, $width, $height, $options, $id, $style, $lparam)

 | | |

 | | |[+]WbContainer

 | | | |m addItems     ($items, $clear, $param)

 | | | |m deleteItem   ($startItem, $length)

 | | | |m getItemCount ()

 | | | |m setItem      ($index, $item)

 | | | |m setItemImage ($item, $image)

 | | | |m sort         ($ascending, $subitem)

 | | | |[>]WbListView  ($parent, $posx, $posy, $width, $height, $columns, $id, $style, $lparam)

 | | | |[>]WbTreeView  ($parent, $posx, $posy, $width, $height, $id, $style, $lparam)

 | | |

 | |

 |

The following PHP constants are defined by WinBinder: