![]() |
|
|
|
| ||||||
|
Welcome to the The ProgrammersTalk Community forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact contact us. |
| Tags: delphi, pascal, programming |
![]() |
![]() | | LinkBack | Thread Tools | Display Modes | ![]() |
| |||
| It's actually called Object Pascal. and it looks like Code: unit Unit1;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
StdCtrls;
type
TForm1 = class(TForm)
Button1: TButton;
Button2: TButton;
ComboBox1: TComboBox;
procedure Button1Click(Sender: TObject);
procedure Button2Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
implementation
{$R *.DFM}
procedure TForm1.Button1Click(Sender: TObject);
begin
if form1.color <> clred then
form1.Color := clred
else
if form1.color = clred then
form1.color := clteal
//end;
end;
procedure TForm1.Button2Click(Sender: TObject);
begin
if form1.WindowState = wsnormal then
form1.windowstate := wsmaximized
else
if form1.WindowState = wsmaximized then
form1.windowstate := wsnormal
end;
//end;
end. __________________ Chris Indifference will be the downfall of mankind, but who cares? Code Samples | People Counting System |
| ||||
| It doesnt look too bad to code but if i am honest i would rather code in other things :/ |
![]() |
| Thread Tools | |
| Display Modes | |
| |