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

Thread: Some thinAir vaporware

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

    Some thinAir vaporware

    I've got some results in thinAir development.

    As told in other threads, I'm moving from old CodeMax editor to Scintilla Editor.
    I had a lot of problems during the initial switch due to my lack of knowledge about Scintilla control. It is so vast: http://www.scintilla.org/ScintillaDoc.html

    But now it seem I'm getting some puzzle pieces in the right place.
    Attached an image that show some of the options I've already developed at least at the basic level:
    • syntax coloring
    • indentation guidelines
    • rough auto completion
    • folding
    • error checking in nested folding


    It seems I'm on the right track but still a lot to develop.
    Hope to have something to share in few weeks so you can test.

    Ciao
    Eros
    Attached Images Attached Images
    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
    Beautiful! Still PB or a thinBasic app?

  3. #3
    And is the app skinable. I am slowly tending to dark themes these days. I guess my eyes get old. LOL.

  4. #4
    thinBasic author ErosOlmi's Avatar
    Join Date
    Sep 2004
    Location
    Milan - Italy
    Age
    57
    Posts
    8,777
    Rep Power
    10
    PB, not possible to move to TB so far.
    Once I will master Scintilla better, I will write some wrapper compiled functions into a module and maybe it will be possible to develop in TB

    Yes, personalizing colors of every aspects/part of the editor is in my TODO list.
    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

  5. #5
    I have some feature requests for thinAir which would enhance its functionality:

    1) Add a Close button to the toolbar and and little X to close in the tab of the corresponding source file. Right now you have to co throught the menus to close a source file.

    2) And a Find in Files Dialog.

    3) Something Rene already has suggested; Being able to call thinBasic scripts as plugins and interact with thinAir.

    How will autocomplete work. Only for commands or will it include parameter help? Will it work for functions/variables in your script too?

  6. #6
    thinBasic author ErosOlmi's Avatar
    Join Date
    Sep 2004
    Location
    Milan - Italy
    Age
    57
    Posts
    8,777
    Rep Power
    10
    Quote Originally Posted by Michael Hartlef View Post
    1) Add a Close button to the toolbar and and little X to close in the tab of the corresponding source file. Right now you have to co throught the menus to close a source file.
    Please check right click over MDI Tab, see attached image. You will find a lot of useful features regarding current open tab

    Quote Originally Posted by Michael Hartlef View Post
    2) And a Find in Files Dialog.
    Yes, it is in my todo list.

    Quote Originally Posted by Michael Hartlef View Post
    3) Something Rene already has suggested; Being able to call thinBasic scripts as plugins and interact with thinAir.
    Something very basic and experimental is already there.
    Paste following code into a new script and then right click on MDI Tab and use "Execute script inside thinAir" (see attached image)
    '---ThinAir scripting test
    Uses "Console"
    
    String  sSep   = String$(79, "-")
    Long    nMDI
    Long    lCounter
    
    
    PrintL sSep
    PrintL "App_Path      :", APP_Path
    PrintL "App_Name      :", APP_Name
    PrintL "App_SourcePath:", APP_SourcePath
    PrintL "App_ScriptPath:", APP_ScriptPath
    PrintL "App_ScriptName:", APP_ScriptName
    
    
    PrintL sSep
    nMDI = thinAir_MDI_Count
    PrintL "Number of MDI Windows currently present in thinAir:", nMDI 
    For lCounter = 1 To nMDI
      PrintL "MDI", lCounter, ", file name:", thinAir_MDI_GetFullFileName(lCounter)
    Next
    PrintL sSep
    
    
    PrintL "---press a key to close---" 
    WaitKey
    
    Quote Originally Posted by Michael Hartlef View Post
    How will autocomplete work. Only for commands or will it include parameter help? Will it work for functions/variables in your script too?
    Premature to say something at the moment. I just figured out how it works.
    The idea is to have an "intelligent" autocompletion dynamic on the code you are writing. This requires parsing of scripts on the go. It is not a problem but needs to be fast because I have to notify and rescan source code at every char change.
    Parameter help is something else and I hope it will be there. In Scintilla it is called TipShow.
    Attached Images Attached Images
    Last edited by ErosOlmi; 05-01-2017 at 11:03.
    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

  7. #7
    About the Test script, thinAir_MDI_Count is unknown. Running 1.9.16.17.

    I know the context menu. I just find buttons more convenient und more quick. But it isn't a big problem. :-)

  8. #8
    Member
    Join Date
    Aug 2015
    Location
    Keralam, India
    Posts
    121
    Rep Power
    21
    Hi Eros,
    If you create IDE with Scintilla, then TB users can automate the Editor control by using Scintilla's editor control object. That is a new world of programming.

  9. #9
    thinBasic author ErosOlmi's Avatar
    Join Date
    Sep 2004
    Location
    Milan - Italy
    Age
    57
    Posts
    8,777
    Rep Power
    10
    [QUOTE=Michael Hartlef;93277]About the Test script, thinAir_MDI_Count is unknown. Running 1.9.16.17.
    Dir you executed using right click on MDI Tab and use "Execute script inside thinAir"?
    That script cannot be executed directly because thinAir_* functions are not known outside thinAir.
    Anyway it was just an experiment to demonstrate it could be done and seems it can be done.

    Quote Originally Posted by Michael Hartlef View Post
    I know the context menu. I just find buttons more convenient und more quick. But it isn't a big problem. :-)
    Adding that [x] means personalizing standard Windows TAB control and it's a mess doing it in WIN32 API.
    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

  10. #10
    thinBasic author ErosOlmi's Avatar
    Join Date
    Sep 2004
    Location
    Milan - Italy
    Age
    57
    Posts
    8,777
    Rep Power
    10
    Quote Originally Posted by kcvinu View Post
    Hi Eros,
    If you create IDE with Scintilla, then TB users can automate the Editor control by using Scintilla's editor control object. That is a new world of programming.
    Yes something like https://bruderste.in/npp/ps/docs/1.0.1.0/scintilla.html
    But I need to wrap thinAir Scintilla into an object.
    I add into todo list
    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

Page 1 of 2 12 LastLast

Similar Threads

  1. thinBasic 1.9.xx vaporware
    By ErosOlmi in forum thinBasic vaporware
    Replies: 12
    Last Post: 15-01-2015, 13:25
  2. Vaporware: what will come after 1.7...
    By ErosOlmi in forum thinBasic vaporware
    Replies: 11
    Last Post: 09-12-2008, 08:37
  3. WMI module: some preview vaporware
    By ErosOlmi in forum WMI
    Replies: 10
    Last Post: 15-10-2007, 16:33
  4. Another new vaporware: multiline strings
    By ErosOlmi in forum thinBasic vaporware
    Replies: 7
    Last Post: 08-10-2007, 16:00
  5. Replies: 25
    Last Post: 20-09-2007, 17:57

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
  •