PDA

View Full Version : TreeView doesn't show up



Pipes
05-08-2008, 16:54
I've experminted some with thin basic and so far I like what I see. So, with any new programming language there's a period of time being the newbie... with the typical newbie questions. (I don't like being a newbie again :-\) Oh well... Here's the newbie question ~~~>> I can't seem to get a treeview to appear. (CONTROL ADD TREEVIEW, winMain, %trvNav, 8, 8, 128, 200,'%TVS_HASLINES or %TVS_EDITLABELS ) etc. The control doesn't show up. What am I missing? Maybe this isn't as straight forward as I think it is and I'm leaving something out. ???

ErosOlmi
05-08-2008, 17:04
Ciao!

We do not care newbie/not newbie. We are all newbie in what we are trying to learn. Just make your post and we will try our best to reply ;)

Regarding the problem you are facing I think you need to add %WS_CHILD plus %WS_VISIBLE style options in Control Style field.
SO something like:


hTree = CONTROL ADD TreeView, hDlg, %ID_TREE, "", 0, 0, 200, 250, _
%WS_CHILD | _
%WS_VISIBLE | _
%TVS_HASBUTTONS | _
%TVS_HASLINES | _
%TVS_LINESATROOT | _
%TVS_SHOWSELALWAYS , _
%WS_EX_CLIENTEDGE

Attached a TreeView example that you should find also in your \thinBasic\SampleScript\UI\TreeView\ folder

We will implement TreeView control in in future versions of thinBasic adding native functions working on it.

Ciao
Eros

Petr Schreiber
05-08-2008, 17:20
Hi Eros,

I have no TreeView under SampleScripts/UI, nor the TreeView.inc file :-[?


Petr

ErosOlmi
05-08-2008, 17:25
oops, sorry.
I will add in next thinBasic. Anyhow now you have it attached in previous post ;)

ErosOlmi
05-08-2008, 17:30
Updated attached file with needed include files.
Anyhow consider most of the functions included in TREEVIEW.INC will be native in future thinBasic versions.

Ciao
Eros

Pipes
06-08-2008, 15:12
Thanks for the quick response Eros. To all the developers of thinBasic I say, "Great Job". The more I mess around with thinBasic the more I like it. It seems to do
everything and more that the commercial basics do. Keep on... keeping on. :)

ErosOlmi
06-08-2008, 16:23
Thanks Pipes.
Let us know whatever you think can be improved. We will be happy to try our best.

Ciao
Eros