pro_imaj Posted June 11, 2022 Share Posted June 11, 2022 Hi, Why does Unigui TUniDateTimePicker render last? Why is the datetimepicker always at the bottom when I want to create objects in the commands below at runtime? Why doesn't Unigui generate code by order? Why does the DatetimePicker always spawn at the bottom? procedure TMainForm.UniButton2Click(Sender: TObject); var i: Integer; aEdit: TUniEdit; aCombo: TUniComboBox; aCheckBox: TUniCheckBox; aDate: TUniDateTimePicker; aSpin: TUniSpinEdit; begin aDate := TUniDateTimePicker.Create(self); aDate.Parent := UniFieldSet1; aDate.FieldLabel := 'DateTime' + i.ToString; aEdit := TUniEdit.Create(self); aEdit.Parent := UniFieldSet1; aEdit.FieldLabel := 'Edit' + i.ToString; aCombo := TUniComboBox.Create(self); aCombo.Parent := UniFieldSet1; aCombo.FieldLabel := 'Combo' + i.ToString; aCheckBox := TUniCheckBox.Create(self); aCheckBox.Parent := UniFieldSet1; aCheckBox.FieldLabel := 'CheckBox' + i.ToString; aSpin := TUniSpinEdit.Create(self); aSpin.Parent := UniFieldSet1; aSpin.FieldLabel := 'SpinEdit' + i.ToString; end; Quote Link to comment Share on other sites More sharing options...
Sherzod Posted June 11, 2022 Share Posted June 11, 2022 Hi, Use CreateOrder property. Quote Link to comment Share on other sites More sharing options...
pro_imaj Posted June 11, 2022 Author Share Posted June 11, 2022 22 minutes ago, Sherzod said: Hi, Use CreateOrder property. The DateTimePicker, which I use as you wrote, produces the latest! aDate := TUniDateTimePicker.Create(self); aDate.Parent := UniFieldSet1; aDate.FieldLabel := 'DateTime' + i.ToString; aDate.CreateOrder := 0; aEdit := TUniEdit.Create(self); aEdit.Parent := UniFieldSet1; aEdit.FieldLabel := 'Edit' + i.ToString; aEdit.CreateOrder := 1; Quote Link to comment Share on other sites More sharing options...
pro_imaj Posted June 11, 2022 Author Share Posted June 11, 2022 There is no problem creating the runtime object on the form. But this problem occurs when creating UniFieldSet1 object, I think there is a bug here! Quote Link to comment Share on other sites More sharing options...
Sherzod Posted June 12, 2022 Share Posted June 12, 2022 10 hours ago, pro_imaj said: There is no problem creating the runtime object on the form. But this problem occurs when creating UniFieldSet1 object, I think there is a bug here! This should have been fixed. Here are some related issues (and workarounds) 1 Quote Link to comment Share on other sites More sharing options...
pro_imaj Posted June 12, 2022 Author Share Posted June 12, 2022 Thank you for the answers, we have read and evaluated all of these answers, but we could not find a solution. When will this fix? @Farshad Mohajeri Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.