ShortCutKey without button

gonzy1981gonzy1981 Member Posts: 156
It's posible to do a ShortCutKey without button. Because i try to do it with button doing it very small but it's posible to click it and i don't want it.
Thanks

Comments

  • MBergerMBerger Member Posts: 413
    To do this, i always use a menubutton which in the OnInitForm i hide behind another control ( by giving it the same xpos and ypos as the control to hide it behind ), or give it negative coordinates. This way it is still visible in design, but not at runtime.
  • kapamaroukapamarou Member Posts: 1,152
    You could try removing the borders and captions so that it is "invisible" or you could hide it behind some other control...
  • krikikriki Member, Moderator Posts: 9,110
    I do it this way:
    I make a normal button in design.

    On OnOpenForm-trigger, I put it to X=Y=1 and LENGTH=WIDTH=1.
    This way it is so small it is not visible.
    Regards,Alain Krikilion
    No PM,please use the forum. || May the <SOLVED>-attribute be in your title!


Sign In or Register to comment.