Class: dbGridDS
dfGrid
Class Hierarchy:
DFBaseEntryListEntryListWideList_WideListDataList_DataListdbGrid_dbGridDSDirect Known Subclasses:
dbGridDD, Class Definition
Properties
IntegerPrompt_Button_Mode
StringPrompt_Button_Value
Functions and Procedures
integerAuto_Create_Prompt_Button()
Construct_Object()
Create_Prompt_Button(Integer CreateMode)
Create a prompt Buttons. This was created so the process of creating
a prompt button object can be augmented.
Although a param is passed, it is ignored here (used in forms). This
checks all labels if auto-prompt is true, is a trailer prompt marker
exists (...) and if the column a prompt. If so, it sets the trailer
prompt marker (if it is not already there).
To disable this entire process set Prompt_Button_Mode to PB_PromptOff
0=auto, 1=make, 2=remove
CreateEmbeddedPrompts()
used to create automatic embedded prompt buttons. Called by end_construct_object
DoAutoFind()
changes to improve autofind logic.
integerEle_Prompt_Object(integer ele integer item#)
find the prompt object for the passed prototype obj and item
this augmented in DD to be a bit more fancy
End_Construct_Object()
If any items are checkboxes we also need to set their aspect.
We can't set these for the protoobject
because they won't get copied in to the real rows. However, setting
aspect for the actual table items (even if there are none) works.
Also, you must set this for every item because setting zero sets all other items.
Header_Mouse_Click(Integer Item#)
integerItem_Change(Integer iFromItem Integer iToItem)
changes to improve autofind logic. Do autofind before changing
integerRow_save()
changes to improve autofind logic. Before save do an autofind check for all items in row
Set(integer bState)
These two messages are maintained for backwards compatibility. Avoid
using these. Use Prompt_Button_Mode instead
Set(integer item#)
SkipFoundAdjust()
this was added as a bug fix in 12.1. It is possible to navigate into a skipfound item if you
are navigating from a blank grid row to an existing row. This happens because the runtime skipfound
logic checks the file buffer's status and this happens before the row navigation. Changing this in runtime
would be a deep change which could create side-effects. The safer fix here does a check after the item
change has occurred. It checks to see if the item has landed in an improper skipfound field. If it has it
tried to get out the field. This should workaround this issue with a minimum of side effects. You will only
see a change with skipfound fields.
References (1):