openedge - Which event should be applied to the combo-box in prorgress 10.2b, so that it drop down -
which event should applied combo-box in prorgress 10.2b, drop down. default, cursor down, need open space, , can not figure out how it.
i've managed creating selection list that's copy of list-items in combo-box.
here's code. assume combo called c , frame called f. works if have widget directly under combo.
def var hsl handle no-undo. /* mandatory variable definition in program */ on ' ' of c do: create selection-list hsl assign frame = frame f:handle col = c:col in frame f row = c:row in frame f + 1 list-items = c:list-items in frame f visible = yes sensitive = true triggers: on return persistent run pichoose. on leave persistent run pileave. end triggers. apply 'entry' hsl. end. procedure pichoose: assign c:screen-value in frame f = hsl:screen-value. assign c. apply 'leave' self. end procedure. procedure pileave: delete object hsl no-error. end procedure. note if you're using list-item-pairs, list-item-pairs attribute should used i'm using list-items.
hope helps!
Comments
Post a Comment