U++ framework
Do not panic. Ask here before giving up.

Home » Community » Newbie corner » (SOLVED) ScatterCtrl, 2 questions.
Re: ScatterCtrl, 2 questions. [message #40663 is a reply to message #40656] Thu, 29 August 2013 08:08 Go to previous messageGo to previous message
koldo is currently offline  koldo
Messages: 3464
Registered: August 2008
Senior Veteran
Hello rxantos

It is done. Added and documented SetMinRange(), SetMaxRange(), SetMinXmin(), SetMinYmin(), SetMaxXmax(), SetMaxYmax().

To try to compensate the delay, the control now highlights when a limit in zoom or scroll is reached Smile

You could put this in your code:
.SetMaxRange(1000).SetMinRange(10).SetMinXmin(0).SetMaxXmax(1000);


In addition instead of rand() there is a Random(dword max) to get a random number smaller than max.

My next comment was wrong Rolling Eyes SetMaxZoom() == SetMaxRange(). It sets the visible data range.
Quote:

Your use of SetMaxZoom(NPOINTS) is not right as it works with zoom factor instead of with data range.



Best regards
IƱaki
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message icon14.gif
Read Message
Previous Topic: Can't add asembly from bazzar
Next Topic: Painter 2.0 Path definition: mix of cubics and quadratics
Goto Forum:
  


Current Time: Fri Oct 09 18:23:52 GMT+2 2026

Total time taken to generate the page: 1.56713 seconds