VisualuRuby(tmp) Reference

VRParent

Coloring : swin class : vruby class

Class Hierarchy

This is a module

Including Modules

none

Child classes or Classes/Modules including this

VRBitmapPanel VRCanvasPanel VRDialogComponent VRForm VRGroupbox VRHorizTwoPane VRInputbox VRInputboxDialog VRModalDialog VRModelessDialog VRPanel VRRebar VRTabControl VRTabbedPanel VRTwoPane VRVertTwoPane

vr/vruby.rb

VRParent

This module provides the features to be the parent of the child windows.

Constants

DEFAULT_FONT
Each control created by addControl method is invoked setFont(font) method. Default font of child controls can be set with this constants in the class.

Method

addControl(ctype,name,caption, x=0,y=0,w=10,h=10, style=0)
Adds a child window(control) of ctype named name with caption at ( x , y ) whose width and height is ( w , h ). ctype is not an instance of the control-class but the class of the child window. style is additional styles for the childwindow such as WMsg::WS_BORDER. You can set nil or "" for name. "" is for nameless control, and nil is for the control which is nothing to do with vruby's control management.
addArrayedControl(index,ctype,name,caption,x=0,y=0,w=10,h=10,style=0)
Adds an indexed child window(control) of ctype named name.
countControls
Returns the number of controls added on the window.
deleteControls(cntl)
Deletes a control cntl as VRControl.
clearControls
Deletes all controls on the window.
send_parent(cname,func)
Sends to parent an event from control. cname is controlname and func is event handler name.

Callback Methods(event handler)

construct
You can add controls and set menues for the window in this method.

Event handlers

self_created
Fired when all of child windows is created.

VisualuRuby(tmp) Reference Index : Project HomePage(English) : Project HomePage(Japanese) : Sourceforge vruby page
Generated at Sun Feb 24 01:29:57 +0900 2008