IB - Developer Center    Forums  Hop To Forum Categories  FOCUS/WebFOCUS    [SOLVED] graphing is giving me grief
Go
New
Search
Notify
Tools
Reply
  
-star Rating Rate It!  Login/Join 
Member
Posted
Is there some trick to get Focus to respond to any of the setFont commands within the
ON GRAPH SET GRAPHSTYLE * ENDSTYLE block? Some of the font sizes work like 1 to 9. Than everything seems to default to some large font size.

This message has been edited. Last edited by: kerry,
 
Posts: 28 | Location: New Jersey | Registered: July 11, 2005Reply With QuoteEdit or Delete MessageReport This Post
JG
Master
Posted Hide Post
Allen,

What release? What platform?

Can you give a repro using the car, or any other standard IB foc file.

Then you might be overwhelmed with help.
 
Posts: 949 | Registered: February 24, 2005Reply With QuoteEdit or Delete MessageReport This Post
Member
Posted Hide Post
I guess I just expect to be able to type;

setFontSizeAbsolute(getLegendText(),true);
setFontName(getY1Label(),"TimesRoman");
setFontSize(getY1Label(),6);

and than

setFontSizeAbsolute(getLegendText(),true);
setFontName(getY1Label(),"TimesRoman");
setFontSize(getY1Label(),9);

And get different results, just like the documentations examples. Unless there is some other combination of commands needed which are assumed that everyone knows you have to use in addition to the above.
 
Posts: 28 | Location: New Jersey | Registered: July 11, 2005Reply With QuoteEdit or Delete MessageReport This Post
Expert
Posted Hide Post
Allen,

setPlace(false);

T


Old FOCUS coders never die, they just become functionally stable. (Tony A Wink)

Current Client: WebFOCUS 7.6.2 Win XP SP2/IIS 6/Tomcat 5.5 - MRE / BID MS SQL / Oracle - DevStudio 7.6.6 7.1.6
Local: WebFOCUS 7.6.6 7.1.6 on Win XP SP2/Apache/Tomcat 5.5 - Self Service
 
Posts: 2864 | Location: England U.K. (Freelance) | Registered: April 08, 2004Reply With QuoteEdit or Delete MessageReport This Post
JG
Master
Posted Hide Post
Allen,

Totally illogical,

You cannot apply different styling to the same object.

getLegendText() identifies all legends.
It does not take a locator for example getLegendText(1)

Because of that you cannot vary the text size or font of individual legends.
Same applies to labels.
 
Posts: 949 | Registered: February 24, 2005Reply With QuoteEdit or Delete MessageReport This Post
Member
Posted Hide Post
I guess I did not make it clear, if I run the graph with the font value set to 6 and than run it with the font value equal to 9, there is no noticeable difference in the results. I am aware that if I run the graph with different values in the same run, it would not work.
 
Posts: 28 | Location: New Jersey | Registered: July 11, 2005Reply With QuoteEdit or Delete MessageReport This Post
Member
Posted Hide Post
Tony A,
seting setPlace(false), appears to work. But now the x axis is all cramp together. I guess I now have to play around with the font on the x axis now.
 
Posts: 28 | Location: New Jersey | Registered: July 11, 2005Reply With QuoteEdit or Delete MessageReport This Post
JG
Master
Posted Hide Post
OK,

On that basis setPlace(false); as Tony suggested will have an affect, as this default
overides a lot of the API calls coded manually.

Using false however will probabley have a major impact on the output meaning you will have to
include many more API calls to get what you want.

(edit) You replied first Allen and discovered exacrtly what I meant
 
Posts: 949 | Registered: February 24, 2005Reply With QuoteEdit or Delete MessageReport This Post
Member
Posted Hide Post
Tony,
I forgot to tell you thanks for your response. I still working on the font for x axis.
 
Posts: 28 | Location: New Jersey | Registered: July 11, 2005Reply With QuoteEdit or Delete MessageReport This Post
Expert
Posted Hide Post
Allen,

As JG states, setPlace(false); does mean more coding as the auto placement of graph components is turned off. However, I sometimes prefer this as I can control the output more.

As for the x1 axis font, look towards O1Title etc.

T


Old FOCUS coders never die, they just become functionally stable. (Tony A Wink)

Current Client: WebFOCUS 7.6.2 Win XP SP2/IIS 6/Tomcat 5.5 - MRE / BID MS SQL / Oracle - DevStudio 7.6.6 7.1.6
Local: WebFOCUS 7.6.6 7.1.6 on Win XP SP2/Apache/Tomcat 5.5 - Self Service
 
Posts: 2864 | Location: England U.K. (Freelance) | Registered: April 08, 2004Reply With QuoteEdit or Delete MessageReport This Post
 Previous Topic | Next Topic powered by eve community  
 

IB - Developer Center    Forums  Hop To Forum Categories  FOCUS/WebFOCUS    [SOLVED] graphing is giving me grief

Copyright © 1996-2008 Information Builders, leaders in enterprise business intelligence.