home *** CD-ROM | disk | FTP | other *** search
- Unit GVGadget;
-
-
- { Diese Unit bietet zwei nützliche Hilfsmittel: Uhr und Freier Heap Anzeiger.
- }
-
- Interface
-
- Uses Dos, Drivers, Objects, Views, GVViews, GVApp;
-
- Type
-
- { THeapView object }
-
- { Palette layout }
- { 1 = Background }
- { 2 = Text }
-
- PHeapView = ^THeapView;
- THeapView = object(TGView)
- OldMem : LongInt;
- constructor Init(var Bounds: TRect);
- procedure Draw; virtual;
- procedure Update;
- end;
-
- { TClockView object }
-
- { Palette layout }
- { 1 = Background }
- { 2 = Text }
-
- PClockView = ^TClockView;
- TClockView = object(TGView)
- Refresh: Byte;
- LastTime: DateTime;
- TimeStr: String[10];
- constructor Init(var Bounds: TRect);
- procedure Draw; virtual;
- function FormatTimeStr(H, M, S: Word): String; virtual;
- procedure Update; virtual;
- end;
-
-
- implementation
-