Page 1 of 2 12 LastLast
Results 1 to 10 of 15

Thread: Help on testing some new future features

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

    Help on testing some new future features

    Hi all,

    I need confirmations if some new features we are developing are working or not.
    Attached to this post you will find a bundled exe that implements new User Interface CALLBACKS for dialogs and controls. It also implements Tab Control.
    You should get an application like the attached image: a sort of easy address book with tabs. Data is loaded from a text file included in the bundled exe.

    Can you please see if you get any problem/error running the application?
    If yes, can you be so kind to state:
    • description of the problem
    • operating system version


    Thanks a lot
    Eros
    Attached Images Attached Images
    Attached Files Attached Files
    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

  2. #2
    thinBasic MVPs kryton9's Avatar
    Join Date
    Nov 2006
    Location
    Naples, Florida & Duluth, Georgia
    Age
    67
    Posts
    3,869
    Rep Power
    404

    Re: Help on testing some new future features

    Eros, all works great on WinXP. I went through all the tabs and looked at the data all was there!
    The menus worked just fine too!!
    Acer Notebook: Win 10 Home 64 Bit, Core i7-4702MQ @ 2.2Ghz, 12 GB RAM, nVidia GTX 760M and Intel HD 4600
    Raspberry Pi 3: Raspbian OS use for Home Samba Server and Test HTTP Server

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

    Re: Help on testing some new future features

    Thanks a lot Kent.

    As indication: "Info", "References" and "Links" Tabs are just empty. Window should resize and all controls in main and child windows should resize accordling.
    CPU usage should be very close to zero.

    Creating Tabs and handling them will be easy like adding a control: only one line. ThinBasic will create child windows inside any Tab and will handle automatically tab switching and resizing.

    Ciao
    Eros
    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

  4. #4

    Re: Help on testing some new future features

    Yeah, it worked fine in Vista too.
    Operating System: Windows 10 Home 64-bit
    CPU: Intel Celeron N4000 CPU @ 1.10GHz
    Memory: 4.00GB RAM
    Graphics: Intel UHD Graphics 600

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

    Re: Help on testing some new future features

    Thanks a lot Matthew.
    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

  6. #6
    Super Moderator Petr Schreiber's Avatar
    Join Date
    Aug 2005
    Location
    Brno - Czech Republic
    Posts
    7,128
    Rep Power
    732

    Re: Help on testing some new future features

    I tried it on XP box and worked well,

    the effect of edit field highlighting is very nice.


    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

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

    Re: Help on testing some new future features

    It is all done using new Callbacks functionality that will be present in next release.
    It will add precise control to every aspect of the User Interface without the filter of UI module.

    For example the effect of coloring background color of text fields when they get focus is done in this way.
    When adding a new field just indicate which is the callback function that will handle field events (obviously it is not mandatory):
    [code=thinbasic]
    '...
    CONTROL ADD textbox, cbhndl, %CtrlID, , xPos, yPos, tWidth, lHeight, %WS_CHILD, , call cb_Text
    '...
    [/code]
    Note that the name of the callback can be a function or a text expression resulting to a function name.
    So the following will produce the same effect:
    [code=thinbasic]
    '...
    CONTROL ADD textbox, cbhndl, %CtrlID, , xPos, yPos, tWidth, lHeight, %WS_CHILD, , call cb_Text
    '... OR
    CONTROL ADD textbox, cbhndl, %CtrlID, , xPos, yPos, tWidth, lHeight, %WS_CHILD, , call "cb" & "_Tex" & chr$(asc("t"))
    [/code]
    This open an extreme freedom in handling callbacks names.

    The callback function adding coloring is the following:
    [code=thinbasic]
    '----------------------------------------------------------------------------
    callback function cb_Text()
    '----------------------------------------------------------------------------

    '---Common to all fields
    select case CBCTLMSG
    case %EN_SETFOCUS
    '---When textbox get focus, change colors
    CONTROL SET COLOR CBHNDL, CBCTL, -1, rgb(233, 244, 250)
    return %TRUE
    case %EN_KILLFOCUS
    '---When the control lost its focus, change colors to standard one.
    CONTROL SET COLOR CBHNDL, CBCTL, 0 , rgb(255, 255, 255)
    return %TRUE
    end select
    end function
    [/code]

    Of course inside the callback you can check many other aspects at every events that will occur.

    I'm very excited about the many possibilities that will open callbacks introduction. The most important is the way a UI window will be handled in thinBasic: it will be the same as programming in real compilers.
    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

  8. #8

    Re: Help on testing some new future features

    Worked fine here too: WinXP.

  9. #9
    Super Moderator Petr Schreiber's Avatar
    Join Date
    Aug 2005
    Location
    Brno - Czech Republic
    Posts
    7,128
    Rep Power
    732

    Re: Help on testing some new future features

    I tried the program on Win98 and works ok,
    just the highlighting behaves a bit differently, see screen.

    It basically highlights the text, but not control as a such - this might be feature of older Windows, I am not sure.
    But as you can see, after I highlighted all items, they did not swapped back to white background.


    Petr
    Attached Images Attached Images
    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

  10. #10

    Re: Help on testing some new future features

    Eros:

    It works fine for me under XP.

    Pretty neat.

    Don B.
    XPS 1710

Page 1 of 2 12 LastLast

Similar Threads

  1. SandBox Testing
    By ISAWHIM in forum Code
    Replies: 15
    Last Post: 12-10-2008, 11:12

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
  •