The MP3car.com Store The MP3car.com Store    

Sponsored links

Go Back   MP3Car.com > Mp3Car Technical > Software & Software Development > Front Ends > StreetDeck > DigitalMods (Scripts / API)

Reply
 
LinkBack Thread Tools Display Modes
Old 08-27-2007, 10:08 AM   #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
Ioloughlin is offline   Reply With Quote
Advertisement
 
Advertisement
Advertisement Sponsored links

Old 08-28-2007, 11:33 AM   #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);

Ioloughlin is offline   Reply With Quote
Advertisement
 
Advertisement
Sponsored links

Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are Off
Refbacks are Off

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


All times are GMT -5. The time now is 05:16 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0
Copyright © 1999 - 2008 Mp3Car.com Inc.Ad Management by RedTyger
Message Board Statistics