Highlighted
Absent Member.
Absent Member.
1158 views

[archive] A fast question about expand a combo box

[Migrated content. Thread originally posted on 15 December 2009]

Hello all,

There is a way to expand a drop down combo box by code? I mean, like pushing F4 with the combo box focused

Thanks afterwards.
0 Likes
3 Replies
Highlighted
Absent Member.
Absent Member.

RE: [archive] A fast question about expand a combo box

try this code :

working-st....
77 hwnd pic x(4) comp-n.


code:
call "user32.dll".
inquire Screen1-Cm-1(
call "SendMessageA" using by value hwnd,
256, | WM_KEYDOWN
115, | VK_F4
0.

PS-> set WIN_F4_DROPS_COMBOBOX environment variable to 1 :cool:
0 Likes
Highlighted
Absent Member.
Absent Member.

RE: [archive] A fast question about expand a combo box

Thanks nitallica! I was looking for something in cobol to do it, but we'll study your proposition

Thanks man
0 Likes
Highlighted
Absent Member.
Absent Member.

RE: [archive] A fast question about expand a combo box

You can use the cobol W$KEYBUF routine to send key presses.

Paul
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.