This question I had before, and did not get it to a solution for me. despite some advice.
If I see some dialogs, then it is possible... but when I look in the airport.chooser ( menubar-location-choose_airport ) then I even do not see an eventmaneger for that goal. So where is it done. Maybe it is not the right example I took ? but same for the onboard-map.
The dialog/canvas I created as :
- Code: Select all
Area.init = func (w,h) {
me._Dialog=canvas.Window.new([w,h]);
me._Canvas=me._Dialog.createCanvas()
.setColorBackground(0.5,0.5,0.5,me._Transp);
Just a little piece of the code, but this is now a fixed dialog/window.
I can drag it, no problem, but now I want to add the ctrl-button from the mouse in the routine to make it resizing.
Thus not using the default move behaviour. ( Is there a default resize ? don't think so. )
Lot of windows are resizeble, are these just PUI gui's which style I should not use...
When I look in the property tree, then I am puzzled. It is not only 1 set of x/y but a lot more and children not to forget...
I do understand, when resizing, there are some decicions to be made. Is just the canvas growing, but not the content.
Or is the content also growing...
Maby to much for me , If someone has a good example, it would help me much.
My goal is to resize the window, and not the content... Now I think about it, maby also the content.
I think it is very complex.