LAF_XP_Button.java - public properties

 

These properties can be set or read from any Command button whose Implementation Class property is set to:

oracle.forms.fd.LAF_XP_Button

 

 

 

 

SET_IMAGE

SET_IMAGE_OFF

SET_IMAGE_ON

SET_IMAGE_POSITION

SET_SEPARATOR

SET_SHADOW_COLOR

SET_TEXT_POSITION

SET_DEBUG

 

 

 

  1. SET_IMAGE

Set the current image of the button.

property value:

full_image_name[,image_position]

full_image_name can be one of the following:

 

·         image read from the jar file : /image.gif

·         image read from the client machine : c:/image.jpg

·         image read from an internet url: http://…


image_position can be one of the following:

 

·         LT  Left Top

·         CT  Center Top

·         RT  Right Top

·         LM  Left Middle

·         CM  Center Middle

·         RM  Right Middle

·         LB  Left Bottom

·         CB  Center Bottom

·         RB  Right Bottom


-- set an image stored in the jar file at Left Middle position --
Set_Custom_Property( '…', 1, 'SET_IMAGE', '/del.gif,RM' ) ;

 

 

 

  1. SET_IMAGE_OFF


Set the image when the mouse exits the button

property value:

See SET_IMAGE
 

 

  1. SET_IMAGE_ON


Set the image when the mouse enters the button

property value:

See SET_IMAGE

 

 

  1. SET_IMAGE_POSITION


To set the new image position

position can be one of the following:

 

·         LT  Left Top

·         CT  Center Top

·         RT  Right Top

·         LM  Left Middle

·         CM  Center Middle

·         RM  Right Middle

·         LB  Left Bottom

·         CB  Center Bottom

·         RB  Right Bottom


-- set image to Center Middle position --
Set_Custom_Property( '…', 1, 'SET_IMAGE_POSITION', 'CM' ) ;

 

 

 

  1. SET_SEPARATOR


To set the character used to split the label into multiple lines

The default character is | (alt+124)

You can enforce multi-line button’s label by adding this separator in the label property.
e.g.: Label|split on|three lines

Set_Custom_Property( '…', 1, 'SET_SEPARATOR', '^' ) ;

 

 

 

 

  1. SET_SHADOW_COLOR


To set the color used for the label’s shadow

The default color is white

Set_Custom_Property( '…', 1, 'SET_SHADOW_COLOR', '200,200,200' ) ;

 

 

 

 

  1. SET_TEXT_POSITION


To set the text’s position in the button

Available values are:

 

·         Left

·         Center

·         Right



Set_Custom_Property( '…', 1, 'SET_TEXT_POSITION', 'right' ) ;

 

 

 

  1. SET_DEBUG

Turn ON/OFF the debug messages.

By default  the all logs are OFF.

Allowed values are : ‘true’ or ‘false’.

Set_Custom_Property( '…', 1, 'SET_DEBUG', 'true' ) ;