Jump to content

TUniDate


RobYost

Recommended Posts

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.

post-4889-0-75504700-1504465257_thumb.png

Link to comment
Share on other sites

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,

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...