Page 1 of 1

RESIZE DCTABPAGE

Posted: Tue Oct 02, 2018 10:01 am
by jdsoft
Hello,

I mus be doing something wrong.

Code: Select all

@ 1    ,1         DCTABPAGE oTabMutaties    CAPTION "Meldingen"        SIZE 110,20    PREOFFSET 0 POSTOFFSET 88     RESIZE   DCGUI_RESIZE_REPOSONLY_Y
@ 0    ,0         DCTABPAGE oTabErrors      CAPTION "Fouten"                          RELATIVE oTabMutaties         RESIZE   DCGUI_RESIZE_REPOSONLY_Y
If i resize the page, the 2nd TAB page does no follow the resize. It hides behind the first tab.
Other controls like DCPUSHBUTTON, DCGET and DCSAY are repositoned correctly.

What is my mistake?

Re: RESIZE DCTABPAGE

Posted: Thu Oct 04, 2018 9:16 am
by rdonnay
You have done nothing wrong.

I never wrote code to do what you want to do.

You should NOT resize the tabpage, instead you should resize its parent.

The tabpage will automatically resize with the parent if you use the .. RESIZE DCGUI_RESIZE_RESIZEONLY clause.

If I wrote code to automatically resize tabpages when a sibling is resized, then that would be difficult code to manage.