Class: cSigCJPropertyGridComboFormItem

Module location: cSigCJPropertyGrid.pkg line 1946 (view source)

--------------------------------------------------- Class : cSigCJPropertyGridComboFormItem Superclass : cSigCJPropertyGridItem Package : cSigCJPropertyGrid.pkg Mixins : cSigCJPropertyGridItemButton_Mixin Description : Property Grid Item with Drop Down ComboForm Properties : psLabel (String) psHelpText (String) psToolTip (String) pbCreateExpanded (Boolean) pbLabelEmboldened (Boolean) peItemType (Integer) pvValue (Variant) pbDefaultAsInitialValue (Boolean) pvDefaultValue (Variant) pvInitialValue (Variant) pvTag (Variant) pbHidden (Boolean) pbReadOnly (Boolean) pbPassword_State (Boolean) pbCapslock_State (Boolean) piForm_Margin (Integer) piValueBackgroundColor (Integer) psButtonCaption (String) pbButtonEnabled (Boolean) psButtonImage (String) piButtonWidth (Integer) psButtonTooltip (String) Events : OnClick OnChange OnEditAfter OnMoveItemDataIn OnMoveItemDataOut OnAddLookupItems Methods : Procedure Set PropertyItemMask (String llMask String llLiteral Variant llPrompt) Procedure Set LookupItemImage (Integer iItemIndex String sImage) Procedure Set LookupItemData (Integer iItemIndex Integer iItemData) Procedure AddLookupItem (String sDescription Integer iItemData String sImage Variant vCode) Function CodeFromDescription (String sDescription Boolean ByRef bFound Returns Variant) Function ItemDataFromDescription (String sDescription Boolean ByRef bFound Returns Integer) Function DescriptionFromCode (Variant vCode Boolean ByRef bFound Returns String) Procedure ComboDeleteItems Notes : To Do : ---------------------------------------------------

Class Hierarchy:

DFCOMAUTOMATIONOBJECTcComAutomationObjectcSigCjComPropertyGridItemcSigCJPropertyGridItemcSigCJPropertyGridComboFormItem

Mixins:

cSigCJPropertyGridItemButton_Mixin,

Class Definition

Properties

tdGridItemSelectionValue[]ptaGridItemSelectionValue

Functions and Procedures

AddLookupItem(String sDescription Integer iItemData String sImage Variant vCode)
--------------------------------------------------- Procedure : AddLookupItem Scope : Public Paramaters : sCaption, iData, sImage, vCode Returns : None Purpose : 'Registers' an item for inclusion in list of item constraints (lookup values) Notes : vCode is added because it could be that the developer wants to display a descriptive value whilst mapping to a code value in the background (the code being the value that ultimately will be saved to the database) ---------------------------------------------------
BindToDataBase(Integer hFile Integer iField)
Inherited from cSigCJPropertyGridItem
--------------------------------------------------- Function : BindToDataBase Scope : Public Paramaters : Integer hFile Integer iField Returns : None Purpose : Forward Send, but then because this is a combo item, see if there is a validation table for this field If so, set the lookup items with the values from the validation table Notes : Set pbCapslock_State to False if there is a codevalidation table. It may be a capslock field, but this will be for the code, not the description (that we will be displaying) ---------------------------------------------------
VariantCodeFromDescription(String sDescription Boolean ByRef bFound)
--------------------------------------------------- Function : CodeFromDescription Scope : Public Paramaters : sDescription, bFound (byref) Returns : Variant (vCode) Purpose : If you have the current value of an property item and you know this is one of a list of constraints you can call this function to return the 'Code' value that is associated with this 'Description' value Notes : bFound is passed by reference and tells the developer if the value that they were looking for was found or not. You can't rely on a return value of 0 (or blank) as an indication of whether it was found because these may be valid values ---------------------------------------------------
ComboDeleteItems()
--------------------------------------------------- Procedure : ComboDeleteItems Scope : Public Method Paramaters : None Returns : None Purpose : Can be used to clear all of a comboforms data items Notes : ---------------------------------------------------
IntegerConstraintCodeComparison(tdGridItemSelectionValue tCode1 tdGridItemSelectionValue tCode2)
--------------------------------------------------- Function : ConstraintCodeComparison Scope : Private Paramaters : tdGridItemSelectionValue x2 (for comparison) Returns : Integer Purpose : To compare the Code elements of 2 structs. Notes : Used internally from DescriptionFromCode ---------------------------------------------------
IntegerConstraintDescriptionComparison(tdGridItemSelectionValue tDesc1 tdGridItemSelectionValue tDesc2)
--------------------------------------------------- Function : ConstraintDescriptionComparison Scope : Private Paramaters : tdGridItemSelectionValue x2 (for comparison) Returns : Integer Purpose : To compare the Description elements of 2 structs. Notes : Used internally from CodeFromDescription and ItemDataFromDescription ---------------------------------------------------
Construct_Object()
Inherited from cSigCJPropertyGridItem
StringDescriptionFromCode(Variant vCode Boolean ByRef bFound)
--------------------------------------------------- Function : DescriptionFromCode Scope : Public Paramaters : vCode, bFound (byref) Returns : sDescription Purpose : If a property grid item has a combo form with descriptions and associated code values then you can call this function to determine the description value for a specified code. This is most useful when populating the grid from a database where the raw data is a code value but you wish to show a descriptive value in the control (think dbcomforms) Notes : bFound is passed by reference and tells the developer if the value that they were looking for was found or not. You can't rely on a return value of 0 (or blank) as an indication of whether it was found because these may be valid values ---------------------------------------------------
DoAddLookupItems()
--------------------------------------------------- Procedure : DoAddLookupItems Scope : Private Paramaters : None Returns : None Purpose : Called from Private.Create. Adds any lookup items to the list of constraints Notes : Called internally. Developer does not need to concern themself with this ---------------------------------------------------
End_Construct_Object()
Inherited from cSigCJPropertyGridItem
IntegerItemDataFromDescription(String sDescription Boolean ByRef bFound)
--------------------------------------------------- Function : ItemDataFromDescription Scope : Public Paramaters : sDescription, bFound (byref) Returns : Integer (iItemData) Purpose : If you have the current value of an property item and you know this is one of a list of constraints you can call this function to return the iItemData value that is associated with this 'Description' value Notes : bFound is passed by reference and tells the developer if the value that they were looking for was found or not. You can't rely on a return value of 0 (or blank) as an indication of whether it was found because these may be valid values ---------------------------------------------------
MoveItemDataToDatabase()
Inherited from cSigCJPropertyGridItem
OnAddLookupItems()
--------------------------------------------------- Procedure : OnAddLookupItems Scope : Public Event Paramaters : None Returns : None Purpose : Intended that you would call "Send AddLookupItem" from this event to populate the combo Notes : If the item is bound to a data field that has a Field_Table_Object the combo will automatically be populated. If you want to add images you should forward Send OnAddLookupItems and then add the images ---------------------------------------------------
Private.Create(Handle hoParent Boolean bRecursive)
Inherited from cSigCJPropertyGridItem
ReadItemFromDatabase()
Inherited from cSigCJPropertyGridItem
--------------------------------------------------- Function : ReadItemFromDatabase Scope : Public Paramaters : None Returns : None Purpose : Forward Send, but then because this is a combo item, see if we have a description that matches our value If so, display this instead ---------------------------------------------------
Set(Integer iItemIndex String sImage)
Inherited from cSigCJPropertyGridItemButton_Mixin
--------------------------------------------------- Procedure : Set LookupItemImage Scope : Public Paramaters : Integer iItemIndex String sImage Returns : None Purpose : Sets icon index for specified lookup item. Notes : MUST be called AFTER AddLookupItem ---------------------------------------------------
Set(Integer iItemIndex Integer iItemData)
Inherited from cSigCJPropertyGridItemButton_Mixin
--------------------------------------------------- Procedure : Set LookupItemData Scope : Public Paramaters : Integer iItemIndex Integer iItemData Returns : None Purpose : Sets item data for specified lookup item. Notes : MUST be called AFTER AddLookupItem ---------------------------------------------------

Instances

oCtgry_CaptionBaroCalendar_Properties.pkg67
oItem_Address1oPropertyGrid_Container.pkg45
oItem_Address2oPropertyGrid_Container.pkg49
oItem_Address3oPropertyGrid_Container.pkg53
oItem_Address4oPropertyGrid_Container.pkg57
oItem_Admin_PasswordoPropertyGrid_Container.pkg137
oItem_Allow_Amend_DateoPropertyGrid_Container.pkg94
oItem_CategoriesoCalendar_Properties.pkg156
oItem_ClickToAddoCalendar_Properties.pkg276
oItem_ClickToAddTextoCalendar_Properties.pkg290
oItem_CompressoCalendar_Properties.pkg438
oItem_Customer_NooPropertyGrid_Container.pkg219
oItem_Default_PriceoPropertyGrid_Container.pkg133
oItem_DialogsoCalendar_Properties.pkg142
oItem_HeightoPropertyGrid_Container.pkg200
oItem_IP_CreateoCalendar_Properties.pkg339
oItem_IPEoCalendar_Properties.pkg353
oItem_IPE_F2oCalendar_Properties.pkg371
oItem_IPE_MouseoCalendar_Properties.pkg385
oItem_IPE_ResizeoCalendar_Properties.pkg357
oItem_IPE_TaboCalendar_Properties.pkg399
oItem_LastDayEndoCalendar_Properties.pkg557
oItem_LunchEndoCalendar_Properties.pkg599
oItem_LunchStartoCalendar_Properties.pkg585
oItem_MinutesoCalendar_Properties.pkg325
oItem_NameoPropertyGrid_Container.pkg38
oItem_Order_NooPropertyGrid_Container.pkg224
oItem_OutlookGlyphsoCalendar_Properties.pkg452
oItem_PostcodeoPropertyGrid_Container.pkg61
oItem_RemindersoCalendar_Properties.pkg131
oItem_ShadeLunchoCalendar_Properties.pkg571
oItem_ShortLastDayoCalendar_Properties.pkg543
oItem_Show_DateoCalendar_Properties.pkg82
oItem_Show_Date_NavoCalendar_Properties.pkg93
oItem_Show_View_NavoCalendar_Properties.pkg104
oItem_ShowBaroCalendar_Properties.pkg71
oItem_SizeoPropertyGrid_Container.pkg142
oItem_SystemDateoPropertyGrid_Container.pkg90
oItem_TelephoneoPropertyGrid_Container.pkg82
oItem_TitleoCalendar_Properties.pkg624
oItem_ToolTipsoCalendar_Properties.pkg262
oItem_Use_IconsoCalendar_Properties.pkg19
oItem_Use_IconsoCalendar_Properties.pkg33
oItem_Use_IconsoCalendar_Properties.pkg47
oItem_WidthoPropertyGrid_Container.pkg209
oItem_WorkDayEndoCalendar_Properties.pkg529
oItem_WorkDayStartoCalendar_Properties.pkg515
oScaleTime_DayEndoCalendar_Properties.pkg206
oScaleTime_DayStartoCalendar_Properties.pkg192
oScaleTime_UseoCalendar_Properties.pkg220

References (7):

ModuleContaining SymbolLine
oCalendar_Properties.pkgoItem_TimeScale170
oCalendar_Properties.pkgoItem_ViewType234
oCalendar_Properties.pkgoItem_TimeMark304
oCalendar_Properties.pkgoItem_FirstDay414
oCalendar_Properties.pkgoItem_EndDate466
oCalendar_Properties.pkgoItem_Clocks487
oPropertyGrid_Container.pkgoItem_Country66