none
More Options Extension - Official Thread

    General discussion

  • Hello everyone,

    I am amking a small extension called "MoreOptions". At the moment it is on a very early stage, but I would like it very much if you test it anf tell me what you think about it. You can download the newest version here. Samples are included.

    The current version is Alpha 0.1 .

    That's what the extension is about:

    MoreMessages

    - AddOkMessage  This adds a new message like the one of GraphicsWindow.ShowMessage().

    - AddOkCancelMessage  This adds a Message with an Ok-button and a Cancel-button.

    - AddYesNoMessage  This adds a Message with a Yes-button and a No-button.

    - AddYesNoCancelMessage  This adds a Message with a Yes-button, a No-button and a Cancel-button.

    - AddAbortRetryIgnoreMessage  This adds a Message with an Abort-button, a Retry-button and an Ignore-button.

    All this Messages will give back the caption of the clicked button (only in English).

    Sample code: SFS528

    MoreBrowsers

    - FolderBrowser  This will add a folder browser. It gives back the selected folder.

    - FileBrowser  This will add a file browser. It gives back the selected file with it's path and extension.

    Sample code: XNH373

    I will add much more stuff.

    Development Story:

    I started to make this extension because I want to give the SmallBasic Community back. You helped me a lot.

    I decided to integrated the above features because I really missed them in Sb and I thought that I am not the only one who feels like that.

    One more point is that this is a great way to learn C#. That's the language I am programming at the moment.

    I am looking forward to your opinions. :)

    Greetings

    Timo

    Changelog

    Alpha Version 0.2

    - recalled Browsers to MoreBrowsers
    - fixed FileBrowser StartUpPath-Bug
    - added a new command in MoreMessages
      | AddAbortRetryIgnoreMessage

    You can find all changelogs inside the download, here.


    Greetings Timo





    Tuesday, June 04, 2013 12:07 AM

All replies

  • I might test this out after school. :3 just one question: if i want to, could i remove extentions, or are they a permanent thing?

    sorry for my simple question. -w-


    I am a 12 year old learning how to code using small basic.

    Tuesday, June 04, 2013 7:29 PM
  • Thanks for testing. :)

    You can remove every extension everytime you want.

    You must copy the .dll and the .xml file in to the lib folder at your SmallBasic directory. If this folder does not exist, create it.

    If you want to remove the extension simply delete the copied files.


    Greetings Timo

    Tuesday, June 04, 2013 7:33 PM
  • i got the two files into the small basic file, but it changed nothing... this is my first time intalling an extention. also, there was no lib folder in the small basic file. :3

    I am a 12 year old learning how to code using small basic.

    Tuesday, June 04, 2013 9:59 PM
  • Than you must create the lib folder. After this copy the two files in to this lib folder. Than it works. :)

    I would like to create an installer for you, but SmallBasic programs can't write in the Program Files folders. :/


    Greetings Timo


    Wednesday, June 05, 2013 8:52 AM
  • ok, i will try that. c:

    well, i don't think it worked... unless there's a spesific way o use the commands, like Graphicswindow.Addokmessage("Title of message box","What it says")
    any help? gosh, sorry for so many questions... >.<


    I am a 12 year old learning how to code using small basic.


    • Edited by 8Bit Pony Wednesday, June 05, 2013 11:04 PM
    Wednesday, June 05, 2013 9:32 PM
  • Now, you can't use the extension with the GraphicWindow commands.

    You need to use the new commands which I integrated. They are "Browsers" and "MoreMessages". For example you want to add an okmessage:

    MoreMessages.AddOkMessage("The text of the message", "The title of the message")

    You find more detailed examples in the downloaded file. Simply open and run the integrated .sb files. :)

    It is good that you ask so much. This will help other people who have the same problem and it show me that there is a person who is interested in my extension. :3


    Greetings Timo


    Thursday, June 06, 2013 10:25 AM
  • Thanks for making the extension available. I have just downloaded them and executed your sample code. It’s working fantastically and I am sure I will able to use them in my program. Everybody will find it useful. Why not make it available on extensions gallery. Please write two words about development story of these extensions.

    Thursday, June 06, 2013 3:20 PM
  • Oh, I got it working! thanks for letting me know its "Moremessages.command" and not "Graphicswindow.Addokmessage()"! The samples were cool. :3 I will have to tinker with this extention after i get my Schoolwork done! 

    I am a 12 year old learning how to code using small basic.

    Thursday, June 06, 2013 4:30 PM
  • Thanks very much. :)

    I will write the story tomorrow. Today I must learn for my verbal exam.

    I will make it avaible if I fixed the bug of the FileBrowser and if I added one more feature.


    Greetings Timo

    Thursday, June 06, 2013 4:51 PM
  • Just tinkered around with the extension. Very nice! although i can't figure out how to get the browser.folderbrowser and browser.filebrowser working... i don't exactly know how. i'll look at the samples, though to figure it out.

    over all, very nice. :3


    I am a 12 year old learning how to code using small basic.

    Friday, June 07, 2013 1:09 AM
  • Timo,

    Why is it with this extension this doesn't work?

    a=Browsers.FolderBrowser("Hallo", Program.Directory)

    But if I take your sample and cut it down to below it does work.

    Controls.ButtonClicked = B
    c = Controls.AddButton("Folder", 100, 100)

    Sub B
        a = Browsers.FolderBrowser("Hallo", Program.Directory)
        TextWindow.WriteLine(a)
    EndSub

    It's like you have to have the browsers.folderbrowser command in a subroutine for it to work.  The same thing is true for the browsers.filebrowser command.  I would think that you should be able to just do the command and it would work like I tried in my first question above.

    JR


    JR

    Friday, June 07, 2013 2:48 AM
    Answerer
  • Thanks for your testing 8Bit Pony and jricesk,

    you need to call the FolderBrowser and the FileBrowser with an Event.

    So you will need a Subroutine.

    You can use, for example, a button click like I did in my sample or you could use the Controls.TextTyped Event for textboxes. Both work well.

    I would be very grateful if you could test it with a timer event too. I am very bad with Timers. ;)

    Here is a sample for the TextTyped Event:

    Controls.TextTyped = B
    c = Controls.AddTextBox(100, 100)
    
    Sub B
        a = Browsers.FolderBrowser("Hallo", Program.Directory)
        TextWindow.WriteLine(a)
    EndSub

    You can get this Information if you click on the Browsers comamnd and look at the right side where the description is, too.

    I will look what I can do to make it possible to call it without an Event.

    Thanks for your understanding.


    Greetings Timo

    Friday, June 07, 2013 7:30 AM
  • Timo,

    Here's an example of timer that works:

    Timer.Interval= 1000
    Timer.Tick=OnTimerTick

    Sub OnTimerTick
      TextWindow.WriteLine("Here")
      Endsub

    Here I have added in the browser command.  This doesn't work.

        Timer.interval=1000
        Timer.tick=OnTimerTick
       
        Sub OnTimerTick
          a=Browsers.FileBrowser(Program.directory)
          TextWindow.WriteLine(a)
          endsub

    In a you do get the directory, but the browser does not open.  I think it would be best to get the browsers command to work without having to have an event.  That way you could use it anywhere and not have to set up an event to make it work.

    JR


    JR

    Friday, June 07, 2013 9:49 AM
    Answerer
  • Thanks for the sample.

    Yes, I want to get it working without an event.

    At the moment I try to do this.

    EDIT: I integrated the development story the main post.


    Greetings Timo



    Friday, June 07, 2013 10:08 AM
  • I have updated the extension.

    Look at the changelog part in the main post for more information.


    Mit freundlichen Grüßen Timo Greetings Timo

    Saturday, June 08, 2013 3:15 AM
  • I made this thread sticky for a little while. Great extension!

    Ed Price (a.k.a User Ed), SQL Server Customer Program Manager (Blog, Small Basic, Wiki Ninjas, Wiki)

    Answer an interesting question? Create a wiki article about it!

    Thursday, June 13, 2013 10:47 PM
    Owner
  • Thanks Ed

    There will be no update in the next week I think.

    I must learn to use WPF before I can add what I want to add.

    EDIT: I saw that you added it to the extensions gallery. Thanks for this.

    But the newest version is 0.2 not 0.1. ;)


    Mit freundlichen Grüßen Timo Greetings Timo


    Friday, June 14, 2013 9:11 AM
  • Yeah, I'll be glad to test out. I haven't used any extensions yet so should be educational for me.

    And thanks for the comment about c#. I'm thinking about dabbling with a new language but have to choose which one.

    Monday, June 17, 2013 8:43 PM
    Moderator
  • I updated it in the Extensions Gallery to 0.2:

    http://blogs.msdn.com/b/smallbasic/archive/2012/10/12/small-basic-extensions-gallery.aspx

    Looks like I had the link right, just not the version number. 

    Thanks!


    Ed Price (a.k.a User Ed), SQL Server Customer Program Manager (Blog, Small Basic, Wiki Ninjas, Wiki)

    Answer an interesting question? Create a wiki article about it!

    Wednesday, June 19, 2013 10:04 AM
    Owner
  • Hi Timo

    This is the 1st extension I've ever downloaded. Tried out the MoreMessages object and loved it. Very useful. Had no problems.

    Here's my sample try out: ZLZ874 :)


    Saturday, June 22, 2013 7:19 AM
    Moderator
  • Thanks for your feedback. :)

    Nice sample.


    Mit freundlichen Grüßen Timo Greetings Timo

    Saturday, June 22, 2013 11:26 AM
  • i'd love to see that you can open files with a code like run.(location of the file here) so I can host a program without a million subs 

    Monday, August 04, 2014 12:54 PM