[Iup-users] Tiny, tiny bugs

Antonio Scuri scuri at tecgraf.puc-rio.br
Tue Mar 4 18:47:42 GMT+2 2008


 
  Hi,

> I sent an earlier version of this to the iup at tecgraf list, 
> and it may have got blocked.  

  Yes, it was blocked. Sorry.


> CD Docs: Coordinate Systems: cdCanvasSetSize: height is spelt 
> wrongly in the Lua version

  Fixed.


> CD Docs: Coordinate systems: cdCanvasGetSize: the lua version 
> should be canvas:GetSize

  Fixed. BTW, the implementation is correct.


> cdlua source: cdlua5.c: line 1311: should that be cdlua5_killimage?

  Yes. This is a bug.


> CD Docs: Server Images: cdKillImage: should the Lua version 
> be cd.KillImage?

  In fact, should be:  image:KillImage()
  it could also be:  cd:KillImage(image: cdImage)

  But the second form has the bug you just reported.


> iup docs: IupCanvas: Attributes: XMAX and XMIN appear to be swapped

 The defalt values were swapped.

 I uploaded the fixed HTMLs. Thanks for reporting.


> I have a CD canvas inside an IUP canvas which is inside an 
> hbox, which is in turn inside a dialog.  I don't get any 
> resize events for the IUP canvas when it is smaller than its 
> original size.  When I remove the hbox, the resize events 
> work as expected.  Anything I might be missing?  Any hints on 
> where I should look in the IUP code?

  If you set the SIZE or RASTERSIZE attributes they will be used as minimum
sizes. After IupShow or IupMap, set to NULL. Then you will be able to freely
resize the canvas.


> When I put scrollbars on the same IUP canvas, changing dx and 
> dy don't seem to change the size of the scroll bar thumb.

  This is a flaw in IUP 2. You must set POSX and POSY for the scroolbar to
be updated:

    IupStoreAttribute(ih, "POSX", IupGetAttribute(ih, "POSX"));
    IupStoreAttribute(ih, "POSY", IupGetAttribute(ih, "POSY"));

  I fixed this in IUP 3. So it will be enough to set DX or DY to update the
thumb.

Best,
scuri






More information about the iup-users mailing list