Results 1 to 2 of 2

Thread: help needed with getText function

  1. #1
    Newbie
    Join Date
    Jul 2007
    Location
    CT
    Posts
    9

    Question help needed with getText function

    Hello,

    I am having some trouble with using the GetText function in Streetdeck. I have a button that calls the getText function. When I enter text and click save, nothing happens. Here is my code.

    Code:
     public void module_OnGetText(string UserString, string InputString, bool Cancelled)
            {
                if (!Cancelled)
                {
    		        if (UserString == "savename")
                        {                    
                            module.MsgBox("Profile was saved!", "Save Profile");
                            module.GoBack();
                        }
    			    else
                        {
                            module.MsgBox("Profile was not saved!", "Save Profile");
                        }	
    	        }
             }
    Here is how I call the function

    Code:
     public bool module_OnExec(string Description, StreetDeck.enumExecMessage eEM, int wParam)
            {
                
    
                if (Description == "EquipmentScreen")
                {
                    if (eEM == StreetDeck.enumExecMessage.eEMSelect)
                    {
                        module.GetText("Save Equipment", "Enter Equipment Serial Number", "", "savename", StreetDeck.enumGetText.eGetTextNone);        
                        return true;
                    }
    
                }
    // Other code below...
    Obviously I am doing something wrong. Any ideas

    Thanks
    Ian

  2. #2
    Newbie
    Join Date
    Jul 2007
    Location
    CT
    Posts
    9

    Fixed my own problem

    I figured out what was wrong. Forgot to create the event handler.

    module.OnGetText += new StreetDeck.IModuleEvents_OnGetTextEventHandler(mod ule_OnGetText);


Similar Threads

  1. Guidance Needed in VB: When NOT to use public functions
    By Sonicxtacy02 in forum Coders Corner
    Replies: 12
    Last Post: 07-18-2008, 07:43 AM
  2. Needed, Last few Norwegian translations needed
    By veetid in forum Centrafuse
    Replies: 1
    Last Post: 06-13-2007, 10:55 AM
  3. My project for the day - advice needed
    By ddt in forum General MP3Car Discussion
    Replies: 2
    Last Post: 12-02-2002, 07:51 AM
  4. never lose focus
    By marsjell in forum Software & Software Development
    Replies: 21
    Last Post: 08-12-2002, 01:18 PM
  5. Neat browser trick
    By g60 in forum Off Topic
    Replies: 6
    Last Post: 02-26-2002, 10:42 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •