Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

How to... I'm new to Delphi

JPDJPD Member Posts: 28
Delphi 6.

How to align text in TEdit to the right?
How to assign to a button a key press?
pleeeas...

Thank you.

Comments

  • zibadianzibadian Member Posts: 6,349
    : Delphi 6.
    :
    : How to align text in TEdit to the right?
    : How to assign to a button a key press?
    : pleeeas...
    :
    : Thank you.
    :
    :
    Please, ask a question only on one board. Many of us look at all the relevant boards.
  • netgertnetgert Member Posts: 331
    : Delphi 6.
    :
    : How to align text in TEdit to the right?
    : How to assign to a button a key press?
    : pleeeas...
    :
    : Thank you.
    :
    :

    Well, if you're at the very beginning then you should look at tutorials found over the internet. Delphi 6 has one in the help file too. It's called "Texteditor Tutorial" or something like that.

    For TButton press (or click) use the OnClick event, for keypresses is OnKeyPress (normal keyboard key pressed), OnKeyDown (virtual key pressed down, use VK_xxx to check) and OnKeyUp (virtual key released). I don't have Delphi at my hand right now so i hope this is right.

    [hr][red][italic][b]N[/b][/red][blue]et[/blue][red][b]G[/b][/red][blue]ert[/italic][/blue][hr]

Sign In or Register to comment.