Page History
...
The Match Anywhere value modifies autofill behavior slightly. Normally, as the user types, the typed text is matched against all autofill columns (See value <2, 12> above) to find any strings that begin with the same text. When this is set to 1, however, the typed text is allowed to be found anywhere within a string. When this is enabled, note that autofill will only help the user find matching rows but will not autofill the text in the editline unless the match is at the beginning of a string.
The Row Height value customizes the height of each row in the combo dropdown.
Example
Code Block |
---|
// Subclass my editline control first CtrlId = @Window:".EDITLINE" Handle = Get_Property(CtrlId, "HANDLE") rv = Send_Message(@Window:".OLE_SUBCLASS", "OLE.Subclass", Handle, CtrlId) // Setup a combo drop down FirstNames = "Don" :@STM:"Paul" :@STM:"Frank":@STM:"Bob" :@STM:"Kevin" LastNames = "Bakke":@STM:"Simonsen":@STM:"Tomeo":@STM:"Fernandes":@STM:"Fournier" ComboDropDown = "" ComboDropDown<1> = 1 ComboDropDown<2, 1> = "First Name":@TM:"Last Name" ComboDropDown<2, 2> = "L":@STM:100:@TM:"L" ComboDropDown<2, 3> = FirstNames:@TM:LastNames ComboDropDown<2, 4> = 2 ;// column 2 contains the values we care about ComboDropDown<2, 5> = 1 ;// auto fill on ComboDropDown<2, 6> = 0 ;// case sensitive off ComboDropDown<2, 7> = 10 ;// 10 visible rows max ComboDropDown<2, 8> = 0 ;// Don't fire the OnOptionClick ComboDropDown<2, 9> = 1 ;// Reduce the list to partial matches ComboDropDown<2, 10> = 0 ;// Only show the drop down when the user types ComboDropDown<2, 11> = 0 ;// Do not use LIST Format ComboDropDown<2, 12> = 1 ;// Autofill on first names ComboDropDown<2, 13> = 1 ;// Hide dropdown when user clears cell ComboDropDown<2, 14> = 0 ;// Let navigation keys show the drop down ComboDropDown<2, 15> = 0 ;// Show the drop down regardless of the contents ComboDropDown<2, 16> = 0 ;// Show the drop down during autofill ComboDropDown<2, 17> = 1 ;// Remove selection when user backspaces/deletes ComboDropDown<2, 18> = 0 ;// Show Popup while in read only mode ComboDropDown<2, 19> = 1 ;// Show Popup When Navigating ComboDropDown<2, 20> = 1 ;// Always Tab Out on Enter ComboDropDown<2, 21> = -1 ;// Always show the dropdown above when close to the screen bottom Convert "." to ";" in CtrlId Set_Property(@Window:".OLE_SUBCLASS", "OLE.Combo[":CtrlId:"]", ComboDropDown) |
...