Page 1 of 1

Create button in run time on JQDialog

PostPosted: 04 May 2016 22:32
by ariopax
Hi


I create a JQDialog in run time in a frame.
How to i can create a button on it in run time?
Thank you for guide.



Best Regards.

Re: Create button in run time on JQDialog

PostPosted: 05 May 2016 09:37
by Alexander Bulei
Hi ariopax,

How to i can create a button on it in run time?


Button inside or below?

Best Regards.

Re: Create button in run time on JQDialog

PostPosted: 05 May 2016 15:12
by ariopax
Hi Alexander,


Button inside or below?


I want create Inside .


Best Regards.

Re: Create button in run time on JQDialog

PostPosted: 06 May 2016 09:56
by Alexander Bulei
Hi ariopax,

Simple example:

delphi code
myButton:= TIWCGJQButton.Create(IWCGJQDialog1);
myButton.Parent:= IWCGJQDialog1;
myButton.Name:= CGFindUniqueComponentName(IWCGJQDialog1, '_MYBTN');
myButton.Top:= 50;
myButton.Left:= 50;


Best Regards.