Define_DFEntry_Radio_Group_Mixin()
- integer
Filled_Count()
- Integer
iCnt
Fill_List()
Zoom()
- Integer
obj#
Prompt()
- Integer
obj#
Set(Integer item# Integer Obj#)
- Integer
Prompt_Object(Integer Item#)
Set(Integer iItem Handle hoPrompt)
- Handle
Zoom_object(Integer iItem)
- Integer
Data_File(Integer Itm#)
Set(integer item# integer File#)
- Integer
Data_Field(Integer Itm#)
Set(integer item# integer Field#)
Clear_Radio(String Dflt Integer RetainIt)
Clear radio object. All items select state to false
and set current item to default.
Pass: Dflt - value to set
RetainIt - if TRUE retain the current value
- Integer
Srvr - Integer
file# - Integer
oldSt
Entry_Defaults()
Entry_Clear(integer file#)
created for EntItem simulation: file# <> 0 means use Cleared-array
Entry_Clear_All(integer file#)
created for EntItem simulation:
SET(Integer Itm String Val)
- String
Entry_Value(Integer Itm)
Entry_Display(integer file# integer flag)
This has never been used internally and it is private. It should be safe to remove it.
Procedure SET Record_Value Integer Itm Integer iRec
If Itm eq CURRENT Get Current_Item to Itm
Set Value of (Entry_Values(self)) Item (Itm*2+1) to iRec
End_Procedure
Function Record_Value Integer Itm Returns Integer
If Itm eq CURRENT Get Current_Item to Itm
Function_Return (Value(Entry_Values(self),Itm*2+1))
End_Function
created for EntItem simulation and Server support:
if file# = 0, display only if Target_File is in Done-array
else display only if file# = Target_File
- Integer
dFile - Integer
dField - String
sVal
Display_Description(String DataVal)
Set the radio item to the value passed. If not found, leave item where
it is with nothing selected.
- Integer
Itm
- integer
Data_to_Description_item(String sValue)
Pass data value and return the position in the radio. -1 if not found
If list is sorted, the entry_value items and the list items will not
be in the same order. Each radio item's aux_value contains the position
in entry_value list (the ev list does not change).
- Integer
Itms - Integer
Itm - Integer
RadioItem - Integer
SrchItm
- String
Item_Data_Value(integer iItem)
Find the data value of the passed list item
- String
Current_Item_Data_Value()
Find the data value of the current selected radio item
- Integer
iItem
Entry_Update(integer file# integer flag)
created for EntItem simulation and Server support
Normally entry_update gets called during saves and finds. When
Save: file# = 0 flag = 3
Find: file# <> 0 flag = 1
Allow Update Rules:
if Save update (file#=0, flag=3)
Allow Update if not noput and Target_File is in Done-array
and (new record or changed_state).
else if Find_Update (file#=Target_File, Flag=1) or misc (file#=0)
Allow Update
Modified so that an unchanged item is moved to the field if
the main file is a new record.
- Integer
dFile - Integer
dField - Integer
C_Item - Integer
Srvr# - Integer
ok - Integer
iStat - String
sValue
Refresh(integer notifyMode)
Activating()
Augment to send Initialize_list (for dynamic lists)
- Integer
rVal
Delete_Data()
Augment to delete the entry_value data as well.
- Integer
obj#
Initialize_List()
If there are no items send fill_list.
Also check to see of a scroll bar is needed. Display scroll bar if it
is.
Note If you want to rebuild an item list you should:
Send Delete_Data
Send Initialize_List
Do not Send Fill_List directly (it won't handle scroll bar right)
- Integer
Lmt - Integer
Itm
Set(Integer iItem Integer iState)
Get/Set item_chagned_state. These messages should not affect our radio
list. They should redirect to changed_state
- Integer
Item_Changed_State(Integer iItem)
- string
Code_Description_Value(String DescVal String DataVal)
Augment to support various description/data Display formats.
- Integer
Mode
Add_Radio_Item(String Descr_value String Data_Value)
Message to add radio Items to a list. Similar to Add_Item except
it handles an optional second and third parameter. If no 2nd param the
first is used in its place. If no third param, the record value is
not stored.
This also keeps track of the readio item's original order in aux_value.
If the radio list is then sorted this provides a pointer from the list
back to the entry_value array (which is not sorted).
Send Add_Radio_Item Item_Value {Data_Value} {Rec_Value}
Integer iRec
- String
dVal - Integer
itm
Request_Find(integer mode integer entUpdtFlag)
FindEdit support behavior
- Integer
dataFile - Integer
ser# - Integer
dfrdState
Request_Superfind(integer mode)
FindEdit support behavior
- Integer
obj# - Integer
datafile
End_Construct_Object()
Fill_List at end of construct object
Set(integer iItem integer iState)
- integer
Select_State(integer iItem)
Bind_Data(integer File# Integer Field#)
Top_of_Panel()
created for Navigation support NoDoc=True
Bottom_of_Panel()
created for Navigation support
- integer
Item_Count()
when the DEO attaches to the server it expects item_count to
exist. Return 1, Radios always map to a single data field
- Integer
Item_Limit()
added for DEO support. It is always 0
- Integer
ProtoType_Object()
added for DEO / prototype object support. It is always self
Set(Integer iItem Integer hMsg)
added for 8.2 support. This now allows DD and non DD based radio objects to support
validation, entry and exit messages. This allows support of:
get/set item_entry_msg
get/set item_exit_msg
get/set item_validate_msg
with DDs these are rarely used.
- Integer
Item_Entry_msg(Integer iItem)
Set(Integer iItem Integer hMsg)
- Integer
Item_Exit_msg(Integer iItem)
Set(Integer iItem Integer hMsg)
- Integer
Item_Validate_msg(Integer iItem)
- integer
Item_Entry(integer msg# integer item#)
Item_entry/exit/validate are the non DD versions and are probably never called. Lifted from entitem.pkg
Normally, the dd versions of these will get called
- Integer
retVal
- integer
Item_Exit(integer msg# integer item#)
- Integer
retVal
- integer
Item_Validate(integer msg# integer item#)
- Integer
retVal
- Integer
Exec_Entry()
- Integer
iFail - Integer
hMsg
- Integer
Exec_Exit()
- Integer
iFail - Integer
hMsg
- integer
Exec_Validate()
- Integer
iFail - Integer
hMsg
- integer
Validate_Items(integer fg)
this is mostly lifted from val_mx.pkg. It's simpler because there is only one item
to validate.
- Integer
iFail - Integer
iOldVAI
- integer
OnRadioGroupEntering()
these two functions are called by radio objects when an entering or exting
event for the entire radio group. These trigger exiting and entering messages
- Integer
iFail
- integer
OnRadioGroupExiting()
- Integer
iFail