BVB Source Codes

MVC framework based on Delphi examples Show ChildrenView.pas Source code

Return Download MVC framework based on Delphi examples: download ChildrenView.pas Source code - Download MVC framework based on Delphi examples Source code - Type:.pas
  1. unit ChildrenView;
  2.  
  3. // This code was generated by the EasyMVC OTA Wizard
  4. // www.eazisoft.com
  5.  
  6. interface
  7. uses
  8.   Windows, Messages, SysUtils, Classes, Graphics,
  9.   Controls, StdCtrls, ComCtrls, ExtCtrls, Forms, patterns;
  10.  
  11. type
  12.   TViewChildren = class(TFRAME, IObserver)
  13.     ComboBox1: TComboBox;
  14.     Edit1: TEdit;
  15.     Edit2: TEdit;
  16.     Button1: TButton;
  17.     Label2: TLabel;
  18.     Label1: TLabel;
  19.     Label3: TLabel;
  20.     Label4: TLabel;
  21.     Memo1: TMemo;
  22.     Timer1: TTimer;
  23.     Label5: TLabel;
  24.     procedure Timer1Timer(Sender: TObject);
  25.   private
  26.     { Private declarations }
  27.     procedure UpdateView(o: TObject); //from IObserver
  28.   public
  29.     { Public declarations }
  30.     procedure setEventHandler(ANotifyEvent: TNotifyEVent; const AMouseEvent: TMouseEvent = nil);
  31.     function getCommand: string;
  32.   end;
  33.  
  34.  
  35. implementation
  36. uses
  37.   commandlist, indexDef;
  38. {$R *.dfm}
  39.  
  40. function TViewChildren.getCommand: string;
  41. begin
  42.   result := ComboBox1.Text;
  43. end;
  44.  
  45. procedure TViewChildren.setEventHandler(ANotifyEvent: TNotifyEVent; const AMouseEvent: TMouseEvent = nil);
  46. begin
  47.   Button1.OnClick := ANotifyEvent;
  48. end;
  49.  
  50. procedure TViewChildren.UpdateView(o: TObject);
  51. var
  52.   p: PResponseInfo;
  53. begin
  54.   {write your code here}
  55.     {write your code here}
  56.   if not assigned(o) and not (o is TCommand) then
  57.     exit;
  58.  
  59.   p := (o as TCommand).getParamrecord;
  60.   if assigned(p) then
  61.   begin
  62.     Edit1.Text := p.CMD;
  63.     Edit2.Text := p.Response;
  64.     Memo1.Lines.Text := p.ActualMean;
  65.     timer1.Enabled := (p.CMD = CMD_NODE_SELECT);
  66.     if p.CMD = CMD_CLEAR_SELECTION then
  67.       Edit2.Color := clWindow;
  68.   end;
  69.  
  70.   update;
  71.   freeAndNil(o);
  72. end;
  73.  
  74. procedure TViewChildren.Timer1Timer(Sender: TObject);
  75. begin
  76.   if Edit2.Color = clWindow then
  77.     Edit2.Color := clRed
  78.   else
  79.     Edit2.Color := clWindow;
  80. end;
  81.  
  82. end.
  83.  
  84.  
downloadChildrenView.pas Source code - Download MVC framework based on Delphi examples Source code
Related Source Codes/Software:
Delphi computer training school management system source code - A training management system for computer training... 2012-02-18
FLEX+Delphi+Java+C# combined to create chat rooms - This is a comprehensive real life examples, it is ... 2012-02-18
DELPHI by URL trigger implementation of registration agreement - A deal registration tool written in DELPHI source ... 2012-02-18
Delphi computer machine service system source code - Do you have a source, or even not registered softw... 2012-02-18
Delphi source SQL Server Query Analyzer and simulation code - More simple than SQLSERVER's Query Analyzer, you c... 2012-02-18
Delphi 3D brick breaker PlateBall source program - A very interesting and slightly more difficult gam... 2012-02-18
SMS messaging platform and interface for Delphi source code - One formerly was SP partners for better business i... 2012-02-18
Delphi 3DS model actual combat in operation source - This is a good example, demonstrates the JPG image... 2012-02-18
Simulation of TGO 32Bit v1.0 for Delphi 3D rendering source code - TGO32B, seems to travel abroad program, although o... 2012-02-18
Delphi graduation: student management system - This is a formal student management system SQL ver... 2012-02-18
Delphi car rental company business management system - A car rental company's business management systems... 2012-02-18
Delphi major revision of the human resources management system source code - RedHR owned a large OFFICE of human resources mana... 2012-02-18
DELPHI pawn industry management system source code - Pawn shop of an integrated business management sys... 2012-02-18
Cool interface Delphi chat software source code - Interface is really cool? This is a small LAN chat... 2012-02-18
Delphi shield Ctrl+Alt+Del reqijian method - Real shielding theory of Delphi is this: using a r... 2012-02-18
Classic RPG games with Delphi source code - The actual and Diablo game or scene is similar in ... 2012-02-18
35 Delphi7 Indy instance package - Application example demonstrates a lot of Indy Dem... 2012-02-18
Delphi transportation company business management system - A Delphi transportation company business managemen... 2012-02-18
Using Delphi to achieve control of the camera - This procedure describes how to use DELPHI AVICAP3... 2012-02-18
Cell of the report component for Delphi example source program - UFIDA table company developed a report component, ... 2012-02-18

 Back to top