helldanger1
GForum VIP
- Entrou
- Ago 1, 2007
- Mensagens
- 29,631
- Gostos Recebidos
- 1
O exemplo a seguir cria um form transparente, com apenas uma linha de código:
//---------------------------------------------------------------------------
#include <vcl.h>
#pragma hdrstop
#include "Unit1.h"
//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma resource "*.dfm"
TForm1 *Form1;
//---------------------------------------------------------------------------
__fastcall TForm1::TForm1(TComponent* Owner)
: TForm(Owner)
{
}
//---------------------------------------------------------------------------
void __fastcall TForm1::FormCreate(TObject *Sender)
{
Brush->Style=bsClear;
//BorderIcons = BorderIcons - (TBorderIcons()<< biMaximize);
//BorderIcons = BorderIcons - (TBorderIcons()<< biMinimize);
//BoderStyle = bsNone;
}
//---------------------------------------------------------------------------
//---------------------------------------------------------------------------
#include <vcl.h>
#pragma hdrstop
#include "Unit1.h"
//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma resource "*.dfm"
TForm1 *Form1;
//---------------------------------------------------------------------------
__fastcall TForm1::TForm1(TComponent* Owner)
: TForm(Owner)
{
}
//---------------------------------------------------------------------------
void __fastcall TForm1::FormCreate(TObject *Sender)
{
Brush->Style=bsClear;
//BorderIcons = BorderIcons - (TBorderIcons()<< biMaximize);
//BorderIcons = BorderIcons - (TBorderIcons()<< biMinimize);
//BoderStyle = bsNone;
}
//---------------------------------------------------------------------------