PDA

View Full Version : thinBasic preview version 1.5.0.1



ErosOlmi
26-10-2007, 19:22
Here we are again with a new development line: thinBasic preview version 1.5.0.1

As started we can serve ... a brand new TBGL module from Petr full of new functionalities. You will spend some months on this :D
Some new functions on EXE module, thanks Roberto.
And of course all the latest requests developed and bugs fixed.

----

As usual, list of changes can be found in thinBasic help online at:
http://www.thinbasic.com/public/products/thinBasic/help/html/version_underdevelopment.htm

Download from:
http://www.thinbasic.com/index.php?option=com_docman&task=cat_view&gid=19&Itemid=66

Have fun
thinBasic Team

Petr Schreiber
26-10-2007, 19:41
Thanks Eros,

I was so nervous, preview versions are my favourite :)
EXE module is same as posted on forum ?

TBGL users and friends, please continue here (http://community.thinbasic.com/index.php?topic=1283.msg9001;topicseen#new) ;)


Petr

ErosOlmi
26-10-2007, 19:46
EXE module is same as posted on forum ?

No, a little change in EXE_GetMachineName function. Wrong return type, numeric instead of string. Rest is the same.

Petr Schreiber
26-10-2007, 19:49
That's perfect,

I am also very happy return type API trouble is solved!


Petr

Michael Hartlef
26-10-2007, 20:36
Wait... I have to see on the calendar... nope, not chrismas yet!!! But it feels like.
You guys are awesome. Thank you!!!!

kryton9
26-10-2007, 21:38
My sentiments are just like Mike's, this is an awesome release, thanks so much guys!!

ErosOlmi
28-10-2007, 22:40
Preview version updated.

Nothing new, just a collection of all recent fixes, TBGL included.

Ciao
Eros

ErosOlmi
10-11-2007, 02:10
thinBasic preview version 1.5.0.1 updated

This update contains all the recent development done on nested UDT, COM module and some internal Core engine fixes. It also contains a new TBGL module that fix few minor problems Petr has found.

_________________________________________________
List of changes can be found in thinBasic help online at:
http://www.thinbasic.com/public/products/thinBasic/help/html/version_underdevelopment.htm

Download from:
http://www.thinbasic.com/index.php?option=com_docman&task=cat_view&gid=19&Itemid=66

kryton9
10-11-2007, 08:52
Thanks for the update guys!

Petr Schreiber
10-11-2007, 12:59
Thanks,

it is nice how UDT and COM implementation progresses.


Bye,
Petr

ErosOlmi
28-11-2007, 01:49
thinBasic preview version 1.5.0.1 updated

This update contains:

all the recent development done on nested UDT
some important fixes again on UDT handling: SIZEOF was not working when passing a defined TYPE name but just when passing a variable name of that TYPE
new functionalities asked for UI module
new TBGL version from Petr (Petr will give more info about that)


_________________________________________________
List of changes can be found in thinBasic help online at:
http://www.thinbasic.com/public/products/thinBasic/help/html/version_underdevelopment.htm

Download from:
http://www.thinbasic.com/index.php?option=com_docman&task=cat_view&gid=19&Itemid=66
http://www.thinbasic.org/public/applications/thinbasic/thinBasic_1.5.0.1.zip

Petr Schreiber
28-11-2007, 14:09
Hi,

Eros, thanks for new preview! Even more as you are in busy times now.
I am becoming busy too now, which makes me a bit unhappy.

Regarding news in TBGL - just minor touches, which will be presented on scripts in very near future.

TBGL_EntitySetXYAxis - sets X and Y axis of entity ( Z automatically calculated )
TBGL_EntitySetXZAxis - sets X and Z axis of entity ( Y automatically calculated )
TBGL_EntitySetYZAxis - sets Y and Z axis of entity ( X automatically calculated )

TBGL_EntitySyncAxes - synchronises axes of 2 entities ( great for syncing gun and bullet )

TBGL_m15DefBoneColor - one step bone definition according to vertex color
TBGL_CenterCursor - centers mouse cursor in client area ( good for mouse look )

As I said, more details will follow, see help for reference before first demo scripts of this techniques will see light of this world ( very soon ).


Petr

Michael Hartlef
28-11-2007, 14:29
Thanks for the update Petr. :)

kryton9
28-11-2007, 19:09
Thanks Guys for the update!

ErosOlmi
13-12-2007, 18:16
thinBasic preview version 1.5.0.1 updated

This is mainly a summary of the little updates made recently plus few minor fix.

Ciao
Eros

_________________________________________________
List of changes can be found in thinBasic help online at:
http://www.thinbasic.com/public/products/thinBasic/help/html/version_underdevelopment.htm

Download from:
http://www.thinbasic.com/index.php?option=com_docman&task=cat_view&gid=19&Itemid=66
http://www.thinbasic.org/public/applications/thinbasic/thinBasic_1.5.0.1.zip

Petr Schreiber
13-12-2007, 19:49
Thanks guys,

good to have latest improvements in one package.
COMBOBOX/LISTBOX GET SELECTED and Linked List stuff look good!


Petr

kryton9
13-12-2007, 23:02
Thanks for the update guys. A very nice language just keeps getting better and better!!

ErosOlmi
02-01-2008, 22:09
OK. I'm just back from my holiday with a fresh new update in my USB key ready to be uploaded.
I've updated both thinBasic Stable version 1.5.0.0 and thinBasic Preview version 1.5.0.1 with the same exact version. This to clear immediately the "Program expire" problem.

That said, I need some rest before giving more info about this update. I just enter my house ;)
I suggest to have a look at new features in .chm help file and see at the little example in \thinBasic\SampleScripts\UI\ListView\

I will give you more details about UI module improvements. Also in next days I will finish temp help topic for the moment left empty.

Let me know.

Ciao
Eros

Michael Clease
03-01-2008, 00:38
Nice Listview example

thanks for the update.

Happy 2008.

ErosOlmi
03-01-2008, 01:04
Thanks Abraxas.

I had some rest from the way back trip now :D

Here some info about what I was working on before the "expired version" error come out. I was aobliged to release this new preview before being able to finish all the work I was doing, In any case it is almost finished.
I was working mainly on UI module. What was really missing in UI module was a way to manage %WM_NOTIFY message fired by controls. %WM_NOTIFY message is very important for all advanced controls like Listview, TreeView, Tabs and others. But is also important for some basic controls. %WM_NOTIFY is mainly used by controls to tell parent container (mostly the dialog window) about something that happened on them. The difficult part is that %WM_NOTIFY just tells that something has happened but not what has happened and all the details on the event. LPARAM in message pump is used to return a pointer to a notification structure specific (different) for each control class. You can imagine, the speed at which messages are fired into a window message pump brings more complexity to the whole process considering we are dealing with an interpreter engine. Anyhow, to make the story short, now GetMessage function is internally able to manage %WM_NOTIFY message and store the specific structure used to notify all the details about the event allowing LPARAM to point to that structure. More evidence of this new feature will be visible in next release but since now you can see a basic ListView example under \thinBasic\SampleScripts\UI\ListView\ directory. You can see how events a trapped by %WM_NOTIFY and how it is possible to interact with a ListView control.

Also features worth to be mentioned in this release:

almost complete set of functions working with ListView control: columns, items, events
Function parameters can now be undefined and thinBasic will automatically cast them to BYVAL VARIANT.
I have also some other ideas about this, like having undefined parameters. For example: FUNCTION MyFunction(...)
Users will be able to call MyFunction with whatever parameter sequence
Absolute structures (UDT declared with AT or PTR) memory position can now be assigned directly without the use of SETAT function.
This also open my mind to a possible way to manage pointers and pointers data accessing though indirection. But this will be matter for another future release
| char can now be used in place of OR keyword. This improve porting code from other languages and code readability.


For the full list of changes, as usual, see online help at http://www.thinbasic.com/public/products/thinBasic/help/html/version_1_5_0_1.htm

A little note: due too missing time, I was not able to write help info for almost all of the new functions working with ListView. I will do for the next release. Hope ListView script example can give you the idea on how to use new features. If any problem, please ask.

Ciao
Eros

Michael Hartlef
03-01-2008, 07:23
Holy cow, thanks for all the effort. :)

ErosOlmi
03-01-2008, 08:49
thinBasic stable and preview versions updated also in mirror site thinBasic.org

Regards
Eros

Petr Schreiber
03-01-2008, 11:46
Fantastic update,

I was always a bit afraid of ListViews, but it seems to be very easy in thinBASIC now. Thanks a lot!
Sample script looks really cool and response is perfect, no lost messages observed so far.

Rest looks perfect too, you did a very good job on UI module especially!
UDT VARPTR hack is really nice ;)


Thanks,
Petr

P.S. Just one minor suggestion - couldn't be ListView_SetExtendedListViewStyle just ListView_SetExtendedStyle ( and also its Get equivalent ) ?

ErosOlmi
03-01-2008, 11:51
P.S. Just one minor suggestion - couldn't be ListView_SetExtendedListViewStyle just ListView_SetExtendedStyle ( and also its Get equivalent ) ?



All new ListView_* functions are followed by the Window API message they wrap. "SetExtendedListViewStyle" is the name of the message you can find in Microsoft documentation. This way it will also be easy to find info or to port source code in/out from thinBasic sources.

Anyhow in this special case you are right. Too long and pleonastic repetition.

Ciao Petr ;)

kryton9
04-01-2008, 01:42
Haven't had a chance to play with the new update, but I looked through the list of changes, wow lots of wonderful new goodies, thanks alot!!

ErosOlmi
04-01-2008, 02:00
Here the new keywords at work with a screenshot of what the new ListView wrapper functions can do.
Still under heavy development but already quite powerful.

Ciao
Eros

sandyrepope
04-01-2008, 02:34
Listview is awesome!!!!! When I first looked at the example I was totally blown away! I love it!

Thank You! Thank You! Thank You!
Sandy

ErosOlmi
04-01-2008, 02:44
I'm happy you like it ;D
Your file browser example script gave me the starting power I needed to dedicate time on this. And I'm very happy I did it ;)
More powerful functions will come.

Ciao
Eros


PS: please consider that some functions can change in next version, not much but can. I was in hurry releasing it due to "Expire date" error.

ErosOlmi
05-01-2008, 00:39
thinBasic preview version 1.5.0.1 updated

Not much different from latest one.

help file is now complete with all recent new keywords documented
function return code has now more possible syntaxes
few fixes


I think there will be one more update in preview version 1.5.0.1 and than stable version will be released.

Ciao
Eros

_________________________________________________
List of changes can be found in thinBasic help online at:
http://www.thinbasic.com/public/products/thinBasic/help/html/version_1_5_0_1.htm

Download from:
http://www.thinbasic.com/index.php?option=com_docman&task=cat_view&gid=19&Itemid=66
http://www.thinbasic.org/public/applications/thinbasic/thinBasic_1.5.0.1.zip

ErosOlmi
05-01-2008, 00:51
I just found a little error in script \thinBasic\SampleScripts\UI\ListView\ListView_Basic.tBasic executed under WIN9x OSs.
WIN9x OSs do not support listview_Setview (http://www.thinbasic.com/public/products/thinBasic/help/html/listview_setview.htm) command. To fix the problem change the following line from




lvStyle = %LVS_SINGLESEL | %WS_VISIBLE | %WS_CHILD | %LVS_SHOWSELALWAYS | %WS_BORDER


to



lvStyle = %LV_VIEW_DETAILS | %LVS_SINGLESEL | %WS_VISIBLE | %WS_CHILD | %LVS_SHOWSELALWAYS | %WS_BORDER


Sorry.
Eros

Petr Schreiber
05-01-2008, 01:08
Thanks Eros,

I am sorry, but I can't do tests on Win9x/ME anymore, as even my brother got XPs :'( / ;D

Documentation is perfect, thanks a lot! Just minor problem - ListView> Notifications Events topic contains list of them, but also "Enter topic text here".


Thanks a lot,
Petr

ErosOlmi
05-01-2008, 01:12
Thanks Petr.
I completely forgot to fix that topic :-[
OK, next release!

catventure
05-01-2008, 20:23
Hi,

I also unable to do further win98 tests as now pleased to say have new computer with Vista.

catventure.

PS. Will check out new preview when wireless adaptor for broadband received and I am connected again...

ErosOlmi
05-01-2008, 20:37
Not problem, thanks anyway.
I have Win98 and WinMe emulated under VMWare machines, that's why I discovered that problem.

Ciao
Eros

Michael Clease
05-01-2008, 23:10
you could add the "OS" module

and add this



IF OS_WinGetVersionTimeline < %OS_Windows_NT THEN
lvStyle = %LVS_SINGLESEL | %WS_VISIBLE | %WS_CHILD | %LVS_SHOWSELALWAYS | %WS_BORDER
ELSE
lvStyle = %LVS_REPORT | %LVS_SINGLESEL | %WS_VISIBLE | %WS_CHILD | %LVS_SHOWSELALWAYS | %WS_BORDER
ENDIF

Petr Schreiber
05-01-2008, 23:54
That is clever Abraxas,

I almost forgot about this functionality!


Bye,
Petr

ErosOlmi
06-01-2008, 01:49
thinBasic preview version 1.5.0.1 updated

Update due to mainly because:

bug in parsing recursive functions. Problem was due to new way to return values from function. Thanks Petr
fixed the way string parameters are passed to external functions when declared as BYVAL/BYREF ASCIIZ
few other minor fixes in new ListView_* functions
PopUpMenu function added. Now create context menu will be a snap


Ciao
Eros

_________________________________________________
List of changes can be found in thinBasic help online at:
http://www.thinbasic.com/public/products/thinBasic/help/html/version_1_5_0_1.htm

Download from:
http://www.thinbasic.com/index.php?option=com_docman&task=cat_view&gid=19&Itemid=66
http://www.thinbasic.org/public/applications/thinbasic/thinBasic_1.5.0.1.zip

Michael Hartlef
06-01-2008, 11:28
Thanks man! :)