DBImage and resizing controls
Hi, I know you can resize a graphic to fit the component (using Stretch),
but how would you resize the component to the size of the graphic? The
reason I ask, is that I want to display a graphic right-justified but I
don't know how big the graphic will be. When I right-justify and a small
graphic is used then there is alot of blank space to the right of the
graphic. Vice-versa, a large graphic is cut-off (I want to display the
actual size of the graphic as stored).
Thanks
--
Alex
but how would you resize the component to the size of the graphic? The
reason I ask, is that I want to display a graphic right-justified but I
don't know how big the graphic will be. When I right-justify and a small
graphic is used then there is alot of blank space to the right of the
graphic. Vice-versa, a large graphic is cut-off (I want to display the
actual size of the graphic as stored).
Thanks
--
Alex
This discussion has been closed.
Comments
should be what you need to use. Then shift it's left position so that it is
right aligned . One way to do this is to load it into a temporary offscreen
bitmap and check its width and height before the band generates. This way
you'll kow where to position the DBImage component so it appears right
aligned.
Cheers,
Jim Bennett
Digital Metaphors
http://www.digital-metaphors.com
info@digital-metaphors.com