![]() | ![]() Products ![]() ![]() ![]() ![]() |
Home » Technical Support » Elevate Web Builder Technical Support » Support Forums » Elevate Web Builder General » View Thread |
Messages 1 to 6 of 6 total |
![]() |
Wed, Jan 25 2012 7:48 PM | Permanent Link |
Robert Devine | Hi Tim
I tried a simple runtime creation of a panel, but nothing shows: procedure TForm1.Button3Click(Sender: TObject); begin FTestPanel := TPanel.Create(self); FTestPanel.Visible := true; FTestPanel.EnableDrag := true; FTestPanel.Caption := 'TestPanel'; FTestPanel.ShowBorder := true; FTestPanel.ShowCaption := true; FTestPanel.Show; end; Is this a bug or am I missing something? Cheers, Bob |
Wed, Jan 25 2012 8:14 PM | Permanent Link |
Raul Globestar Systems ![]() | Bob,
Set the size as well : FTestPanel.Top := 100; FTestPanel.left := 100; FTestPanel.Width := 100; FTestPanel.Height := 100; and it should show up (without need to call Show) Raul |
Wed, Jan 25 2012 8:54 PM | Permanent Link |
Tim Young [Elevate Software] Elevate Software, Inc. ![]() | Raul,
<< Set the size as well : >> Hmm, interesting question - should the size default to some value, or is the current situation reasonable ? -- Tim Young Elevate Software www.elevatesoft.com |
Wed, Jan 25 2012 11:25 PM | Permanent Link |
Raul Globestar Systems ![]() | Tim,
<< Hmm, interesting question - should the size default to some value, or is the current situation reasonable ?>> My vote would be to have controls with a default non zero height and width size at 0,0 Otherwise i can see this being reported a bug/issue all the time once we start creating them run-time Raul |
Wed, Jan 25 2012 11:36 PM | Permanent Link |
Tim Young [Elevate Software] Elevate Software, Inc. ![]() | Raul,
<< My vote would be to have controls with a default non zero height and width size at 0,0 Otherwise i can see this being reported a bug/issue all the time once we start creating them run-time >> Yep, that's what I was thinking also, and it's what Delphi does. -- Tim Young Elevate Software www.elevatesoft.com |
Thu, Jan 26 2012 3:41 AM | Permanent Link |
Robert Devine | Thanks Raul - unbelievable, I think I set just about every other
property apart from those! I think you're right - without default values it'll be reported as a bug again. Cheers, Bob On 26/01/2012 01:14, Raul wrote: > Bob, > > Set the size as well : > FTestPanel.Top := 100; > FTestPanel.left := 100; > FTestPanel.Width := 100; > FTestPanel.Height := 100; > > and it should show up (without need to call Show) > > Raul > |
This web page was last updated on Thursday, March 30, 2023 at 10:19 AM | Privacy Policy![]() © 2023 Elevate Software, Inc. All Rights Reserved Questions or comments ? ![]() |