How do you have a picture for the background of your form?
and is it possible to have some of the backgorund transparent?
How do you have a picture for the background of your form?
and is it possible to have some of the backgorund transparent?
It explains it very well in MasterKill's BIG form tutorial:
http://www.villavu.com/forum/showpost.php?p=520209
What it says:
Add a TImage variable to your script to hold the picture:
Var
Image1: TImage;
b, w, h: Integer;
Then here's the code you use:
SCAR Code:Image1 := TImage.Create(FrmDesign);
Image1.Parent := FrmDesign;
Image1.Left := 20;
Image1.Top := 20;
Image1.Width := {width of your image};
Image1.Height := {height of your image};
b := loadbitmap({Location of your file as a string! (C:\Program Files\?? ect...});
getbitmapsize(b, w, h);
copycanvas(getbitmapcanvas(b), Image1.canvas, 0, 0, w, h, 0, 0, w, h);
wouldnt that only be usefull for a banner?
Nope, works just as well for a background.
Edit: I think for transparency it's:
Although I don't think it works to well. Give it a try.Code:Form1.Brush.Style:=bsClear; Form1.BorderStyle:=bsNone;
Last edited by Rick; 08-21-2009 at 10:42 AM.
Scripts: AIOCurser !, Tea Stall Thiever !, Flax Picker !
Other: Objective Functions, Scarduku
Tutorials: How to create a plugin for Simba, [VB.NET] Using My.Settings, [Photoshop] Basic Abstract Art
Outdated: m!ne v1.00 [STATS]
ok well ill see if it works and post problems
There are currently 1 users browsing this thread. (0 members and 1 guests)