Xojo Conferences
MBSSep2018MunichDE
XDCMay2019MiamiUSA

ImageWell Must Have PICT? (Real Studio network user group Mailinglist archive)

Back to the thread list
Previous thread: Problems with Exceptions (was Re: Bizarre problem with canvas)
Next thread: Interface and background under OS X


Re: Oracle plugins   -   AugSoft
  ImageWell Must Have PICT?   -   Don Lavelle
   Re: ImageWell Must Have PICT?   -   Christian Schmitz
   Re: ImageWell Must Have PICT?   -   Christian Schmitz
   Re: ImageWell Must Have PICT?   -   Frank Bitterlich
   Re: ImageWell Must Have PICT?   -   Joe Huber

ImageWell Must Have PICT?
Date: 30.07.02 19:23 (Tue, 30 Jul 2002 14:23:57 -0400)
From: Don Lavelle
Hi,

I was doing something with an image well, when I found this code didn't
work:

b = SelectColor(c, "Select fill color.")
if b then
fillColorD = c
p = NewPicture(imageWellFill.width, imageWellFill.height,
Screen(0).depth)
p.graphics.ForeColor = c
p.graphics.FillRect 0, 0, imageWellFill.width, imageWellFill.height
imageWellFill.image = p
end if

p is a legit picture though. I can set Self.backDrop = p an (ugly but)
correctly drawn window.

I checked the reference and it says than the .Image property is the
"Picture displayed in the ImageWell. Picture musy be a PICT."

I'm doing something with fill patterns and fill colors, á la AppleWorks.

So how can I cram a home-made solid-color picture into an image well? =)

TIA,
Don

---
Subscribe to the digest:
<mailto:<email address removed>>
Unsubscribe:
<mailto:<email address removed>>

Re: ImageWell Must Have PICT?
Date: 01.08.02 22:17 (Thu, 1 Aug 2002 23:17:33 +0200)
From: Christian Schmitz
> Hi,
>
> imageWellFill.image = p
>
> I checked the reference and it says than the .Image property is the
> "Picture displayed in the ImageWell. Picture musy be a PICT."

I've just made a new function to my plugin called picture.pichandle to
convert any Realbasic picture into one containing PICT data like in this
example:

dim p as picture

p=newpicture(100,100,32)
p.graphics.drawline 0,0,100,100

imageWell1.Image=p.picHandle

Mfg
Christian

Re: ImageWell Must Have PICT?
Date: 30.07.02 23:27 (Wed, 31 Jul 2002 00:27:12 +0200)
From: Christian Schmitz
> Hi,
>
> So how can I cram a home-made solid-color picture into an image well? =)

Please contact me off the list. Maybe I can try something tomorrow.

Mfg
Christian, tired.

Re: ImageWell Must Have PICT?
Date: 31.07.02 11:15 (Wed, 31 Jul 2002 12:15:21 +0200)
From: Frank Bitterlich
Did you try to use an "empty" imagewell (just for the border), and put
an ordinary canvas on to of it, that will hold your picture?

Cheers,
Frank+++

Don Lavelle wrote:
...
> I checked the reference and it says than the .Image property is the
> "Picture displayed in the ImageWell. Picture musy be a PICT."

Re: ImageWell Must Have PICT?
Date: 31.07.02 21:12 (Wed, 31 Jul 2002 13:12:22 -0700)
From: Joe Huber
>Did you try to use an "empty" imagewell (just for the border), and put
>an ordinary canvas on to of it, that will hold your picture?

Hi frank

Not sure which OSs the original poster cared about...

This is a very good alternative on the Mac OS, especially on OSX
where the Image Well frame is curved and casts nice shadows.

But on windows the ImageWell overwrites and destroys the canvas even
if the Canvas is on top of the Image Well. Luckily on windows the
ImageWell itself is easy to recreate in a canvas since it's just a
shaded rectangle.

Hope this helps,
Joe Huber

---
Subscribe to the digest:
<mailto:<email address removed>>
Unsubscribe:
<mailto:<email address removed>>