Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.clipper.visual-objects > #6478 > unrolled thread
| Started by | rkaplan328 <richard.d.kaplan@gmail.com> |
|---|---|
| First post | 2014-01-10 13:07 -0800 |
| Last post | 2014-01-10 19:22 -0800 |
| Articles | 4 — 3 participants |
Back to article view | Back to comp.lang.clipper.visual-objects
Forcing a combobox to open rkaplan328 <richard.d.kaplan@gmail.com> - 2014-01-10 13:07 -0800
Re: Forcing a combobox to open JohnMartens <martens@tennishulp.info> - 2014-01-10 22:59 +0100
Re: Forcing a combobox to open rkaplan328 <richard.d.kaplan@gmail.com> - 2014-01-10 17:59 -0800
Re: Forcing a combobox to open Sherlock <sherlock@sherlock.com.au> - 2014-01-10 19:22 -0800
| From | rkaplan328 <richard.d.kaplan@gmail.com> |
|---|---|
| Date | 2014-01-10 13:07 -0800 |
| Subject | Forcing a combobox to open |
| Message-ID | <6eeef97f-4482-4e69-bcd3-7843d9c3fec3@googlegroups.com> |
Can anyone propose a way to force the dropdown part of a combobox to open on demand (e.g. whenever the keystroke on the SLE part of the combobox meets a given criterion), without forcing the user to click the down-arrow icon? The keystrokes (alphabetic) can easily be captured with Window:EditChange() and Combobox:CurrentText, but I haven't seen a way of simulating a click on the down-arrow bit. Any help appreciated!
[toc] | [next] | [standalone]
| From | JohnMartens <martens@tennishulp.info> |
|---|---|
| Date | 2014-01-10 22:59 +0100 |
| Message-ID | <lapqfd$nq9$1@dont-email.me> |
| In reply to | #6478 |
I found this one: METHOD DropDownTroggle() CLASS ComboBox SendMessage(SELF:Handle(), CB_SHOWDROPDOWN, 1, 0) RETURN SELF John rkaplan328 schreef op 10-1-2014 22:07: > Can anyone propose a way to force the dropdown part of a combobox to open on demand (e.g. whenever the keystroke on the SLE part of the combobox meets a given criterion), without forcing the user to click the down-arrow icon? The keystrokes (alphabetic) can easily be captured with Window:EditChange() and Combobox:CurrentText, but I haven't seen a way of simulating a click on the down-arrow bit. Any help appreciated! >
[toc] | [prev] | [next] | [standalone]
| From | rkaplan328 <richard.d.kaplan@gmail.com> |
|---|---|
| Date | 2014-01-10 17:59 -0800 |
| Message-ID | <6ee9d5f5-d643-4f6a-9be1-b484e5a87b27@googlegroups.com> |
| In reply to | #6478 |
Excellent, thank you! But now, when the dropdown is shown, the mouse pointer disappears and the selected item is not highlighted in the dropdown. Any further suggestions?
[toc] | [prev] | [next] | [standalone]
| From | Sherlock <sherlock@sherlock.com.au> |
|---|---|
| Date | 2014-01-10 19:22 -0800 |
| Message-ID | <ebfdbf3d-7e85-4b12-b3cc-19a054245595@googlegroups.com> |
| In reply to | #6478 |
On Saturday, January 11, 2014 8:07:37 AM UTC+11, rkaplan328 wrote:
> Can anyone propose a way to force the dropdown part of a combobox to open on demand (e.g. whenever the keystroke on the SLE part of the combobox meets a given criterion), without forcing the user to click the down-arrow icon? The keystrokes (alphabetic) can easily be captured with Window:EditChange() and Combobox:CurrentText, but I haven't seen a way of simulating a click on the down-arrow bit. Any help appreciated!
METHOD DropDownTroggle() CLASS ComboBox
SendMessage(SELF:Handle(), CB_SHOWDROPDOWN, 1, 0)
self:Setfocus() // <=== why not try this..
RETURN SELF
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.clipper.visual-objects
csiph-web