move button

Abhishek
Abhishek Posts: 68
any one can help me actualy i want to move command with the help of keybord.thanx in advance :-k
Abhishek Srivastava
Technical Consultant
New Delhi(India )

Comments

  • Do you mean you want move form controls whilst in design mode with the aid of the keyboard?..... ..this would be nice, however, it is not possible :(
    Ian

    www.NextEqualZero.com
    A technical eye on Dynamics NAV
  • Abhishek
    Abhishek Posts: 68
    no actualy i want to move button after run the form.with the help of up,down,left,right key.
    Abhishek Srivastava
    Technical Consultant
    New Delhi(India )
  • ahh right. You can programatically control the position of buttons at run time. However, it is not easy to capture events such as cursor keypresses and process these through the normal form triggers.
    Ian

    www.NextEqualZero.com
    A technical eye on Dynamics NAV
  • Hi

    It is possible...just use a Menu Button control for hook keyboard :D

    Create a menu with items like UP,DOWN,LEFT,RIGHT and depend a ShortCutKey property. In OnPush functions add CurrForm.ctrlButton.XPOS := CurrForm.ctrlButton.XPOS -(+) StepX and CurrForm.ctrlButton.YPOS := CurrForm.ctrlButton.YPOS -(+) StepY.
  • Hi

    It is possible...just use a Menu Button control for hook keyboard :D

    Create a menu with items like UP,DOWN,LEFT,RIGHT and depend a ShortCutKey property. In OnPush functions add CurrForm.ctrlButton.XPOS := CurrForm.ctrlButton.XPOS -(+) StepX and CurrForm.ctrlButton.YPOS := CurrForm.ctrlButton.YPOS -(+) StepY.

    That's a good idea, you can't use the cursor keys as shortcuts though unfortunately.
    Ian

    www.NextEqualZero.com
    A technical eye on Dynamics NAV
  • Yes, you right but i hope it's not a big problem for inquiring :wink:
    Or not?
  • Here's how: http://mibuso.com/dlinfo.asp?FileID=354

    Though I wonder what might be the business case :)