AminetAminet
Search:
82687 packages online
About
Recent
Browse
Search
Upload
Setup
Services

dev/gui/CIT.lha

Mirror:Random
Showing:ppc-amigaosgeneric
No screenshot available
Short:A C++ GUI dev system
Author:Svend at DaugaardPedersen.dk (Svend Daugaard Pedersen)
Uploader:Svend DaugaardPedersen dk (Svend Daugaard Pedersen)
Type:dev/gui
Replaces:dev/gui/CIT
Architecture:m68k-amigaos
Date:2003-03-07
Download:http://aminet.net/dev/gui/CIT.lha - View contents
Readme:http://aminet.net/dev/gui/CIT.readme
Downloads:2073
CIT version 4.05 (2003.03.01)

CIT is a C++ development system.

The purpose with CIT (C++ Intuition Tool) is twofold:

 - to offer the programmer an easy way to create GUIs

 - to offer the programmer the possibility to make event driven programs.


Here is a very simple example program that opens a window with a palette
gadget and a button (Quit) gadget and waits for the user to press Quit or
the windows close gadget:


   #include <citra/CITGroup.h>
   #include <citra/CITButton.h>
   #include <citra/CITPalette.h>

   CITApp Application;

   CITWorkbench DemoScreen;
   CITWindow    DemoWindow;
   CITVGroup    winGroup;
   CITPalette   palette;
   CITButton    quitButton;

   void CloseEvent() { Application.Stop(); }
   void QuitEvent(ULONG ID,ULONG eventType) { Application.Stop(); }

   int main()
   {
     BOOL Error=FALSE;

     // Build GUI
     //
     DemoScreen.InsObject(DemoWindow,Error);
       DemoWindow.CloseGadget();
       DemoWindow.SizeGadget();
       DemoWindow.DepthGadget();
       DemoWindow.Caption("CITPalette Demo");
       DemoWindow.CloseEventHandler(CloseEvent);
       DemoWindow.InsObject(winGroup,Error);
         winGroup.SpaceOuter();
         winGroup.InsObject(palette,Error);
           palette.MinWidth(200);
           palette.MinHeight(150);
           palette.NumColours(256);
         winGroup.InsObject(quitButton,Error);
           quitButton.Text("Quit");
           quitButton.MaxHeight(20);
           quitButton.EventHandler(QuitEvent);

     // Put the screen into Application to create the GUI and set up
     // the event system
     //
     Application.InsObject(DemoScreen,Error);

     if( Error ) return 10;

     Application.Run(); // Will return when Quit or close gadget is pressed

     return 0;
   }


Contents of dev/gui/CIT.lha

Aminet © 1992-2019 Urban Müller and the Aminet team. Aminet contact address: <aminetaminet net>