Real Software Forums

The forum for Real Studio and other Real Software products.
[ REAL Software Website | Board Index ]
It is currently Thu Sep 19, 2019 7:48 am
xojo

All times are UTC - 5 hours




Post new topic Reply to topic  [ 9 posts ] 
Author Message
 Post subject: Monkey Software - Chart Director
PostPosted: Wed Jun 23, 2010 10:44 pm 
Offline

Joined: Sat Oct 21, 2006 6:03 pm
Posts: 70
I want my labels to look like "123", but cannot figure out how keep them from looking like "123%"

How do I use Parameter Substitution and Formatting for this?

The documentation is confusing, so please be specific.


Top
 Profile  
Reply with quote  
 Post subject: Re: Monkey Software - Chart Director
PostPosted: Thu Jun 24, 2010 4:40 am 
Offline
User avatar

Joined: Wed May 10, 2006 2:42 pm
Posts: 2985
Location: Germany
Did you read the FAQ entry on Substitution and Formatting?
http://www.monkeybreadsoftware.net/faq- ... ting.shtml

To have %, I think you need to specify % somewhere in the label format, so if you want to remove it, change the label formats in your code.

Greetings
Christian

_________________
See you in Orlando, Florida for Real World 2013
More details and registration here:
http://www.realsoftware.com/community/realworld.php


Top
 Profile  
Reply with quote  
 Post subject: Re: Monkey Software - Chart Director
PostPosted: Thu Jun 24, 2010 11:40 am 
Offline

Joined: Sat Oct 21, 2006 6:03 pm
Posts: 70
There's the problem ... the documentation appears to read { value } as opposed to {value}


Top
 Profile  
Reply with quote  
 Post subject: Re: Monkey Software - Chart Director
PostPosted: Thu Jun 24, 2010 1:28 pm 
Offline
User avatar

Joined: Wed May 10, 2006 2:42 pm
Posts: 2985
Location: Germany
Ok.

By the way if you have a problem with ChartDirector, you can send me an email and if possible include an example project.

Greetings
Christian

_________________
See you in Orlando, Florida for Real World 2013
More details and registration here:
http://www.realsoftware.com/community/realworld.php


Top
 Profile  
Reply with quote  
 Post subject: Re: Monkey Software - Chart Director
PostPosted: Sun Jul 11, 2010 10:14 pm 
Offline

Joined: Sat Oct 21, 2006 6:03 pm
Posts: 70
I'm trying to use a scroll bar on a canvas. But I'm struggling.

So, I've tried to send my chart to a buffer, but it's not drawing:

Graph is the window. canGraph is the canvas. buffer is a globel defined as picture.

Graph.Width = 850
Graph.Height = 800
Graph.canGraph.Width = 800
Graph.canGraph.Height = 706
graph.ScrollBar1.Left = 812
graph.ScrollBar1.Height = 706
Graph.buffer = new picture(800, 706, 32)
Graph.buffer = m.makeChartPicture
Graph.Show

canGraph.Open =

Sub Open
graphics.drawpicture buffer, 0, 0
end Sub

Any suggestions?


Top
 Profile  
Reply with quote  
 Post subject: Re: Monkey Software - Chart Director
PostPosted: Sun Jul 11, 2010 10:25 pm 
Offline

Joined: Tue Oct 06, 2009 2:38 am
Posts: 435
Put the drawing code in the Paint event of the Window, instead of Open.


Top
 Profile  
Reply with quote  
 Post subject: Re: Monkey Software - Chart Director
PostPosted: Wed Jul 14, 2010 8:53 pm 
Offline

Joined: Sat Oct 21, 2006 6:03 pm
Posts: 70
thanks ... much better method. But, now my convas is scolling too far.

I'm using "Me.graphics.drawpicture buffer, 0, -(canGraph.Height*scrollbar1.value/100)" in the paint.

Any idears?


Top
 Profile  
Reply with quote  
 Post subject: Re: Monkey Software - Chart Director
PostPosted: Wed Jul 14, 2010 9:04 pm 
Offline

Joined: Fri Jan 06, 2006 3:21 pm
Posts: 12388
Location: Portland, OR USA
First, use "g" instead of "me.graphics".

Second, set the scrollbar maximum to the number of pixels you can scroll (height of content minus height of visible area). Draw using simply "-scrollbar1.value)".

HTH,
Tim


Top
 Profile  
Reply with quote  
 Post subject: Re: Monkey Software - Chart Director
PostPosted: Wed Jul 14, 2010 9:12 pm 
Offline

Joined: Sat Oct 21, 2006 6:03 pm
Posts: 70
there we go: KISS (Keep It Simple SH*thead)


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 9 posts ] 

All times are UTC - 5 hours


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group