Resizing Windows
Bill Antonia (2466) 130 posts |
I’m using the toolbox library and I have created a transient window which has two number range gadgets. This window opens from an attached menu to another window which I want to adjust the the size. So far when I increase the values in the number range gadgets all is fine, the sliders of the scroll bars gradually shrink showing the window workspace is increasing in size. However, reducing the values in the gadgets doesn’t dynamically reduce the visual size of the window until I do something with the window I’m trying to resize. I have tried hiding and reopening the window between events and that works but I have to make sure the transient window with the gadgets is not in the same place. Any ideas how to resize the window dynamically with my transient in front? |
André Timmermans (100) 655 posts |
If I understand correctly, you attempted to just use Wimp_SetExtend. Yeah, that doesn’t work well when reducing the window size below the size of the visible area. You have to reopen the window with an adjusted work area just after or you will experience redraw crashes (well that was the case on older OS versions anyway). I see no way around that. |
Bill Antonia (2466) 130 posts |
Thanks, yes it would be using Wimp_SetExtend in the background. As an added complication I’ve created my own toolbox library using the DDE C++, but I’m not adding that into the mix asking help on this problem. |
Charles Ferguson (8243) 427 posts |
Transient windows are generally not used for things like that, as any other window changes may cause the transient to close. |
Bill Antonia (2466) 130 posts |
Ok, I’ll try just calling the show routine and not hide first to see what happens. I’ll do that later as I have other things to do now, thank you. |
Bill Antonia (2466) 130 posts |
Great! Doing an show on the main window followed by an show on the transient did the trick, obtained the effect I was looking for thank you.😁 |