what is the command to lock the size of a form in scar ?
basicly what i mean is that you lock the size so you cannot draw the form into less or larger size.
what is the command to lock the size of a form in scar ?
basicly what i mean is that you lock the size so you cannot draw the form into less or larger size.
you could make the formtype a bsdialog or something of the sort which does not allow for resizing
SCAR Tutorials: The Form Tutorial | Types, Arrays, and Classes
Programming Projects: NotePad | Tetris | Chess
I dont want to make a dialog, i want the main form to not allow rezising what is the command for this ?
You can do this trick with Constraints:
Is it what you want?SCAR Code:var
form: TForm;
function buildForm: Boolean;
begin
form:= CreateForm;
form.SetBounds(0, 0, 500, 250);
form.Constraints.MaxHeight:= 250;
form.Constraints.MinHeight:= 250;
form.Constraints.MaxWidth:= 500;
form.Constraints.MinWidth:= 500;
form.Position:= poScreenCenter;
Result:= (form.ShowModal = mrOK);
end;
function loadForm: Variant;
var
v: TVariantArray;
begin
Result:= ThreadSafeCall('buildForm', v);
end;
begin
loadForm;
FreeForm(form);
end.
In the form editer there is a little box on the left that's called BorderStyle
SCAR Code:BorderStyle := bsSingle;
SRL's F.A.Q. (Error fixes) | How to Convert SRL-5 Scripts to SRL-6 | Draynor Chop N' Bank (RS3)| AIO Superheater (RS3)
T - E - A - MTogether Everyone Achieves More
Aha. very much couldn't remember the one that didn't allow resizing without taking away the buttons. At least I knew what I meant.
SCAR Tutorials: The Form Tutorial | Types, Arrays, and Classes
Programming Projects: NotePad | Tetris | Chess
You just pick a bs that doesn't have size in it. Like bsToolWindow bsSingle and such.
Join the IRC! irc.rizon.net:6667/srl | SQLite (0.99rc3+) | SRL Doc | Simba Doc | Extra Simba Libraries (openSSL & sqlite3)
Originally Posted by #srl
"A programmer is just a tool which converts caffeine into code"
SRL's F.A.Q. (Error fixes) | How to Convert SRL-5 Scripts to SRL-6 | Draynor Chop N' Bank (RS3)| AIO Superheater (RS3)
T - E - A - MTogether Everyone Achieves More
Most of them are in Delphi. But if you press control space and type bs you will find a list of them (likewise for fontstyles, using fs).
Join the IRC! irc.rizon.net:6667/srl | SQLite (0.99rc3+) | SRL Doc | Simba Doc | Extra Simba Libraries (openSSL & sqlite3)
Originally Posted by #srl
"A programmer is just a tool which converts caffeine into code"
SRL's F.A.Q. (Error fixes) | How to Convert SRL-5 Scripts to SRL-6 | Draynor Chop N' Bank (RS3)| AIO Superheater (RS3)
T - E - A - MTogether Everyone Achieves More
There are currently 1 users browsing this thread. (0 members and 1 guests)