Recent

Author Topic: KOL CE Form2 - Visible  (Read 5399 times)

remek

  • New Member
  • *
  • Posts: 15
KOL CE Form2 - Visible
« on: November 14, 2008, 11:41:02 pm »
Hello!

I try to work with KOL_CE components. I just set form1 (mainform). One of button component have to open form2 by setting visible on True.
On my Acer with WM2003 i get error "Runtime error 216 at ...".
What kind of solution i have to use ?

Nibbler

  • New Member
  • *
  • Posts: 11
KOL CE Form2 - Visible
« Reply #1 on: November 15, 2008, 09:06:32 pm »
Yury will probably give you a better answer, yet till then you can create dynamically the forms, it works :

procedure TForm1.Button1Click(Sender: PObj);
var Form2 : PForm2;
begin
  NewForm2(Form2,Applet);
  Form2.Form.ShowModal;
  Form2.Form.Free;
end;

Cheers,
Nibbler.

remek

  • New Member
  • *
  • Posts: 15
KOL CE Form2 - Visible
« Reply #2 on: November 16, 2008, 07:52:39 pm »
Is it good solution for form design before running (not in runtime session) ? I want to put some components on form and show form by clicking button ? I just do it like i wrote but i get error :(

Thanks for answer.

Nibbler

  • New Member
  • *
  • Posts: 11
KOL CE Form2 - Visible
« Reply #3 on: November 16, 2008, 11:54:11 pm »
For me it works.

Have you put a TKOLForm on the second form ?
Are you sure you dropped only KOL components on the second form ?
Try also to right-click on the KOLProject in first form and choose "Convert to KOL" before building your app.

If nothing works, I have no idea, I'm beginner too  :roll:

remek

  • New Member
  • *
  • Posts: 15
KOL CE Form2 - Visible
« Reply #4 on: November 17, 2008, 01:09:35 am »
Yes, it works :) Thank you.
So, I think that Lazarus with KOL_CE solution are nice replace for  ForwardPass program.

 

TinyPortal © 2005-2018