-
Notifications
You must be signed in to change notification settings - Fork 0
/
UHelp_1.inc
35 lines (29 loc) · 1.21 KB
/
UHelp_1.inc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
{ KOL MCK } // Do not remove this line!
procedure ReadSetting;
begin
setting.Mode := ifmRead;
// setting.Section := 'KBBI '+ VERSI;
FHelp.Form.Width := setting.ValueInteger('fhelp-width',380);
FHelp.Form.Height := setting.ValueInteger('fhelp-height',400);
FHelp.Form.Top := setting.ValueInteger('fhelp-top',(ScreenHeight-FHelp.form.Height) div 2);
FHelp.Form.Left := setting.ValueInteger('fhelp-left',(ScreenWidth-FHelp.form.Width) div 2);
end;
procedure NewFHelp( var Result: PFHelp; AParent: PControl );
begin
{$IFDEF KOLCLASSES}
Result := PFHelp.Create;
{$ELSE OBJECTS}
New( Result, Create );
{$ENDIF KOL CLASSES/OBJECTS}
Result.Form := NewForm( AParent, 'FHelp' ); //.SetPosition( 516, 192 );
Result.Form.Add2AutoFree( Result );
//Result.Form.SetClientSize( 360, 358 );
ReadSetting;
Result.Form.OnResize := Result.KOLForm1Resize;
Result.REHelp := NewRichEdit( Result.Form, [ eoMultiline, eoNoHScroll, eoReadonly ] ).SetAlign ( caClient );
Result.REHelp.HasBorder := FALSE;
Result.REHelp.Text := 'RichEdit1'+#13+#10;
Result.REHelp.Color := TColor($C5FBFC);
Result.Form.CenterOnParent;
Result.KOLForm1FormCreate( Result );
end;