supersayian2224
2012-07-29 22:29:35
Hi! Just wondering if anyone managed to get the preemptile runespan script up and running – I've tried updating the script but it's still giving me the old Unknown identifier 'SmartGetDebugDC' at line 353
2012-07-29 22:29:35
2012-07-29 23:34:03
From: Brandon
In the above, It shows an example of how to draw on Smart 7.X++ Manually and Automatically. By Manually it means without SmartGraphics.Simba. Some scripts still use SmartGetDebugDC and TCanvases for drawing on Smart. Inorder to port those scripts to Simba 0.99 and draw on Smart Manually, you need to learn how to use SetPersistentMemoryBitmap and ResetPersistentMemoryBitmap. The first will make our bitmap use Smart's Canvas. Whatever is drawn on our bitmap will be drawn on Smart's canvas. The second function will reset the memory pointer. This will prevent leaks. It is recommended to use SmartGraphics for drawing on Smart if you are in-experienced. Smart_DrawBitmap and Smart_DrawTextMulti will do the same thing and is MUCH MUCH easier!
Note: The Automatic Drawing Example does the EXACT same thing as the Manual Drawing Example is it is much shorter and easier.