Skip to Main Content

Oracle Forms

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Changing Font Property of TEXT item... Please Help...

MoNoJan 17 2011
Hi Friends...

I'm having 8 List Boxes, 1 text box...

1. Fill Pattern 2. Font Name 3. Font size 4. Fore Ground Color 5. Font Space 6. Font Style 7. Font weight 8. Format Mask.

when i type TEXT in TEXT BOX and select FONT SIZE, FONT NAME, FONT SPACE etc, it has to change accordingly(like we have in MSWORD)...

In this i almost finished all the list boxes...

I'm having SOME FONT NAME IN MY LIST box, when i select the FONT NAME, TEXT should change to that PARTICULAR font...

Now i wrote,

In When_List_Changed TRIGGER in font_name list box:

begin
IF :block3.lst_fontname = 'Times New Roman' THEN
SET_ITEM_PROPERTY('block3.txt_entertxt',FONT_NAME,'Times New Roman');
ELSE
SET_ITEM_PROPERTY('block3.txt_entertxt',FONT_NAME,'Arial');
END IF;
end;

But i need more clearly... i.e i don't need IF STATEMENT...

Instead, when i SELECT "TIMES NEW ROMAN" from list box, TEXT should change to this font...

i.e i need coding like this:

SET_ITEM_PROPERTY('block3.txt_entertxt',FONT_NAME,'block3.txt_entertxt.text');

So that i don't need IF STATEMENT... because i'm having MORE THAT 25 FONT NAME in my list box... so i could not write IF STATEMENT FOR THAT 25 FONT NAME...

Also for other list boxes also i need...

Like this i wrote for 6 LIST BOXES... This is working for 5 list boxes,

1. For FONT STYLE, FONT SPACE, FONT WEIGHT i created visual attributes... and i wrote coding:

In When_List_Changed TRIGGER in font_space list box:
begin
IF :block3.lst_fontspace = 'Dense' THEN
SET_ITEM_INSTANCE_PROPERTY('block3.TXT_ENTERTXT',CURRENT_RECORD,VISUAL_ATTRIBUTE,'FONT_SPACE1');
ELSE
SET_ITEM_INSTANCE_PROPERTY('block3.TXT_ENTERTXT',CURRENT_RECORD,VISUAL_ATTRIBUTE,'FONT_SPACE2');
END IF;
end;

FONT STYLE and FONT WEIGHT is working.... but FONT SPACE IS not working...

2. I Don't know how(or what) to write for FILL PATTERN and FORMAT MASK...

3. WHEN I SELECT FONT WEIGHT AND FONT STYLE, only ONE is changing... i.e when i CHANGE FONT WEIGHT to BOLD, the TEXT becomes BOLD and after that, when i CHANGE FONT STYLE to underline, nothing is HAPPENING... either FONT STYLE or FONT WEIGHT IS changing...

Please Help me...

Thanks in advance...
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 14 2011
Added on Jan 17 2011
0 comments
938 views