I wish to add an alphablending to my vcl. so I intend to embedd a form and toplay with her alphablending values.
Main Topics
Browse All Topicshow can I create a Form vcl and when drop it in my main form to become a part of my main form ? An embedded form I think.
I wish to work as a panel but to derive from TForm and not from TPanel.
Sorry no more points :(
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
You rake a lot!
Copied from VCL, how provide a alpha blend.
procedure TCustomForm.SetLayeredAttr
const
cUseAlpha: array [Boolean] of Integer = (0, LWA_ALPHA);
cUseColorKey: array [Boolean] of Integer = (0, LWA_COLORKEY);
var
AStyle: Integer;
begin
// if not (csDesigning in ComponentState) and
// (Assigned(SetLayeredWindow
// begin
AStyle := GetWindowLong(Handle, GWL_EXSTYLE);
if FAlphaBlend or FTransparentColor then
begin
if (AStyle and WS_EX_LAYERED) = 0 then
SetWindowLong(Handle, GWL_EXSTYLE, AStyle or WS_EX_LAYERED);
SetLayeredWindowAttributes
cUseAlpha[FAlphaBlend] or cUseColorKey[FTransparentC
end
else
begin
SetWindowLong(Handle, GWL_EXSTYLE, AStyle and not WS_EX_LAYERED);
RedrawWindow(Handle, nil, 0, RDW_ERASE or RDW_INVALIDATE or RDW_FRAME or RDW_ALLCHILDREN);
end;
end;
//end;
Without a test and how TFrame is a TScrollingWinControl descendent this is implementable. Maybe some extra effort required in code to set this attributes.
T++, Radler.
Hi ginsonic,
I made a great effort to remember, but always record that I´ve posted the FIRST comment to this question. morever we follow a track to solve the alpha problem. To my surprise emerged from scratch a geobul answer whitout another comment about the alpha problem. Seams a joke but, have I made mad?
T++, Radler
Business Accounts
Answer for Membership
by: geobulPosted on 2006-06-26 at 11:44:28ID: 16986712
Hi Nick,
Have you considered using frames instead? They are exactly what you're asking for.
Best regards, Geo