bbj40.gifBBjInputD


Creation Path


BBjAPI

|

+--BBjSysGui

|

+--BBjWindow

|

+--BBjInputD

 

Description

In BBj 4.0 and higher, the BBjInputD object provides methods for manipulating a GUI date control.

Implemented Interfaces

DragSource, DropTarget, Editable, Focusable, RecordSetBindable, SimpleRecordSetBindable, TabTraversable, TextAlignable, Validateable

Creation

A BBjInputD object is created through the following BBjWindow methods:

Return Value

Method

BBjInputD

addInputD(int ID, int x, int y, int w, int h)

BBjInputD

addInputD(int ID, int x, int y, int w, int h, string flags)

BBjInputD

addInputD(int ID, int x, int y, int w, int h, string flags, string mask)

BBjInputD

addInputD(int ID, int x, int y, int w, int h, string flags, string mask, string rules)

BBjInputD

addInputD(int ID, int x, int y, int w, int h, string flags, string mask, string rules, int restore)

BBjInputD

addInputD(int ID, int x, int y, int w, int h, string flags, string mask, string rules, int restore, int value)

Methods of BBjInputD

Return Value

Method

void

calendar()

boolean

getBeep()

int

getCaretPosition()

string

getEditString()

int

getError()

boolean

getHighlight()

boolean

getInsertMode()

int

getLength()

string

getLocale()

int

getMargin()

string

getMask()

boolean

getPassEnter()

boolean

getPassTab()

boolean

getPlusMinus()

string

getRestore()

boolean

getShowWeeks()

BBjColor

getTodayColor()

int

getValue()

BBjColor

getWeekdayColor()

BBjColor

getWeekendColor()

boolean

isEditable()

boolean

isValid()

void

restore()

void

setBeep(int beep)

void

setCalendarSize(int width, int height)

void

setCaretPosition(int pos)

void

setEditable(boolean editable)

void

setEditString(string edit)

void

setHighlight(boolean highlight)

void

setInsertMode(boolean insert)

void

setLength(int length)

void

setLocale(String locale)

void

setMargin(int marginWidth)

void

setMask(string mask)

void

setPassEnter(boolean pass)

void

setPassTab(boolean pass)

void

setRestore(int restore)

void

setPlusMinus(boolean pass)

void

setShowWeeks(boolean show)

void

setTodayColor(BBjColor color)

void

setValue(int value)

void

setWeekdayColor(BBjColor color)

void

setWeekendColor(BBjColor color)

Methods of BBjInputD implemented for DragSource

Return Value

Method

int

getDragActions()

string

getDragType()

void

setDragActions(int actions)

void

setDragType(string type)

Methods of BBjInputD implemented for DropTarget

Return Value

Method

int

getDropActions()

BBjVector

getDropTypes()

void

setDropActions(int actions)

void

setDropType(BBjVector types)

Methods of BBjInputD implemented for Editable

Return Value

Method

boolean

isEditable()

void

setEditable(boolean p_edit)

Methods of BBjInputD implemented for Focusable

Return Value

Method

boolean

isFocusable()

void

setFocusable(boolean p_focus)

Methods of BBjInputD implemented for RecordSetBindable

Return Value

Method

void

bindRecordSet(BBjRecordSet recordset, string fieldname)

string

getBoundFieldName()

Methods of BBjInputD implemented for SimpleRecordSetBindable

Return Value

Method

BBjRecordSet

getBoundRecordSet()

void

unbindRecordSet()

Methods of BBjInputD implemented for TabTraversable

Return Value

Method

boolean

isTabTraversable()

void

setTabTraversable(boolean trav)

Methods of BBjInputD implemented for TextAlignable

Return Value

Method

int

getAlignment()

void

setAlignment(int p_align)

Methods of BBjInputD implemented for Validateable

Return Value

Method

void

accept(boolean valid)

string

getValidationText()

Methods of BBjInputD inherited from BBjControl

Events

Callback Code

Object-oriented Event

Read Record Event

Code

ON_CONTROL_VALIDATION

BBjControlValidationEvent

Control Validation Event

v

ON_EDIT_MODIFY

BBjEditModifyEvent

Edit Control Modify Event

e

ON_GAINED_FOCUS

BBjGainedFocusEvent

Control Focus Gained/Lost Event

f

ON_INPUT_KEYPRESS

BBjInputKeypressEvent

Input Control Keypress

N (Notify Code 1)

ON_LOST_FOCUS

BBjLostFocusEvent

Control Focus Gained/Lost Event

f

ON_MOUSE_ENTER

BBjMouseEnterEvent

Mouse Enter/Exit Event

E

ON_MOUSE_EXIT

BBjMouseExitEvent

Mouse Enter/Exit Event

E

ON_POPUP_REQUEST

BBjPopupRequestEvent

Popup Request Event

r

ON_RIGHT_MOUSE_DOWN

BBjRightMouseDownEvent

Right Mouse Button Down Event

R

Remarks

None.

Constants inherited from BBjControl

Example

REM Create an InputD control

REM Obtain the instance of the BBjAPI object
LET myAPI!=BBjAPI()

REM Open the SysGui device
SYSGUI=UNT
OPEN (SYSGUI)"X0"

REM Obtain the instance of the BBjSysGui object
LET mySysGui!=myAPI!.getSysGui()

REM Set addWindow param values
X=10
Y=10
WIDTH=200
HEIGHT=200
TITLE$="BBj Window"

REM Set the current context
mySysGui!.setContext(0)

REM Create a window
myWindow! = mySysGui!.addWindow(X,Y,WIDTH,HEIGHT,TITLE$)

REM Create an InputD control
myInputD! = myWindow!.addInputD(101,50,100,90,30)

REM Set focus to the InputD control
myInputD!.focus()

REM Register the CALLBACK routines
CALLBACK(ON_CLOSE,APP_CLOSE,mySysGui!.getContext())

REM Process Events
PROCESS_EVENTS

REM Callback routine called when the user closes the application window
APP_CLOSE:
RELEASE
RETURN

See Also

BBjAPI

BBjSysGui

BBjWindow

INPUTD Mnemonic - Create Date Edit (INPUTD) Control

CALLBACK Verb - Register BBj Subroutine

Focusable

RecordSetBindable

TabTraversable

TextAlignable

Validateable

See the BBj Object Diagram for an illustration of the relationship between BBj Objects.