Results 1 to 4 of 4

Thread: TAB Alpha Version 50

  1. #1
    Senior Member catventure's Avatar
    Join Date
    Oct 2005
    Location
    UK
    Posts
    637
    Rep Power
    83

    TAB Alpha Version 50

    Hi,

    A new (but small) update today.

    20 Sep 2009 (Release 50)
    ========
    *NEW. #minversion set to 1.7.9.0
    *FIX. The issue with loading games or autoloading games with long intro and/or location descriptions in both Player and Editor is now fixed.
    The Player was not appearing at all when such a game was run from the Editor version of Player - or an autorun game file run from the standalone Player itself.

    It was a dialog callback issue solved with the use of a timer

    http://tab.thinbasic.com/

    Regards,
    catventure
    http://tab.thinbasic.com - Home Of The ThinBasic Adventure Builder Project. (Interactive Fiction/Text Adventure Maker)

  2. #2
    Super Moderator Petr Schreiber's Avatar
    Join Date
    Aug 2005
    Location
    Brno - Czech Republic
    Posts
    7,153
    Rep Power
    736

    Re: TAB Alpha Version 50

    Thanks for the announcement and congratulations on new version!

    What kind of problem with dialog callback did you experienced, maybe it could be solved by handling proper message or something else?
    If there is some bug in callback handling, better to report it rather than workaround and forget.


    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

  3. #3
    Senior Member catventure's Avatar
    Join Date
    Oct 2005
    Location
    UK
    Posts
    637
    Rep Power
    83

    Re: TAB Alpha Version 50

    Quote Originally Posted by Petr Schreiber
    What kind of problem with dialog callback did you experienced, maybe it could be solved by handling proper message or something else?
    Hi Petr,
    It was simply that I was trying to do stuff to dialog controls that required user keypress BEFORE the dialog had actually been shown with %WM_INITDIALOG...
    This resulted in the dialog window not appearing at all...

    So I SPLIT the code into two bits and called the second bit using a timer AFTER the dialog was shown...

    [code=thinbasic]
    CASE %WM_INITDIALOG
    '---Message fired at the very beginning when dialog is initialized
    '---Attach menu to dialog
    IF getplayername = 0 OR getplayername = 1 OR getplayername = 3 OR getplayername = 4 THEN
    MENU ATTACH hMenu, hwnd
    END IF
    STATUSBAR_SETICON hwnd, %ID_STATUSBAR, 1, APP_SOURCEPATH + "icons\" + "Home.ico", 0
    STATUSBAR_SETICON hwnd, %ID_STATUSBAR, 2, APP_SOURCEPATH + "icons\" + "Notes.ico", 0
    STATUSBAR_SETICON hwnd, %ID_STATUSBAR, 3, APP_SOURCEPATH & "icons\" + "Pen.ico", 0
    tm=0
    dialog set timer hwnd,%id_timer,tm * 25
    launch=1[/code]


    [code=thinbasic]
    CASE %WM_TIMER and launch=1
    launch=0
    tm=0
    dialog kill timer hwnd,%id_timer
    initialisation
    initialdisplay
    promptforinput
    [/code]

    Therefore I do not think it a callback bug, Petr.

    catventure.
    http://tab.thinbasic.com - Home Of The ThinBasic Adventure Builder Project. (Interactive Fiction/Text Adventure Maker)

  4. #4
    Super Moderator Petr Schreiber's Avatar
    Join Date
    Aug 2005
    Location
    Brno - Czech Republic
    Posts
    7,153
    Rep Power
    736

    Re: TAB Alpha Version 50

    Thanks for the explanation,

    I think it is ok then


    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. TAB Alpha Version 49
    By catventure in forum T.A.B. (ThinBasic Adventure Builder)
    Replies: 1
    Last Post: 05-04-2009, 23:03
  2. TAB Alpha Version 48
    By catventure in forum T.A.B. (ThinBasic Adventure Builder)
    Replies: 3
    Last Post: 09-01-2009, 15:20

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
  •