Started by krunch ·
2012-11-29 15:37 UTC ·
10 replies · SMF topic #1924
krunch
2012-11-29 15:37 UTC
Hi
In my memories there is a function to unwind a Dropdown, but I can't find it ..
Is it possible or do I mix with something else ??
krunch
2012-12-12 11:31 UTC
Hi
I have made that :
{2}
The combobox is extended when clicked, and reduced when it loses focus or modified
So is it possible to unwind (activate) the combobox when I also click on the '<4>' button ??
owenwengerd
2012-12-12 15:48 UTC
I don't believe there is any way to open a combo dropdown by lisp code. You can create your own dropdown as a modeless form and display that.
fred_tomke
2012-12-12 18:25 UTC
Hi, maybe a sendkey could solve that. You can open a dropdown by cursor down.
Regards, Fred
krunch
2012-12-12 19:07 UTC
Hi, thanks for this suggestion
You meant sendstring ?
I've tried this but it doesn't work .. Arrows keys are not standart characters
(dcl_Control_SetFocus ..combobox)
(dcl_SendString (chr 175))
fred_tomke
2012-12-12 23:22 UTC
Hi, no, I meant sendkey. Here is a sample I use for ESC:
(defun SENDKEY (strKeys / oWScript)
(if (setq oWScript (vlax-create-object "WScript.Shell"))
(progn
(vlax-invoke-method oWScript 'Sendkeys strKeys)
(vlax-release-object oWScript)
); progn
); if
); SENDKEY
(SENDKEY "{ESC}")
Regards, Fred
krunch
2012-12-13 10:15 UTC
It works !
I didn't know this "WScript.Shell" method (found a key list
{2}) ..
Thanks a lot for this great idea
velasquez
2012-12-13 20:35 UTC
author=Fred Tomke link=topic=1924.msg9459#msg9459 date=1355354558 wrote:
Hi, no, I meant sendkey. Here is a sample I use for ESC:
(defun SENDKEY (strKeys / oWScript)
(if (setq oWScript (vlax-create-object "WScript.Shell"))
(progn
(vlax-invoke-method oWScript 'Sendkeys strKeys)
(vlax-release-object oWScript)
); progn
); if
); SENDKEY
(SENDKEY "{ESC}")
Regards, Fred
Hi Fred,
In that situation (Sendkey "{ESC}") would be efficient?
Regards, velasquez
fred_tomke
2012-12-13 21:02 UTC
Hi, vela, this was only a sample thats why krunch looked for the key he needed.
Regards, Fred
fred_tomke
2012-12-13 21:04 UTC
Hi, krunch, thanks for the link!
Great to see that it helps.
Regards, Fred
krunch
2012-12-13 22:21 UTC
Thanks to you
---------------
In that situation (Sendkey "{ESC}") would be efficient?
This opens a combobox :
(dcl_Control_SetFocus ..combobox)
(SENDKEY "{DOWN}")