[Fxruby-users] New FXRuby developer needing some direction...
Status: Inactive
Brought to you by:
lyle
From: Marc C. <ma...@is...> - 2003-08-11 16:23:42
|
Hi, I'm trying to use FXRuby to create a graphical image markup tool, and being new to Fox and FXRuby, I'm having some trouble getting FXRuby to play nicely. I'm trying to make a program to open a TIFF image, draw it on a FXCanvas as a sort of background, and allow for "highlighting" of parts of the image (basically translucent rectangles on certain locations of the image). Here are the major roadblocks I'm currently having: - The rectangles I draw seem to ignore any alpha setting I set on a FXColor. I use FXRGBA, and no matter what I set the alpha to, the rectangles are completely opaque. Does alpha not work in the Fox library, or am I missing something? - I want to place the FXCanvas in a FXScrollWindow, and get it to scroll over the image. It more or less works when I load an image, but if I resize the main window it just crops the image to the window size, and that's it. I can't get the whole image to display again in the scroll window. How can I get the FXCanvas size to stay static even if I resize the FXMainWindow/ FXScrollWindow? - I would also like to set a "zoom level" on the image, so that by setting the level, the image would get rescaled (along with the rectangles that have been drawn up to that point). I got the math worked out, but using either FXImage::scale or FXDrawable::resize, the canvas just goes black on the resize. Anyone know why it would be doing that? Any advice anyone can give would be greatly appreciated. At this point, I'm not even sure if the Fox library (the C version) can do what I'm trying to do. Am I just implementing this thing the wrong way, or am I trying to do the impossible with the library as it is? - Marc Cartright |