I'm trying to create an application where the user selects an option from the menu and the form (frame) requested is displayed in a new tab of a tabcontrol in the main form.
All components are aligned as "alClient". The forms (frames) created at runtime have a component layout with a central panel (with a grid occupying its total area) and a right pane where the details of the selected record will be displayed. When this form is initially displayed, the grid is not shown occupying the area of the central panel. When the details pane is open, the grid occupies the area as planned. Closing the details pane the grid occupies the area initially defined in the project and even opening and closing the details pane again it does not return to occupy the total area available.
Similar behavior is noticed when navigating between tabs (alignment is not obeyed).
How to solve this?
I am attaching a test project (without the wwwroot content) showing this behavior.
One last detail: i'd like when the grid was expanded its cells keep the size defined in the project and not expanded to fill the whole grid length. It's possible?
Thanks for listening
Em Português:
Estou tentando criar uma aplicação onde o usuário seleciona uma opção no menu e o formulário (frame) solicitado é exibido em uma nova aba de um tabcontrol no formulário principal.
Todos os components estão alinhados como "alClient". Os formulários (frames) criados em tempo de execução possuem um component layout com um painel central (com um grid ocupando sua área total) e um painel direito onde serão exibidos os detalhes do registro selecionado. Quando este formulário é exibido inicialmente, o grid não é mostrado ocupando a área do painel central. Quando o painel de detalhes é aberto, o grid ocupa a área como previsto. Ao fechar o painel de detalhes o grid volta a ocupar a área definida inicialmente no projeto e, mesmo abrindo e fechando o painel de detalhes novamente ele não volta a ocupar a área total disponível.
Comportamento semelhante é notado quando se navega entre as abas (o alinhamento não é obedecido).
Como resolver isto?
Estou anexando um projeto teste (sem o conteúdo do wwwroot) mostrando este comportamento.
Um último detalhe: gostaria que quando o grid fosse expandido as células continuassem com o tamanho definido no projeto e não fossem expandidas para ocupar toda o comprimento do grid. É possível?
Obrigado pela atenção