home *** CD-ROM | disk | FTP | other *** search
- //---------------------------------------------------------------------------
- #include <vcl.h>
- #pragma hdrstop
-
- #include "CalcUnit.h"
- //---------------------------------------------------------------------------
- #pragma package(smart_init)
- #pragma resource "*.dfm"
- TForm1 *Form1;
- //---------------------------------------------------------------------------
- __fastcall TForm1::TForm1(TComponent* Owner)
- : TForm(Owner)
- {
- }
- //---------------------------------------------------------------------------
-
-
- void __fastcall TForm1::FormCreate (TObject *Sender)
- {
- HexDecMode = new TLabel (Display);
- HexDecMode->Parent = Display;
- HexDecMode->Font->Name = "Arial";
- HexDecMode->Font->Size = 7;
- HexDecMode->Font->Color = Display->Font->Color;
- HexDecMode->Caption = "Hex";
- ShowHexDecMode();
- }
-
- void __fastcall TForm1::ShowHexDecMode (void)
- {
- HexDecMode->Left = Display->Width - HexDecMode->Width - 5;
- HexDecMode->Top = Display->Height - HexDecMode->Height - 4;
- HexDecMode->Invalidate();
- }
- //---------------------------------------------------------------------------
- void __fastcall TForm1::FormKeyPress(TObject *Sender, char &Key)
- {
- ShowHexDecMode();
- }
- //---------------------------------------------------------------------------
- void __fastcall TForm1::DisplayEnter(TObject *Sender)
- {
- ShowHexDecMode();
- }
- //---------------------------------------------------------------------------
-