Support Board
Date/Time: Tue, 26 Nov 2024 00:32:19 +0000
Post From: Access data using GDIFunction DrawToChart()
[2024-01-21 03:08:44] |
User895355 - Posts: 55 |
Ok, I'm getting there, you'll see the price displayed in the DrawToChart(HWND WindowHandle, HDC DeviceContext, SCStudyInterfaceRef sc) window/rectangle on the right with letters next to them(The beginnings of a static TPO chart) in the attached image. Two things:1. Can I make the window scrollable, or can I make that rectangle a scrollable list or something? 2. Frequently crashes Sierra. I have this: if (sc.LastCallToFunction || sc.IsFullRecalculation) { if (tpoMap != NULL) { sc.FreeMemory(tpoMap); delete tpoMap; sc.SetPersistentPointer(sc.Input[0].GetInt(), NULL); tpoMap = NULL; } return; } std::map<float, std::vector<char>>::iterator it;
do I need to delete and free up that memory too?https://www.sierrachart.com/image.php?Image=1705805956782.png Date Time Of Last Edit: 2024-01-21 03:26:09
|
tpoDisplay.png / V - Attached On 2024-01-21 02:57:08 UTC - Size: 41.2 KB - 51 views |