Home » Developer & Programmer » Forms » How do I set global font (Type and Size) setting in forms?
How do I set global font (Type and Size) setting in forms? [message #272532] Fri, 05 October 2007 07:41 Go to next message
askshirsagar123
Messages: 1
Registered: October 2007
Location: India
Junior Member
Dear,

I am working on Japanese project.

We want to set globally MS PGothic font for prompt, radio button, button, and text fields. We have developed following code but some time it works and some time do not. Request you to please review and provide your guidance,comments. Follwoing is the code.

PROCEDURE Set_Item_Font(pItem IN VARCHAR2) IS
dv number ;
v_fn varchar(50) ;
BEGIN

SET_ITEM_PROPERTY( pItem, VISUAL_ATTRIBUTE , VA_PROMPT);
SET_ITEM_PROPERTY( pItem, VISUAL_ATTRIBUTE , VA_COMMON);
dv := 1 ;

SET_ITEM_PROPERTY(pItem, FONT_NAME,'MS PGothic') ;

dv := 2 ;
SET_ITEM_PROPERTY(pItem, FONT_SIZE , 8 ) ;
dv := 3 ;
SET_ITEM_PROPERTY(pItem, FONT_SPACING ,'Normal') ;
dv := 4 ;
SET_ITEM_PROPERTY(pItem, FONT_STYLE ,'Plain') ;
dv := 5 ;
SET_ITEM_PROPERTY(pItem, FONT_WEIGHT ,'Demilight');
dv := 6 ;

SET_ITEM_PROPERTY(pItem, PROMPT_FONT_NAME ,NULL) ;

dv := 7 ;
SET_ITEM_PROPERTY(pItem, PROMPT_FONT_SIZE , 8 ) ;
dv := 8 ;
SET_ITEM_PROPERTY(pItem, PROMPT_FONT_SPACING ,'Normal') ;
dv := 9 ;
SET_ITEM_PROPERTY(pItem, PROMPT_FONT_STYLE ,'Plain') ;
dv := 10 ;
SET_ITEM_PROPERTY(pItem, PROMPT_FONT_WEIGHT ,'Bold');

exception
when others then
dbg( pItem || ' debug value # '||to_char(dv) ) ;

END ;


Many thanks for your help.

Thanks and REgards,
Avinash
Re: How do I set global font (Type and Size) setting in forms? [message #272869 is a reply to message #272532] Mon, 08 October 2007 01:47 Go to previous message
djmartin
Messages: 10180
Registered: March 2005
Location: Canberra ACT Australia
Senior Member
Account Moderator
Have you considered using a defined 'visual attribute' either in the form or in an inherited object group?

What sort of output are you getting from your form when you run your code?

David
Previous Topic: Making use of password change function through forms
Next Topic: Multiple Session of forms
Goto Forum:
  


Current Time: Tue Dec 06 08:48:57 CST 2016

Total time taken to generate the page: 0.13464 seconds