Home » Community » Newbie corner » [solved] Register a callback on "when window resized" ? (Would like to change ScatterCtrl grid major unit when resized)
[solved] Register a callback on "when window resized" ? [message #52786] |
Sun, 24 November 2019 23:35  |
xrysf03
Messages: 43 Registered: November 2018 Location: CZ
|
Member |
|
|
Dear everyone,
another rookie question:
So I have this toy app - a main window, containing a handful of uninteresting controls, and a large ScatterCtrl to plot some data. That ScatterCtrl is "anchored" to all four edges of the main window = scales with the window.
And the question is:
Is there an overridable callback, or an event / WhenSomething that I could use, that gets called "on Window resize"? Actually on window resize or on ScatterCtrl resize.
The point is: I'd like to update the axis major units (grid spacing) in response to the control changing dimensions. I already know how to set the grid units/dimensions, but I don't know how to have myself woken up when the ScatterCtrl's pixel dimensions change.
Thanks in advance for any ideas...
Frank
[Updated on: Sun, 08 December 2019 14:13] Report message to a moderator
|
|
|
Goto Forum:
Current Time: Tue May 13 20:28:44 CEST 2025
Total time taken to generate the page: 0.01201 seconds
|