Hello,
I am attempting to develop a wrapper for PUI that will allow for easy
integration of PUI into openFrameworks applications. openFrameworks is
an open source c++ toolkit for creative coding. It is built on OpenGL
by way of GLUT. There are several extensions for integrating UI
components into applications but none of them are as complete as PUI.
The primary purpose for the wrapper is to adjust PUI to the coordinate
system that is used by openFrameworks which has 0,0 in the upper left
corner of the window and to align with the openFrameworks convention of
x, y, width, height in widget calls.
I have been very successful with building the wrapper routines until I
got to the puDialogBox. The problem with puDialogBox is that it grows
in width and height as you add items to it. The problem is that to
convert the coordinate system I need to know the height of the area a
widget will be displayed in so I can adjust the y value to map back to
the PUI coordinate system.
I have searched the mailing list archives for any discussion on
modifying the PUI coordinate system and didn't come up with anything.
If anyone has any suggestions for modifying the coordinate system of
thoughts on how to handle the puDialogBox I would greatly appreciate
hearing them.
Thanks,
Gregory
|