Home » SQL & PL/SQL » SQL & PL/SQL » Re: Changing the Visual Attributes using mouseover/mouse off
Re: Changing the Visual Attributes using mouseover/mouse off [message #671] Tue, 26 February 2002 04:59
pratap kumar tripathy
Messages: 660
Registered: January 2002
Senior Member
see this documentation
-----------------------

Oracle Forms supports two button styles: text and iconic. A button is iconic
style if the Iconic property is TRUE for the button, otherwise the button is
text style.

Text Buttons:
-------------
Text buttons take the color set in the Microsoft Windows Control Panel, and
the color cannot be changed from Oracle Forms.

You can change the color of ALL buttons in all applications, including those
for non-Oracle products, using the Microsoft Windows Control Panel. You cannot
change the color of an individual button in a specific application using the
Control Panel.

1. Select Main->Control Panel->Colors from the Microsoft Windows
Program Manager

2. Click on the Color Palette button to change the color of an individual
screen element.

3. There are four screen elements that apply to buttons: Button Face, Button
Shadow, Button Text and Button Highlight. Select the screen element that
you would like to change the color of.

4. Select the color for the screen element

5. Press OK when you have completed specifying the colors and wish to save
these changes. You do not have to exit the Oracle Forms designer for these
changes in Control Panel to take affect in Forms.

Remember that these color changes from the Microsoft Windows Control Panel
affect all Microsoft Windows button attributes.


Workaround:
-----------

Use an iconic button instead of a text button.

You can change the color of an iconic style button by setting the Background
Color, Foreground Color and/or Visual Attribute properties for the item. If
the Icon Style = TRUE and Icon Name = <blank>, the button color could be
changed by setting these properties. But, iconic buttons are displayed as
graphic icons without text labels. This means that any Icon Label defined
will not display on the button. A boilerplate text item would not work as a
label, because the boilerplate text cannot be arranged on top of the button
item. ( Note: the Bring/Send to Back and Move Forward/Backward Menu options
apply only to boilerplate text objects and have no affect on the button item.)
The boilerplate text would have to display outside of the button.

Probably the best way to achieve a custom colored button with a label is to
create an icon with the desired colors and text. The .ico file name
associated with the button would be specified in the Icon Name property for
the button.

====================

The Microsoft Windows toolkit does not currently support individually changing
the color of a button, thus the color of button items cannot be changed using
Oracle Forms.
Previous Topic: Re: How do i populate a LOV with values from a cursor?
Next Topic: Re: How do i populate a LOV with values from a cursor?
Goto Forum:
  


Current Time: Thu Apr 25 08:21:18 CDT 2024