|
Post by danteel on Apr 7, 2018 20:11:04 GMT -5
Reposting from the old forums, LBGfx is a graphics box replacement that is very similar to the native graphic box, but is double buffered so you can have flicker free graphics without adding a lot of complexity to your code to not only draw the buffers, but also having a timer to refresh that buffer. The zip with the DLL, source code to the DLL, and BAS example files is here for you to download and mess around with. DownloadAll the functions/subs/commands are documented in DocumentationIf you want to handle mouse and keyboard events like you would with a native graphicbox, its really easy. You setup a dummy graphicbox in your window, and pass that handle to the function that creates the LBGfx box. You do the mouseMove/leftButtonDown/etc commands the dummy box, and when an event happens to the LBGfx box, it will be sent also to the dummy box so you can process those events. Its open source/public domain, do whatever you want with it. I'm continuing work on it and would love any feedback anyone has.Last update version 10, 3Mar17 -Added loadImage function, load a jpg/png/gif -Added saveImage function, save an HBITMAP as a jpg/png/gif If you're havin issues, take a look at these guys: -I'm setting a scroll area bigger then my screen, but stuff I draw to it isnt showing up. Possible reason: When you set the scroll area with scrollyon or scrollxon, at that point it resizes the buffer, so if you were drawing outside of the screen size before using scrollxyon, you wont be able to see those graphics. You should set the scroll area before drawing to those areas. -I cant see nothing Possible reason: Dont forget to issue the 'flip' command.
|
|
|
Post by Alyce Watson on Apr 8, 2018 6:51:01 GMT -5
Thanks for posting this Dan. It is impressive and useful and I'm happy to see it here on the new forum. Bravo!
|
|