Changeset 4


Ignore:
Timestamp:
Dec 3, 2009, 9:09:58 AM (15 years ago)
Author:
george
Message:
  • Modified: Minor changes.
Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/UMainForm.dfm

    r3 r4  
    1212  Font.Style = []
    1313  OldCreateOrder = False
     14  OnClose = FormClose
    1415  OnCreate = FormCreate
    1516  OnDestroy = FormDestroy
     
    3031      'ddress]." comment=".[get $i comment]." network=".[get $i network' +
    3132      '])}}'
    32     ExplicitTop = 327
    33     ExplicitWidth = 432
    3433  end
    3534  object Button1: TButton
     
    4241    TabOrder = 1
    4342    OnClick = Button1Click
    44     ExplicitLeft = 454
    45     ExplicitTop = 327
    4643  end
    4744  object PageControl1: TPageControl
     
    5552    object TabSheet1: TTabSheet
    5653      Caption = 'TabSheet1'
    57       ExplicitWidth = 531
    58       ExplicitHeight = 303
    5954      object Memo1: TMemo
    6055        Left = 0
     
    7166        ScrollBars = ssBoth
    7267        TabOrder = 0
    73         ExplicitLeft = 8
    74         ExplicitTop = 8
    75         ExplicitWidth = 544
    76         ExplicitHeight = 323
    7768      end
    7869    end
     
    8071      Caption = 'TabSheet2'
    8172      ImageIndex = 1
    82       ExplicitWidth = 531
    83       ExplicitHeight = 303
    8473      object Memo2: TMemo
    8574        Left = 0
     
    9685        ScrollBars = ssBoth
    9786        TabOrder = 0
    98         ExplicitLeft = 8
    99         ExplicitTop = 8
    100         ExplicitWidth = 544
    101         ExplicitHeight = 323
    10287      end
    10388    end
  • trunk/UMainForm.pas

    r2 r4  
    1919    procedure FormDestroy(Sender: TObject);
    2020    procedure Button1Click(Sender: TObject);
     21    procedure FormClose(Sender: TObject; var Action: TCloseAction);
    2122  private
    2223    procedure DoLineRecieve(Line: string);
     
    6162end;
    6263
     64procedure TMainForm.FormClose(Sender: TObject; var Action: TCloseAction);
     65begin
     66  LoaderForm.Close;
     67end;
     68
    6369procedure TMainForm.FormCreate(Sender: TObject);
    6470begin
  • trunk/URouterOS.pas

    r2 r4  
    8484var
    8585  I: Integer;
     86  Temp: string;
    8687begin
    8788  I := 1;
     
    115116  until I >= Length(Buffer);
    116117
     118  Temp := Trim(Line);
    117119  if Line <> '' then
    118120  case FConnectionState of
     
    131133    csConnectedCommandProcessing: begin
    132134      if Line[1] = '[' then begin
    133         if not FirstResponseBracket then FirstResponseBracket := True
    134         else ChangeState(csConnectedReady)
     135        //if not FirstResponseBracket then FirstResponseBracket := True
     136        //else ChangeState(csConnectedReady)
     137        if (Line[1] = '[') and (Temp[Length(Temp)] = '>') then
     138          ChangeState(csConnectedReady);
    135139      end else CommandResponse.Add(Line);
    136140    end;
    137141  end;
    138142end;
    139 
    140143
    141144destructor TRouterOS.Destroy;
Note: See TracChangeset for help on using the changeset viewer.