Thanks for your response, Razzak, please see my comments below yours:

Regards,
Alastair.


----- Original Message -----
From: "A. Razzak Memon" <[EMAIL PROTECTED]>
To: "RBASE-L Mailing List" <[EMAIL PROTECTED]>
Sent: Monday, January 13, 2003 1:47 PM
Subject: [RBASE-L] - Re: Fw:CriteriaForMyUnstablenessWithR:Base6.5++Build
1.862


>
> At 01:15 PM 1/13/2003 +0000, Alastair Burr wrote:
>
>  >I've created a form with a text button and a clickable image.
>
>  >The text button returns the text to CVAL('Form_Field_Name')) but the
image
>  >doesn't.
>
>  >So I changed the image button to text and let it accept the default
text -
>  >the filename without the extension - and tried that. It worked.
>
>  >I then changed the  same text button that was an image back to its image
and
>  >R:Base hung when I tried to save the form which takes us neatly back to
>  >square one.
>
> Alastair,
>
> Looks like you definitely have a problem with your Images.
>
> 01. What kind of image(s) are you using?
> I mean what type? BMP, JPG, GIF?

I started with JPGs but following your last suggestion I converted them to
BMPs.

> 02. What is the size of those images?

4 have a filesize of 43,486 bytes and physical size of 237 x 61 pixels with
16.7 million colours (24 bit)
1 has a filesize of  75,654 bytes and physical size of 504 x 50 pixels also
24 bit.

> 03. What program did you use to create those images?

A mixture of sources, but PaintShopPro to edit and save as JPG then
PaintShopPro to batch convert to BMP.

> 04. Does your PC include the environments for TEMP and TMP?

Yes, both. SET at a Dos prompt shows:
TEMP=C:\TEMP
TMP=C:\TEMP
and the directory exists.

> 05. Have you tried the BMP Button Images bundled with R:BASE 6.5++
> for Windows?

Give me a mo'...
I copied CCC.BMP from ConComp to my test directory and created a new button
using it on the form.
Button at: x:133 y:345 cx:231 cy:289, runs this eep:
SET VAR vButton TEXT = NULL
SET VAR vButton = (CVAL('Form_Field_Name'))
RECALC VARIABLES
RETURN
I have a text button and my larger image button also on the form with the
variable vButton. Nothin else. All 3 buttons run the same eep.
Clicking on either image leaves vButton as null but the text button returns
the button text the the field.
(There must be a use for that - I didn't know it could be done - show the
user what was last clicked on.)

> C:\RBTI\RBWin65\Samples\History
>
> 06. Do you have any problem using the "History" demo.

No, it works just fine.

> RUN History.DAT
>
> That demo also demonstrates the use of  Push Button Objects
> using images in EEPs.

I'll read/check through the History.DAT file later this evening to see if I
can find anything that helps or shows me if I am doing something wrong.

> Hope that helps!
>
> Very Best Regards,
>
> Razzak.
>

Reply via email to