Login Page - Create Account

Support Board


Date/Time: Sat, 23 Nov 2024 04:15:55 +0000



Post From: Detect changes in Window Size/scale

[2013-04-29 23:03:35]
ejtrader - Posts: 688
SC Team - Have been using the new GDI capabilities you have introduced and has been working fine.

In order to avoid un-necessary calculations - Need some kind of an universal flag to say - Window properties is changed so that I can re-polulate data meant for GDI.

Typical conditions for this that I can think of:
- Scroll bar is used ( value of 1 )
- Window Height is changed ( value of 2 )
- Chart scale is changed ( value of 3 )
- or any other typical window property is changed that you can think of that would cause the display dimentions/visible candles to change. ( some numeric value )

Would it be possible for you to provide a function - that says - " sc.ChangeWinProp " ? Basically need a function determine whether the recalculation of any co-ordinates are needed in an efficient manner rather than performing the objects/co-ordinates on every tick. However I do understand the need to "paint" on every tick.

PS: you might be already capturing these events already to account for all the above events.

Thanks
Date Time Of Last Edit: 2013-04-30 03:16:19