Hi,
Having problem figuring out how to send a "move element" keyin from a pushbutton on a dialog. This is the resource definition:DItem_PushButtonRsc PUSHBUTTONID_MoveFlag ={ NOT_DEFAULT_BUTTON, NOHELP, MHELP, NOHOOK, NOARG, CMD_MOVE , MCMD, "element", "~Move"};
It does not appear there is a 1:1 map from cmdlist.h to keyin commands.Thanks for the help!v08.11.09.908, VS2005
Nabil Kherouf said:It does not appear there is a 1:1 map from cmdlist.h to keyin commands
Often, the first command is a prelude to a more complex command. It may not be implemented (i.e. MOVE alone may do nothing).
MOVE
CMD_MOVE CMD_MOVE_LEFT CMD_MOVE_RIGHT CMD_MOVE_UP CMD_MOVE_DOWN CMD_MOVE_FENCE CMD_MOVE_ACS CMD_MOVE_PARALLEL CMD_MOVE_PARALLEL_DISTANCE CMD_MOVE_PARALLEL_KEYIN CMD_MOVE_PARALLEL_ICON
Additionally, try recording a VBA macro while you exercise the MOVE command, and see what the macro recorder creates.
I've noticed over the years that some commands have moved from cmdlist.h to another header, which may not be published.
cmdlist.h
Regards, Jon Summers LA Solutions