11.01.2013 Views

Oracle Forms Developer – Form Builder Reference, Volume 1

Oracle Forms Developer – Form Builder Reference, Volume 1

Oracle Forms Developer – Form Builder Reference, Volume 1

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

214<br />

The value is returned as a VARCHAR2 and is expressed in the units<br />

defined by the form module Coordinate System property.<br />

Y_POS Returns the y coordinate that reflects the current placement of the<br />

button’s upper left corner relative to the upper left corner of the canvas.<br />

The value is returned as a VARCHAR2 and is expressed in the units<br />

defined by the form module Coordinate System property.<br />

GET_RADIO_BUTTON_PROPERTY examples<br />

/*<br />

** Built-in: GET_RADIO_BUTTON_PROPERTY<br />

** Example: Determine whether a given radio button is<br />

** displayed and has a particular visual<br />

** attribute.<br />

*/<br />

DECLARE<br />

it_id Item;<br />

disp VARCHAR2(5);<br />

va_name VARCHAR2(40);<br />

BEGIN<br />

it_id := Find_Item(’My_Favorite_Radio_Grp’);<br />

disp := Get_Radio_Button_Property( it_id, ’REJECTED’,<br />

VISIBLE);<br />

va_name := Get_Radio_Button_Property( it_id, ’REJECTED’,<br />

VISUAL_ATTRIBUTE);<br />

IF disp = ’TRUE’ AND va_name = ’BLACK_ON_PEACH’ THEN<br />

Message(’You win a prize!’);<br />

ELSE<br />

Message(’Sorry, no luck today.’);<br />

END IF;<br />

END;

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!