none
showMessage with Textbox RRS feed

  • Question

  • Hello everyone, I apologize to my English, I'm using google translate
    I wanted to know if it was possible to invoke the showMessage, or a pop-up or the like, where inside there is a textbox and a button.
    I have to get that on the occurrence of an event cronies this window and the person can answer in the textbox with a yes or a no and then click on the button

    T.U.

    Friday, July 10, 2015 2:38 PM

Answers

  • Or this:

    result = LDDialogs.Confirm("Do you want to do it?","Question")
    TextWindow.WriteLine(result)

    • Proposed as answer by Jibba jModerator Friday, July 10, 2015 10:31 PM
    • Marked as answer by Carmenello Monday, July 13, 2015 6:22 AM
    Friday, July 10, 2015 5:54 PM
    Moderator
  • I just added 3 loc to the above sample so the Dialogue Box has a textbox. SXD381-0

    By placing a window size semi transparent button under the Dialogue box it behaves the same way a Message Box does.

    While 0=0
      If dialogueOpen Then 
        ResumeDialogue()
      Else
        ResumeProgram()
      EndIf  
      Program.Delay(100)
    EndWhile

    Ditch / (or enable) the close button on the message box graphic and tidy up the buttons - works fine.



    Saturday, July 11, 2015 9:19 AM
    Moderator

All replies

  • Hello Carmenello,

    with the LitDev extention you can open a second window. In the extentions is a sample with name LDWindows.sb.

    That sample show the technik with more then one window.


    Best Regards Martin

    Friday, July 10, 2015 3:03 PM
  • (translated by Google translator)

    I suggest not to force a person to write the answer "Yes" or "No" by hand.
    It will be much easier if you show two buttons. On the first will be written "Yes" and on the second "No". The button that the user presses will show you the answer.

    Friday, July 10, 2015 4:07 PM
  • Show WBC647 it is a sample for one Dialog with a shape for text and answer button Ýes and No.


    Best Regards Martin

    Friday, July 10, 2015 4:31 PM
  • Or this:

    result = LDDialogs.Confirm("Do you want to do it?","Question")
    TextWindow.WriteLine(result)

    • Proposed as answer by Jibba jModerator Friday, July 10, 2015 10:31 PM
    • Marked as answer by Carmenello Monday, July 13, 2015 6:22 AM
    Friday, July 10, 2015 5:54 PM
    Moderator
  • Here's a native solution that might suit: SXD381

    Just thinking... you could set this up to take text input as well.
    Saturday, July 11, 2015 2:13 AM
    Moderator
  • I just added 3 loc to the above sample so the Dialogue Box has a textbox. SXD381-0

    By placing a window size semi transparent button under the Dialogue box it behaves the same way a Message Box does.

    While 0=0
      If dialogueOpen Then 
        ResumeDialogue()
      Else
        ResumeProgram()
      EndIf  
      Program.Delay(100)
    EndWhile

    Ditch / (or enable) the close button on the message box graphic and tidy up the buttons - works fine.



    Saturday, July 11, 2015 9:19 AM
    Moderator
  • Here's a native solution that might suit: SXD381

    Just thinking... you could set this up to take text input as well.

    Cool, I always like clever ways to do things simply
    Saturday, July 11, 2015 10:04 AM
    Moderator
  • many thanks to all for the help

    Monday, July 13, 2015 6:22 AM