Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 232
  • Last Modified:

transform a form with components in a component

Hello

I have a form with components on it and I wish to transform it in to a componet.

thanks

dan
0
daniel72
Asked:
daniel72
1 Solution
 
CesarioCommented:
Hi daniel72,

// Put  a Form in a Panel
procedure TForm1.Button1Click(Sender: TObject);
begin
  Form2.top := 0;
  Form2.Left := 0;
  Form2.show;
  Form2.Parent := Panel1;
end;


Best Regards

Cesario
0
 
danyszCommented:
hi

a quite expansive solution but a real good one is
Transform Component Expert from www.obsof.com

daniel
0
 
CesarioCommented:
danysz,

I agree with you ;-)

The Idea with Transsion effect is very nice.

Cesario
0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
CesarioCommented:
danysz do you have any idea how the copy the form into a Bitmap to make the transsion ?

With myBitmap := Form2.GetFormImage;

But if the Form is not vissible then
all WinControl doesnt appears.

0
 
bnemmersCommented:
Dan,

You don't say what version of Delphi you are using. If you are using version 5 then just create a frame. Frames can be placed onto the pallet; also if you are just trying to make this form reusable you could place it into the repository has well. There is one last choice but I wouldn't use this one unless all others fail. You could create a ActiveForm then install the ActiveX.

Bill
0
 
daniel72Author Commented:
Bill sorry yor answer it's ok but I'm using D4 C/S

and one more small think : usual everybody add comments and the person who put the question can promote your comment as an answer

daniel
0
 
CesarioCommented:
Hi Daniel75,

What about my comment ?

Cesario
0
 
daniel72Author Commented:
hi

Cesario : thanks for the idea but at the end I decide to use danysz solution. it's simple for simple things ...

anyway thanks to all of you

daniel
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now