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
    51
    Posts
    934
    Rep Power
    109

    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 Images Attached Images
    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
    7,128
    Rep Power
    732

    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 10 64bit - Intel Core i5-3350P @ 3.1GHz - 16 GB RAM - NVIDIA GeForce GTX 1050 Ti 4GB

Similar Threads

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

Members who have read this thread: 0

There are no members to list at the moment.

Posting Permissions

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