Home » U++ Library support » ScatterDraw & ScatterCtrl » ScatterDraw overhaul. Please review
ScatterDraw overhaul. Please review [message #50462] |
Sat, 03 November 2018 10:18 |
|
koldo
Messages: 3398 Registered: August 2008
|
Senior Veteran |
|
|
Good morning
ScatterDraw has had an important overhaul.
In next posts main changes will be shown.
Just minimum changes are expected for actual applications.
However it is advised to check them.
Best regards
Iñaki
[Updated on: Sat, 03 November 2018 10:18] Report message to a moderator
|
|
|
ScatterDraw overhaul. Responsiveness [message #50464 is a reply to message #50462] |
Sun, 04 November 2018 15:34 |
|
koldo
Messages: 3398 Registered: August 2008
|
Senior Veteran |
|
|
Responsiveness is an approach that makes objects render well on a variety of devices and window or screen sizes.
For example:
- An application can be deployed to be used in different devices and screen resolutions.
- A plot that is properly viewed on screen, may be submitted to be published in a book or a journal. Publishers demand either vectorial or high resolution bitmaps (for example, 3000x3000 pixels)
However in ScatterDraw, letter font sizes, plot margins and line widths are defined in pixels.
To solve this drawback, new Responsive() method considers that all plot dimensions in pixels are applied to a 600x400 pixels reference size, and scales up or down all dimensions if control size is bigger or smaller.
Please check the documentation and ScatterCtrl_Demo to see the advantages.
-
Attachment: Capture.JPG
(Size: 72.68KB, Downloaded 427 times)
Best regards
Iñaki
[Updated on: Mon, 05 November 2018 08:06] Report message to a moderator
|
|
|
|
|
Re: ScatterDraw overhaul. Please review [message #50474 is a reply to message #50462] |
Mon, 05 November 2018 21:11 |
Oblivion
Messages: 1135 Registered: August 2007
|
Senior Contributor |
|
|
Hello,
It looks like a default argument is missing:
ScatterDraw.h, ln: 420
void ZoomToFit(bool horizontal, bool vertical = false, double factor = 0);
-----------
^
Or if this is intended, then ScatterDraw_Demo.cpp, ln 46 should be modified:
scatter.ZoomToFit(true); // or false.
Then it works fine.
(By the way, thanks for this package, it is very good and useful!)
Best regards,
Oblivion
Github page: https://github.com/ismail-yilmaz
upp-components: https://github.com/ismail-yilmaz/upp-components
Bobcat the terminal emulator: https://github.com/ismail-yilmaz/Bobcat
[Updated on: Mon, 05 November 2018 21:12] Report message to a moderator
|
|
|
|
|
Goto Forum:
Current Time: Fri Nov 01 00:42:46 CET 2024
Total time taken to generate the page: 0.03067 seconds
|