Posts: 3
Threads: 1
Joined: Apr 2020
Reputation:
0
Location: France
I have a form divided in 2 Régions. The left one is aligned alLeft and the other alClient. Sometimes I want to hide the left region, and with IW 14 , when I hide the left region , the right region takes the whole place of the form.
Now, with IW 15, when I hide the left region, the right region keeps the same width, and don't takes the available space.
Any idea?
Posts: 17
Threads: 8
Joined: Mar 2020
Reputation:
0
Location: Canada
Maybe something like (in C++):
leftRegion->Visible = false ;
rightRegion->Invalidate() ;
Posts: 2,205
Threads: 186
Joined: Mar 2018
Reputation:
79
Location: Auckland, New Zealand
Set StyleRenderOptions.UseDisplay to TRUE.
This will make IW use the Display attribute to hide it, instead of visibility attribute. This should do it.
Posts: 63
Threads: 17
Joined: Jan 2020
Reputation:
4
Location: Germany
Hello Stephan,
It should work by setting „RenderInvisibleControls“ of the parent (e. g. tform or another tregion) to FALSE.
Unfortunately it doesn‘t work if setting the visible-attribut in an async-event :-(
The way to success is always under construction ... but i see a light at the end of the tunnel