PDA

View Full Version : [Beta] thinBasic Beta 1.9.6.0



ErosOlmi
05-05-2013, 20:59
thinBasic Beta 1.9.6.0

Download from: http://www.thinbasic.biz/projects/thinbasic/thinBasic_1.9.6.0.zip

This is a real Beta in the sense there is a lot of new features all (more or less) to be finished and fully documented.
So, please use this version only for testing and not for real production scripts.

Have a look and please report any impression/problem/likes always remembering it is a beta!!!!!

This is an emergency update over thinBasic Beta 1.9.5.0 (http://www.thinbasic.com/community/showthread.php?12057-thinBasic-Beta-1-9-5-0)

Fixed some bugs
Added latest TBGL module from Petr Schreiber



Known bugs:
among others (I hope not so many) I know there is a bug in this version when creating bundled exe. Some process can sometimes fail due to incorrect TOC inside Exe. I'm working on solving this problem asap.


Ciao.
Eros

gddeluca
05-05-2013, 22:37
Eros: I've only done a very quick test, nothing exhaustive, but it seems to have cleared up my reported problem nicely. Thank you so much for working out this fix. I well know what a pain it can be to chase and fix bugs in old releases that you'd like to keep frozen while you work on your next 'real' release. This is much appreciated.

If anything turns up in further testing, I'll get back to you.

George

ErosOlmi
05-05-2013, 22:42
Great.

To be able to test embedding features, thinBasic Core Engine is now included into thinAir editor as scripting engine, more or less like you are doing with your SPFLite editor.
This will allow me to fully test thinCore as scripting language and, in future releases, to add scripting features to thinAir editor.

Ciao
Eros

gddeluca
05-05-2013, 23:16
Eros: Sounds good for thinAir. So far, my experience with using thinBasic in embedded mode has been excellent. It has worked flawlessly (other than this little USES problem) and creating the private functions to interface with SPFLite has been so simple it's hard to believe. Yes, SPFLite is written in PowerBasic which makes this so easy, but your basic design for all this has stood up very well, you are to be congratulated.

George

Billbo
06-05-2013, 00:34
Eros,

I am curious. Here we are at 1.9.6.0 Beta, and the latest stable version is 1.8.9.0. How does
it make you feel that number six(6) on the "Most Viewed Threads" list is thinBasic beta 1.7.10.0?
You know something, I'll just consider the list as outdated.

Bill

ErosOlmi
06-05-2013, 00:51
:) because that version remained a lot the current version.
So many users opened it and forum counters ... counted. If you look at that thread you will see it has 15 pages of posts.

Billbo
06-05-2013, 04:58
Eros,

I understand. By "a lot," you mean "a long time." Oh, and I'm not making
any fun of your English. Hell, you're Italian, Petr is Chezh, I'm American
and both of you explain things in my language better than I can. BTW.
I've been to Italy three times. Once in '67 and twice in '70. I was Air
Force.

Keep up the great work.

Bill

ErosOlmi
06-05-2013, 05:54
Yes, correct ;)
Version 1.7.10 remained current version for a long time.

Well, I would like my English to be much better but it would require to use it on a daily basis. Unfortunately in my current job I do not use English at all since 10 years.
I use English for supporting thinBasic, when using the web and reading technical books (which I buy only in English).

ReneMiner
06-05-2013, 07:44
I have to admit- I was nosy and checked out Help\What's new... There I found some interesting remark: First usage of thinAir Core engine as scripting engine for thinAir. In future versions this will allow thinAir to be scriptable.
Because I could not find any further explanation in the help, I went to discover via Explorer into the depth of thinBasic-subfolders and what shall I tell- in thinBasic\thinAir-subfolder there is a scripting-subfolder too. In there I found some "Test_000.tBasic" with some few unbold keywords and trying to run results in "RUNTIMEERROR 0"...so this cannot be it...
Is there anything of this "scriptability" already available to try out? Will it allow to process text as if it was code? Or is it just the roots inside with no further functions for now?

ErosOlmi
06-05-2013, 08:13
Hi Renč,

You are a great discovery man.

No, I'm sorry, this is not the dynamic text code execution functionality you was waiting, but I'm working on that and in future beta updates you will start to see something.

What I started to add into thinAir is the ability to script/automate thinAir using thinBasic Core engine.
For the moment is just a small start whose target is to verify this possibility and solve top problems.

To test a script working from inside thinAir, open the script you mentioned above an than right click on its Tab and choose "execute as scripting ..." (Or something like that, I'm traveling to work right now and I do not remember exact menu text). The script will be loaded and executed from inside thinAir allowing thinAir to add new functionality on the fly (the new undocumented functions whose name start with thinAir_ ...)

More info in next update.

Ciao
Eros




Sent from my iPhone using Tapatalk

Petr Schreiber
06-05-2013, 09:17
I am really curious how far the ThinBASIC embedding could be pushed. I consider this area very interesting.

For random forum visitors - this release contains updated TBGL module with support for Drag&Drop. If you ever tried to do this using Win32 API, you are probably gray haired man now. With TBGL, it gets more simple:

Step #1: Subscribe for receiving notification about files being dragged to your window


' -- The following enables programmer to handle dropping files to window
' -- The window is identified via hWnd handle
' -- Once the event occurs, the function Main_OnDropFiles will be launched
TBGL_BindWindowEvent(hWnd, %TBGL_OnDropFiles, Main_OnDropFiles)

Of course -the function does not need to be called Main_OnDropFiles, you are free to choose any other function name.

Step #2: Handle the event


' -- Function fired thanks to previous bind using TBGL_BindWindowEvent
Function Main_OnDropFiles()

' -- Retrieve number of files
Long nFiles = TBGL_OnDropFiles_GetFileCount()
Long i

' -- Iterate through all of them and list their names
For i = 1 To nFiles
MsgBox TBGL_CallingWindow, "File " + Format$(i) + " is " + TBGL_OnDropFiles_GetFileName(i)
Next

End Function



Petr

ReneMiner
07-05-2013, 14:31
Some nosy question here: I checked the inc/lib-folders for freeimage - there's none inside...haven't they been there before some time?


so I downloaded from sourceforge (http://sourceforge.net/projects/freeimage/?source=dlp) and play around with the vb-wrapper in thinAir ;)

... now there are a few things inside that let me wonder a little bit, a couple of very specific types and constants that become blue and bold... so is there some FreeImage-module or new wrapper planned? Or this just coincidences?
for example this:


%BLACKONWHITE ' As Long = 1
%WHITEONBLACK 'As Long = 2
%COLORONCOLOR ' As Long = 3

'or
Type RGBQuad
Type RGBTriple

become bold'n blue.
might I just make seperate constants or take them as they are in tB? - Or should I stop playing around with that wrapper?

ErosOlmi
07-05-2013, 22:20
Yes, they are defined into UI module.

Regarding FreeImage I had some ideas in the past but very little time to work on it.
I wanted to create a thinBasic module.

I have the attached INC file, quite old.
Maybe it can help.

ReneMiner
08-05-2013, 14:39
Here's my answer - with yours up there and the one of Petr I was able to compare & find out about some variable-types & stuff- there's some small incompatibility with some types (dynamic UDT-subsets) - which I left in commented - also there are a few Functions wich await some
"Optional Byval Value As Whatever = 123" - I'm not sure about them so I left the defaults commented near the function. But this needs new Version 3.15.4. (http://sourceforge.net/projects/freeimage/?source=dlp) of freeImage.dll which you'll find inside \Dist-Subfolder there.

It's pretty much plain Basic since I took the vb6-wrapper as a base for this - and I tried to arrange it as clearly as possible to keep overview :)

Billbo
09-05-2013, 03:02
Hi, all,

Of the two(2) FreeImage,zip's on this page, do either or both
have anything to do with the FreeImage.dll that is in Rene's
TBGL3dEd1.05b.zip?

Bill

ReneMiner
09-05-2013, 04:22
the one that is included in TBGL3dEd is an older version of freeImage.dll but serves to load common texture-files. The new version can load more different formats and also has a few changed and a couple of new functions.
You should not use the inc-files posted here together with the freeImage.dll which is included in 3d-Ed-download.
But you can use the new version (3.15.4. see links post above) of freeImage.dll together with 3d-Ed/ or replace the one in 3d-Ed-folder. All used functions still work the same way. Although the version 3.I.dunno something has only half the size and as long as I don't use any functions of the new freeImage.dll it will serve the purpose.