It runs pretty well, only thing is the dragging which does not always respond - quite hard to meet the points if not "show projection" checked.
Can you make a favor?
Attached to this post an example of new functionalities will be present in next thinBasic beta 1.9.7.0
Can you please try it and let me know if any problem?
Also let me know your OS version.
It is a little Canvas control showing Bezier curves Windows Api.
This example will be released as source code in next thinBasic version.
Thanks a lot
Eros
PS: merit of source code goes to Jordi Vallès, a PB user that published the original example at http://www.powerbasic.com/support/pb...ghlight=bezier
I just translated it into a thinBasic source code.
Last edited by ErosOlmi; 28-05-2013 at 07:17.
www.thinbasic.com | www.thinbasic.com/community/ | help.thinbasic.com
Windows 10 Pro for Workstations 64bit - 32 GB - Intel(R) Xeon(R) W-10855M CPU @ 2.80GHz - NVIDIA Quadro RTX 3000
It runs pretty well, only thing is the dragging which does not always respond - quite hard to meet the points if not "show projection" checked.
I think there are missing some Forum-sections as beta-testing and support
Example runs great here,
only thing from graphic maniac - I would recommend to double buffer the rendering, to avoid flicker when changing parameters (roundness).
This is done easily - by attaching the canvas with TRUE flag and calling Canvas_Redraw after both background and points/lines are drawn.
Petr
Last edited by Petr Schreiber; 28-05-2013 at 09:41.
Learn 3D graphics with ThinBASIC, learn TBGL!
Windows 10 64bit - Intel Core i5-3350P @ 3.1GHz - 16 GB RAM - NVIDIA GeForce GTX 1050 Ti 4GB
Works fine here on Windows7 32bit.
Maybe one day there will be thinAutocad!
Steve.
Source code of this example has been released with thinBasic 1.9.7.0
It can be found after installing thinBasic under \thinBasic\SampleScripts\UI\Canvas\Bezier\ directory.
Have fun
www.thinbasic.com | www.thinbasic.com/community/ | help.thinbasic.com
Windows 10 Pro for Workstations 64bit - 32 GB - Intel(R) Xeon(R) W-10855M CPU @ 2.80GHz - NVIDIA Quadro RTX 3000
Bookmarks