Results 1 to 3 of 3

Thread: Using dialog as graphic console

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

    Using dialog as graphic console

    Hi,

    I tried to make something like simple "graphic console". I mean window, to which I could draw from script.

    But... If the dialog is modal, then script is stopped until dialog ends ( that's logical ), and if dialog is modeless, then it appears just for portion of second and then it disappears.

    Is there any way how to implement my mad script-window idea ?


    Thanks,
    Psch
    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

  2. #2
    thinBasic author ErosOlmi's Avatar
    Join Date
    Sep 2004
    Location
    Milan - Italy
    Age
    57
    Posts
    8,817
    Rep Power
    10

    Using dialog as graphic console

    Stange, you should be able to see the dialog and continue script execution.
    Of course if the script finish, all the dialogs created by the script will be destroyed.

    Dialog should be created and showed with
    DIALOG SHOW MODELESS hDlg
    The function creating the dialog should return the dialog handl into a script variable. Than use the handl inside the script in order to manage the window.

    Maybe in this case you should post your module source code to me, maybe via private message, in order to have a look.
    www.thinbasic.com | www.thinbasic.com/community/ | help.thinbasic.com
    Windows 10 Pro for Workstations 64bit - 32 GB - Intel(R) Xeon(R) W-10855M CPU @ 2.80GHz - NVIDIA Quadro RTX 3000

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

    Using dialog as graphic console

    Eros, I apologize

    Modeless dialogs are ok, I just had to force redraw when adding controls during the script (and also the script ended quite soon ).

    All is ok now

    Thanks,
    Psch
    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. Confusion with DIALOG GET/SET CLIENT, DESKTOP GET SIZE and DIALOG SET LOC
    By Michael Hartlef in forum UI (User Interface)
    Replies: 3
    Last Post: 03-10-2008, 19:23

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
  •