eduardosuruagy Posted February 21, 2019 Share Posted February 21, 2019 I would like to create Dashboard at runtime with the table format, as shown in the attached image. Even putting the same settings as the example mine goes wrong. Can someone help me? UniGui Teste 8.rar Quote Link to comment Share on other sites More sharing options...
Sherzod Posted February 21, 2019 Share Posted February 21, 2019 Hello, Sorry, what problem do you have? Quote Link to comment Share on other sites More sharing options...
eduardosuruagy Posted February 21, 2019 Author Share Posted February 21, 2019 I'm creating a Panels table at run time, this table is being created inside the UniContainerPanel component. The UniContainerPanel is configured like this: Layout: table LayoutAttribs.Columns: 5 But at the time of creating the Panels they exceed the limit of the UniContainerPanel both on the right side and down and also they are of different sizes. I also wanted that when I passed or mouse over one of them, it would have an effect similar to the uniButton effect. To create the Panels I did: for I := 0 to 20 do begin with TUniPanel.Create(Self) do begin Parent := UniContainerPanel1; Caption := 'Sem Informação'; Name := 'UniPanelTable'+IntToStr(I); Height := 70; LayoutConfig.Width := '100%'; Tag := 0; Title := 'Sem Informação'; TitleAlign := taCenter; TitleVisible := True; LayoutConfig.Margin := '10 10 0 10'; //Topo / Direita / Baixo / Esquerda //LayoutConfig.Flex := 1; ClientEvents.ExtEvents.Add('OnMouseover=function OnMouseover(sender)' + ' { sender.setBodyStyle("background-color","#303030"); }'); ClientEvents.ExtEvents.Add('OnMouseout=function OnMouseout(sender)' + ' { sender.setBodyStyle("background-color","#414141"); }'); OnClick := MostrarDisciplinas; Cursor := crHandPoint; end; end; Quote Link to comment Share on other sites More sharing options...
eduardosuruagy Posted February 21, 2019 Author Share Posted February 21, 2019 Any suggestion? Quote Link to comment Share on other sites More sharing options...
Sherzod Posted February 21, 2019 Share Posted February 21, 2019 8 minutes ago, eduardosuruagy said: Any suggestion? UniContainerPanel1.AutoScroll = True - ? Quote Link to comment Share on other sites More sharing options...
eduardosuruagy Posted February 21, 2019 Author Share Posted February 21, 2019 But your I activate this option the Panels do not remain the same size and the scroll is enabled horizontally and not vertically. Were these Panels not to automatically adjust their width? 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.