RobYost Posted September 3, 2017 Share Posted September 3, 2017 If you place a TuniPanel over a TUniDateTimePicker, the Date control is on top of the panel. It looks correct at design time but at run time it is on top. Also, when you multi-select TUniDateTImePicker it does not keep the selection dots around it like the other controls do, so it is hard to tell if it is selected. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted September 4, 2017 Share Posted September 4, 2017 Hi, If you place a TuniPanel over a TUniDateTimePicker, the Date control is on top of the panel. It looks correct at design time but at run time it is on top. We will check this issue again... Can you try this approach for now ?!: function IndexInParent(VControl: TControl): Integer; var ParentControl: TWinControl; begin ParentControl:=TForm(VControl.Parent); if (ParentControl<>nil) then for Result:=0 to ParentControl.ControlCount-1 do if (ParentControl.Controls[Result]=VControl) then Exit; Result:=-1; end; procedure TMainForm.UniFormCreate(Sender: TObject); var zindex: Integer; begin // for example for UniPanel1 zindex := IndexInParent(UniPanel1); UniPanel1.JSInterface.JSAddListener('afterrender', 'function(me){me.getEl().setStyle("z-index",'+IntToStr(zindex)+')}'); end; http://forums.unigui.com/index.php?/topic/5658-unidbdatetimepicker-always-in-front-side/&do=findComment&comment=28897 Best regards, Quote Link to comment Share on other sites More sharing options...
Sherzod Posted September 4, 2017 Share Posted September 4, 2017 Also, when you multi-select TUniDateTImePicker it does not keep the selection dots around it like the other controls do, so it is hard to tell if it is selected. Can you clarify your question again please ?! 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.