Re: [Iup-users] rastersize is nil

2015-05-27 Thread Milind Gupta
Hi Antonio, I was using the map_cb to initialize a lot of stuff for drawing on the canvas and then doing the initial drawing. So I modified it to do just the initializations and the drawing part is handled only by action_cb and resize_cb now. By the time they are called it seems

Re: [Iup-users] rastersize is nil

2015-05-26 Thread Antonio Scuri
When you create an element its size is not defined. If you not manually set the size, then it will be available only when the layout of the dialog is computed. The layout is automatically computed when the dialog is shown. If you need the size before that, then there are alternatives. You can

Re: [Iup-users] rastersize is nil

2015-05-26 Thread Milind Gupta
Hi Antonio, Previously when I was using iup 3.11 I was not having this issue. The way my code worked was that it called dialog:map() and I had a canvasBox:map_cb() defined which used the rastersize attribute of the canvasBox. I see in the map_cb documentation that there has been