PDA

View Full Version : EntityGrid example with Primitives



Lionheart008
09-12-2008, 17:03
dear thinbasic friends, hi all... :)
dear petr...

a) who wants to learn and handle with primitives and a grid plane, some integrated UI buttons with functions can use this new tbgl/UI example...

b) some constructive critics are welcome ;)

c) if there is more time I will make a tutorial of it :-D

=> d) my question: how can I use the [F1] button to popup the help menu???
=> dd) after abort the 'BrowseFolder' Window there is only a very little thinbasic window with "Ok"... (last picture I have added) Why??? Can I put here some more infos about the functionality of the browser folder script???


have a nice day with thinbasic and tbgl, best regards, Lionheart

ps: I am thinking the tbgl forum isn't still alive, isn't it???
Would be nice when people they are working with thinbasic/UI/tbgl come around and making some input quite equal if you are an advantage thinbasic user or just beginners ;) the forum can live more exciting when some thinbasic user do more example and inputs here at the tbgl board, that's my personal opinion... do not hesitate and open your mind to push this tbgl board ;D

10.dec.2008: my new EDIT at midnight:
pps: a) updated the script version 0.06a ;) with the 'space bar' key pushing you can delete current window...

b) blend function does run as well with one button ;)

good night :)

Petr Schreiber
09-12-2008, 22:34
Hi Frank,

thanks for the demo, worked well for me.

b) You asked constructive critics, here are few notes :):
- MSGBOX which appears on the beginning has yes/no option ... but it will continue the program anyway
- when working on tutorials, try to keep focus on one/two things, no more. Turning blending off via color dialog is little bit unusual.
- in TBGL manual there is said that before creating of window/binding control it is not legal to call other commands ( there are just few exceptions ) - and you build font like that

The reason for odd behavior could be your use of IF .. THEN - there are multiple places where END IF is missing.


But don't take me wrong - I am happy you are TBGLing.
What about working on little bit less abstract scene, trying to reproduce things around you - this way you can learn even more ;)


Petr

Lionheart008
09-12-2008, 23:09
dear petr:), hi all...

your quite ok... ;) but I make some experiences with learning by doing with tbgl and I am a little bit confused during my daily work so I cannot clear my script as I wished (must laugh) :D but for the future I will do that, of course ! I promise it for U (myself!)...


You asked constructive critics, here are few notes:
- MSGBOX which appears on the beginning has yes/no option ... but it will continue the program anyway
- when working on tutorials, try to keep focus on one/two things, no more. Turning blending off via color dialog is little bit unusual.
- in TBGL manual there is said that before creating of window/binding control it is not legal to call other commands ( there are just few exceptions ) - and you build font like that

simple problem: looked for a button call (double click) for activate blending (blending on) and blending off... script didn't managed... but will find it, I am sure :) time problem...

- yes, I will build simple and easy to use tbgl examples and write about this one a tutorial...

- my way of building scripts is to have any idea of building scenes as I have in mind and start the script program... If I have more time I can have a closer look to all, it's not easy for a not really good thinbasic based programming guy to understand all thinbasic/tbgl functions as well ;)

I learn more from personal mistakes and see and search for new examples to learn with it... you know that all :)

see you and thanks :) nice evening...

bye, Lionheart

Petr Schreiber
09-12-2008, 23:28
Regarding mysterious empty msgbox after browse folder,

your code is:


MSGBOX 0, DIALOG_BROWSEFORFOLDER( 0, "Please, select a path on your machine|This is a browser popup window", APP_PATH, %FALSE )


... so in case you press Cancel, it returns no string = empty message.

Have a nice evening too :)


Petr

P.S. To catch problem of not matching IF and END IF - use thinAir / Tools / Utilities / Format code.
If text on last line of code is not on the begining of the line, somewhere there is not matching pair of For/Next, If/EndIf...

Lionheart008
26-12-2008, 01:34
hi dear christmas man :)
dear thinbasic user...

short input: my '5 cents' little improvement with HELP function and a gimmick... :)
sorry about this one: this script doesn't run with the current, new 1.7.5.0 thinbasic release... ! I will change it...

bye, Lionheart and good night...

ps: updated the script with my last post (29-12-2008) ;)

Petr Schreiber
28-12-2008, 12:32
Hi Lionheart,

it didn't work in 1.7.5.0 because there were unballanced IF/END IFs, as Run Time Error says.
I attach corrected version for you :)


Petr

ErosOlmi
29-12-2008, 10:21
Yes,

starting from thinBasic 1.7.5.0, pre-parsing phase is checking unbalanced situations for program flow structures like IF/END IF

Ciao
Eros

Lionheart008
29-12-2008, 21:48
...my 5 cent last script input for this year :)

hi all:)
dear petr (thank you for help by correcting the script!), dear eros (good luck for the next update! :) )...

I have updated my last script with a 'file open' function by button... very interesting to use mixing functionality of UI and TBGL, I like it ... and decided to use thinbasic 1.7.0.0... :-\

push "help" (F1) and wish you all a happy new year 2009 ! :-D

good evening, have a nice last week for this year and I am sure that I have to make more sports to get my old body size again ;D

ciao and servus, Lionheart (Frank), new adapted to thinbasic 1.7.5.0 :) release, it's not so easy to delete some IF/END IF codes... if it's running again...

ps: script update of 30-12-2008, end of this exercise ! :D
pps: have forgotten to add the new-year-picture :), but better have changed it to another board place: http://community.thinbasic.com/index.php?topic=2352.msg17858;topicseen#new

ppps: have included a 'Date/Time' function :-D you can see by clicking the left button (have found this very nice date/time script from abraxas :) and a little bit of fog.. that's all for today. - END