Diese Seite mit anderen teilen ...

Informationen zum Thema:
WinDev Forum
Beiträge im Thema:
Erster Beitrag:
vor 1 Jahr, 10 Monaten
Letzter Beitrag:
vor 1 Jahr, 10 Monaten
Beteiligte Autoren:
Steven Sitas, David Egan, Peter Holemans

WINDEV - Trigger Resizing a window with code?

Startbeitrag von Steven Sitas am 17.08.2016 17:57

is there a function in WINDEV for triggering the Resizing of a window, using WX code.
It should be able to move controls automatically, according to anchors etc ...

Steven Sitas


Hi Steven
MyWindow..Height = ###
MyWindow..Width = ###

We use this a lot & depending on what we want to achieve (whether it's resized for the session or just to display extra data on a particular record) we either specify the size or do it as an adjustment to MyWindow..InitialHeight.

All controls which are anchored will automatically move/resize.



von David Egan - am 17.08.2016 18:21
Hi David,
what I really want to do is HIDE a TAB that is below a TABLE and I want this TABLE to GROW until the END of the WINDOW.
So there is NO change in my WINDOWS Height/Width ..

Do you think that this code will trigger this kind of RESIZING ?

I could do :
g is int=MyWindow..Height
MyWindow..Height =g

I already have some code for this, but I want to make it more simple.
Thanks for the info, I will try this next thing in the morning ...

Steven Sitas

von Steven Sitas - am 17.08.2016 18:27
Hi David,
unfortunately it didn't work

Steven Sitas

von Steven Sitas - am 17.08.2016 18:34
Hmm, not sure about that as you are not physically resizing the window; I would suspect not. If it is just the table though you could resize that after hiding the tab. Not sure if this would work but if there are multiple controls maybe put all of them in an internal window and resize that??


von David Egan - am 17.08.2016 18:45
Hi Steven,

If it is WD:
Set a horizontal splitter between the table and the tab page.
Next set anchoring on the table in such a way that the table will resized if the splitter is moved.
Do the same for the tab page.

Next move the splitter in code... (Splitter..y = ...)

That should do the trick.


Peter Holemans

von Peter Holemans - am 18.08.2016 11:42
Hi Peter,
that did the trick

Steven Sitas

von Steven Sitas - am 18.08.2016 11:56
Zur Information:
MySnip.de hat keinen Einfluss auf die Inhalte der Beiträge. Bitte kontaktieren Sie den Administrator des Forums bei Problemen oder Löschforderungen über die Kontaktseite.
Falls die Kontaktaufnahme mit dem Administrator des Forums fehlschlägt, kontaktieren Sie uns bitte über die in unserem Impressum angegebenen Daten.