mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-05 08:10:32 +02:00
* Fix bug #8026.
+ Add history button to evaluate today. git-svn-id: trunk@6639 -
This commit is contained in:
parent
4fc3703900
commit
74704b742b
@ -140,6 +140,7 @@ const
|
|||||||
hidRunDir = 209;
|
hidRunDir = 209;
|
||||||
hidBreakpointDialogCond = 210;
|
hidBreakpointDialogCond = 210;
|
||||||
hidPrinterDevice = 211;
|
hidPrinterDevice = 211;
|
||||||
|
hidEvaluate = 212;
|
||||||
|
|
||||||
{ Command constants }
|
{ Command constants }
|
||||||
cmShowClipboard = 201;
|
cmShowClipboard = 201;
|
||||||
|
@ -35,6 +35,9 @@ begin
|
|||||||
new(expr_input,init(r,255));
|
new(expr_input,init(r,255));
|
||||||
insert(expr_input);
|
insert(expr_input);
|
||||||
|
|
||||||
|
r.assign(size.x-20,3,size.x-18,4);
|
||||||
|
insert(new(Phistory,init(r,expr_input,hidEvaluate)));
|
||||||
|
|
||||||
r.assign(2,2,size.x-20,3);
|
r.assign(2,2,size.x-20,3);
|
||||||
new(l,init(r,'E~x~pression:',expr_input));
|
new(l,init(r,'E~x~pression:',expr_input));
|
||||||
insert(l);
|
insert(l);
|
||||||
|
@ -5927,6 +5927,10 @@ begin
|
|||||||
begin
|
begin
|
||||||
LineNo:='1';
|
LineNo:='1';
|
||||||
Lines:=GetLineCount;
|
Lines:=GetLineCount;
|
||||||
|
{Linecount can be 0, but in that case there still is a cursor blinking in top
|
||||||
|
of the window, which will become line 1 as soon as sometype hits a key.}
|
||||||
|
if lines=0 then
|
||||||
|
lines:=1;
|
||||||
if EditorDialog(edGotoLine, @GotoRec) <> cmCancel then
|
if EditorDialog(edGotoLine, @GotoRec) <> cmCancel then
|
||||||
begin
|
begin
|
||||||
Lock;
|
Lock;
|
||||||
|
Loading…
Reference in New Issue
Block a user