Results 1 to 2 of 2

Thread: console simulation ui

  1. #1
    Senior Member Lionheart008's Avatar
    Join Date
    Sep 2008
    Location
    Germany, Bad Sooden-Allendorf
    Age
    45
    Posts
    914
    Rep Power
    101

    console simulation ui

    please ignore this post, will check my example again, was not quite fit last night, sorry
    new example with "console_simulation" will follow with my next post.

    frank
    ps: I add here my first example only as bundle.exe. as this example isn't perfect I will send perfect ui example next days, I promise
    Attached Thumbnails Attached Thumbnails Click image for larger version. 

Name:	test-simulate-console-ui.png 
Views:	78 
Size:	130.5 KB 
ID:	6380  
    Attached Files Attached Files
    you can't always get what you want, but if you try sometimes you might find, you get what you need

  2. #2
    Super Moderator Petr Schreiber's Avatar
    Join Date
    Aug 2005
    Location
    Brno - Czech Republic
    Posts
    6,800
    Blog Entries
    3
    Rep Power
    694

    Re: console simulation ui

    Hi Frank,

    you again didn't followed the elemental rules from the post we discussed just a few days ago.

    Again random values for control ids, again no test for appropriate message. Uaaa. Especially the second can result in some "mysterious" behavior very hard to track.

    And the global hDlg is also not necessary, as you can pick auto allocated CbHndl.

    I recommend to not translate line by line, but to think more in detail what the code does, and then recreate it in ThinBASIC.

    Regarding the appending the text, have a look at:
    • CONTROL_AppendText

    You have it already at your service, no need for custom function (which you didn't called in your code at all).
    Some brief look to help file, from time to time, might save you time later.

    For breaking the line, just append $CRLF to the string you print.


    Petr
    Learn 3D graphics with ThinBASIC, learn TBGL!
    Windows 7 64bit - Intel Core 2 Duo T6600 @ 2.2GHz - 4 GB RAM - NVIDIA GeForce G210M 512MB
    Windows 8 64bit - Intel Core i5-3350P @ 3.1GHz - 8 GB RAM - NVIDIA GeForce GT640 3GB

Similar Threads

  1. Veicle simulation
    By ErosOlmi in forum TBGL Scripts and Projects
    Replies: 5
    Last Post: 28-06-2007, 20:31

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •