move button

AbhishekAbhishek Member 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

  • Revolution1210Revolution1210 Member Posts: 161
    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
  • AbhishekAbhishek Member 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 )
  • Revolution1210Revolution1210 Member Posts: 161
    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
  • Yaroslav_GaponovYaroslav_Gaponov Member Posts: 158
    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.
  • Revolution1210Revolution1210 Member Posts: 161
    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
  • Yaroslav_GaponovYaroslav_Gaponov Member Posts: 158
    Yes, you right but i hope it's not a big problem for inquiring :wink:
    Or not?
  • Miklos_HollenderMiklos_Hollender Member Posts: 1,598
    Here's how: http://mibuso.com/dlinfo.asp?FileID=354

    Though I wonder what might be the business case :)
Sign In or Register to comment.