mirror of https://gitlab.com/basile.b/dexed.git
process input widget, only enabled when has a process
This commit is contained in:
parent
fef9cf673f
commit
8a0aa40f5f
|
@ -38,6 +38,7 @@ inherited CEProcInputWidget: TCEProcInputWidget
|
||||||
BevelOuter = bvNone
|
BevelOuter = bvNone
|
||||||
ClientHeight = 30
|
ClientHeight = 30
|
||||||
ClientWidth = 605
|
ClientWidth = 605
|
||||||
|
Enabled = False
|
||||||
TabOrder = 1
|
TabOrder = 1
|
||||||
object btnSend: TButton
|
object btnSend: TButton
|
||||||
Left = 530
|
Left = 530
|
||||||
|
|
|
@ -80,7 +80,11 @@ begin
|
||||||
// TODO-cfeature: process list, imply that each TCESynMemo must have its own runnable TProcess
|
// TODO-cfeature: process list, imply that each TCESynMemo must have its own runnable TProcess
|
||||||
// currently they share the CEMainForm.fRunProc variable.
|
// currently they share the CEMainForm.fRunProc variable.
|
||||||
if fProc <> nil then
|
if fProc <> nil then
|
||||||
|
begin
|
||||||
fProc.Terminate(1);
|
fProc.Terminate(1);
|
||||||
|
Panel1.Enabled:=false;
|
||||||
|
end
|
||||||
|
else Panel1.Enabled:=true;
|
||||||
|
|
||||||
txtExeName.Caption := 'no process';
|
txtExeName.Caption := 'no process';
|
||||||
fProc := nil;
|
fProc := nil;
|
||||||
|
|
Loading…
Reference in New Issue