Navigation:  Reference > Form Objects >

TTASTimeEnter

Print this Topic Previous pageReturn to chapter overviewNext page

 

Use this object to enter/edit time or elapsed time values.

 

PALETTE ICON & EXAMPLE

 

 

PROPERTIES

The following are the properties that apply to this object.  Some are defined in Common Properties and are linked to their appropriate page.

 

Appearance

 

Color

Cursor

ParentColor

 

Behavior

 

Enabled

TabOrder

TabStop

Visible

 

Entry

 

EntryBGColor

EntryFont

EntryUseDflt

 

Font

 

Font

ParentFont

 

Hint

 

Hint

ParentShowHint

ShowHint

 

Misc

 

HelpContext

Name

PopupMenu

Tag

 

Other

 

Anchors

AutoSelectIf this property is checked (True) when the user activates this object, either by clicking on it, pressing the TAB key, or executing the FOCUS command, any Text that is currently displayed will be marked as selected.  The user will be able to enter a new value just by typing.  If the user wants to start at a certain character they will have to move the edit cursor to that character with the mouse or arrow keys.  Default value is True.  This can be changed at runtime.

BorderStyle

Constraints

ElapsedTimeYou can check this property if you want to keep track of the number of seconds in hours:minutes:seconds.milliseconds type format.  If this property is not checked then the program assumes that you're entering actual time.

ParentCtl3D

ReadOnly

ReturnIsTab

TimeFieldTypeThis determines the format of the time displayed. NOTE:  If the field is defined differently then the value entered here the object will default to the size of the field.

 

Position

 

Height

Left

Top

Width

 

TAS Pro

 

DfltValueThis value will be inserted automatically into the field if the field is blank when the object is chosen on the form. If you want to use a constant value surround the value in quotes, e.g., '10:15:00' etc.  If you want to use a field, then just put in the field name. The default value is blank.  This can be changed during runtime.

 

       NOTE:  You can't use an expression here.  However, this is a perfect use of the VALUE option in the DEFINE field command.  Just define a field, set the VALUE option to what ever expression you want to use, and put that field name into the DfltValue property.

FieldName

FldModifiedNOTE:  This is a runtime only property and will not show up in the Object Inspector.

FocusOnObject

HelpStatusBar

HelpStatusBarMsg

KeyTrapHint

KeyTraps

ValidCheckOnExit

ValidExpr

ValidMsg

 

COMMENTS

You can change the values that display for AM and PM in the Setup program.

 

During runtime, the user changes from AM to PM by pressing the space bar.

 

EVENTS

This object has events that are called depending on what the user does.  The events are routines in your program that may return a value (generally .True. or .False.) or just alert your program that something is happening.  An event looks to your program for a special label.  It is made up of the object Name, a period (.) and the Event name (listed below).  For example, the Change event below would be: ObjectName.Change:

 

ChangeThis event is called every time the user makes a change to the time of this object.  That includes entering a new character, deleting a character, etc.  Each time this event is executed the field that is attached to this object through the FieldName property is updated so that you can check the new time through the field.  Be cautious about using this since it will slow down the entry process.

 

DispThis event is called when the field that is attached to the object is to be refreshed on the screen.  This can happen when a record is read, after a calculation, etc.

 

PostThis event is called when the user moves from the current object to another.  By default this event will return .True. If you return .False. This will keep the user from leaving this object. This will stop the process from continuing, This can be used to make sure settings are proper after leaving the object.  To force the user to stay on the current object, if there is a problem, you may also use the Valid event instead of this.
PreThis event is called when the user moves into an object.  If you use this event you must return .True. or .False. when you return (RET) from the routine.  If you return .True. the user is allowed to access the object.  If you return .False. the object that was active before they got to this object will get the focus again.  This keeps the user from accessing an object that you don't want to be active.  Commonly used in application where some fields are accessible sometimes (RET .TRUE.) and aren't others (RET .FALSE.).

 

The process by which these events are called is:

 

Pre - This occurs when focus changes to the object.

Change - During field entry.

Post - Called after Valid returns .True. (if there is a Valid event) and before the Pre for the next object.

 

Disp - Is called anytime the form/object is refreshed.

 

 

 

 

 

 


Page url: http://www.cassoftware.com/tas/manual/ttastimeenter.htm