Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Displaying BLOBs in datawindow

697 views
Skip to first unread message

Avi

unread,
Aug 4, 2009, 6:53:42 AM8/4/09
to
How do I set a bitmap(blob) to a picture control on a tab datawindow.
I have the bitmap in a blob datatype. None of the setitem functions
work. For a Picture Control on a window, I would use SetPicture(). Is
there something similar to this ?

John Strano[Sybase]

unread,
Aug 4, 2009, 9:28:23 AM8/4/09
to
Have you considered using an InkPicture control?

http://infocenter.sybase.com/help/topic/com.sybase.dc37783_1150/html/dwref/BGBFFDJI.htm

--
John Strano - Sybase Technology Evangelist

blog: http://powerbuilder.johnstrano.com/


"Avi" <averell....@gmail.com> wrote in message
news:ac9cca83-3319-42eb...@c34g2000yqi.googlegroups.com...

Chris Kean

unread,
Aug 5, 2009, 3:49:01 PM8/5/09
to
Not to throw myself into someone else's thread, but I was actual working on
this same thing right now and have run into a problem.

Regarding John's comment, the inkpicture route works fine, so long as when
you're setting it up you make sure to select your image blob as the "Large
Binary Column for Background Image" and some other column for "Large Binary
Column for Ink data". PB wont let them be the same column, and the "Ink
data" column wont show up for displaying the image (I stared at a blank box
for about half an hour before I figured this one out playing around with the
control).

Here's the problem I'm having: I've read that the inkpicture can handle
BMPs, JPGs, GIFs, and ICOs. I've verified all but the JPG (as it doesn't
really pertain to what I'm doing) but I was wondering if there was a way to
use the transparent background found in the GIF and ICO files? The GIFs I
loaded with the inkpicture had their full backgrounds (usually the ugly
fuschia/magenta/magic pink color that I use for background transparency).
The ICOs had a solid black background where the normal transparency is (I'm
guessing its the bitmap without the transparency layer applied). Is there
any way around this, thus making the background of the inkpicture image
transparent?

I've tried Blob as an OLE, which gets me a box, but no image and nothing I
can apply bitmap() to. I've tried a Paint.Picture OLE and PBrush OLE,
neither of which seemed to work or be what I wanted, judging by the forum
comments I've seen. So is there a way to get transparent backgrounds for
images (preferably without having to resort to a 3rd party pay-for OLE/OCX
control)? BTW, I'm using 10.5.2.7826 for refrence.

Thanks for any help and sorry for intruding.

Chris

"Avi" <averell....@gmail.com> wrote in message
news:ac9cca83-3319-42eb...@c34g2000yqi.googlegroups.com...

John Strano[Sybase]

unread,
Aug 5, 2009, 5:39:47 PM8/5/09
to
>> Thanks for any help and sorry for intruding.

No intrusion Chris. No need for an apology.

Hopefully someone with first hand experience will jump in and we'll both
learn something.

--
John Strano - Sybase Technology Evangelist

blog: http://powerbuilder.johnstrano.com/


"Chris Kean" <christop...@stld-cci.com> wrote in message
news:4a79e22d$3...@forums-3-dub.sybase.com...

John Strano[Sybase]

unread,
Aug 5, 2009, 5:47:38 PM8/5/09
to
In PB11.5, picture controls in DWOs now have a TransparentColor attribute.
I feel adding this capability to InkPicture is a good candidate for an
enhancement request.

--
John Strano - Sybase Technology Evangelist

blog: http://powerbuilder.johnstrano.com/


"Chris Kean" <christop...@stld-cci.com> wrote in message
news:4a79e22d$3...@forums-3-dub.sybase.com...

0 new messages