Re: Properties of non-iconic buttons

From: Vagdevi <Vagdevi_at_Netscape.net>
Date: Thu, 11 Feb 1999 23:08:43 -0600
Message-ID: <36C3B75B.15D36C2D_at_Netscape.net>


Sorry! You can't change the color for buttons.

But you can create image items with colorful pictures and write your code in WHEN-IMAGE-PRESSED trigger.
The catch is you can not assign a picture at design time. You have to populate the image items before starting the form in PRE-FORM or WHEN-NEW-FORM-INSTANCE trigger with READ_IMAGE_FILE procedure.

With this your form looks colourful and works the same way as regular buttons.

Suresh


Mattias Bendtsen wrote:

> Hi all!
>
> Does anyone know of a way in Form Builder to create non-iconic buttons
> (buttons with text labels that is) with other colour than the default
> color, gray?
>
> It seems to me that the only way to do this is to create pictures with
> the appropiate text, set the button type to iconic and then use the
> image file as icon. If this is the way to do it, which icon formats are
> supported? If there is a smarter way, please tell me.
>
> If replys are sent directly to the list, please cc my personal adress.
>
> Regards,
> Mattias Bendtsen
Received on Fri Feb 12 1999 - 06:08:43 CET

Original text of this message