How to make Form movable if BorderStyle = bsNone? - Programmers Heaven

Howdy, Stranger!

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

Categories

Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

How to make Form movable if BorderStyle = bsNone?

err0rerr0r Posts: 7Member
[b][red]This message was edited by err0r at 2006-4-9 13:41:43[/red][/b][hr]
subj.
and 1 more thing:
is there any way to limit EditBox only to numbers ?


Comments

  • zibadianzibadian Posts: 6,349Member
    : [b][red]This message was edited by err0r at 2006-4-9 13:41:43[/red][/b][hr]
    : subj.
    : and 1 more thing:
    : is there any way to limit EditBox only to numbers ?
    :
    :
    :
    EditBox: write a OnKeyPressed() event, which throws away the key (set Key to #0) if the Key is a non-valid character.
  • err0rerr0r Posts: 7Member
    : : [b][red]This message was edited by err0r at 2006-4-9 13:41:43[/red][/b][hr]
    : : subj.
    : : and 1 more thing:
    : : is there any way to limit EditBox only to numbers ?
    : :
    : :
    : :
    : EditBox: write a OnKeyPressed() event, which throws away the key (set Key to #0) if the Key is a non-valid character.
    :
    thanks again :)
  • jamesb800jamesb800 Posts: 105Member
    : [b][red]This message was edited by err0r at 2006-4-9 13:41:43[/red][/b][hr]
    : subj.
    : and 1 more thing:
    : is there any way to limit EditBox only to numbers ?
    :
    :
    :

    You can use this to move the form:
    [code]
    procedure TForm1.FormMouseDown(Sender: TObject; Button: TMouseButton;
    Shift: TShiftState; X, Y: Integer);
    begin
    ReleaseCapture;
    Form1.perform(WM_syscommand, $F012, 0);
    end;
    [/code]

    James

  • err0rerr0r Posts: 7Member
    : : [b][red]This message was edited by err0r at 2006-4-9 13:41:43[/red][/b][hr]
    : : subj.
    : : and 1 more thing:
    : : is there any way to limit EditBox only to numbers ?
    : :
    : :
    : :
    :
    : You can use this to move the form:
    : [code]
    : procedure TForm1.FormMouseDown(Sender: TObject; Button: TMouseButton;
    : Shift: TShiftState; X, Y: Integer);
    : begin
    : ReleaseCapture;
    : Form1.perform(WM_syscommand, $F012, 0);
    : end;
    : [/code]
    :
    : James
    :
    :
    Thanks!
Sign In or Register to comment.