View Single Post
Old 2006-05-02, 02:41   #3 (permalink)
jimbruskalski
Portal Member
 
Join Date: Apr 2006
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts


Send a message via AIM to jimbruskalski
Default

This is what I have and it is not working:

"protected override void OnClicked(int controlId, GUIControl control, Action.ActionType actionType)
{
if (control == buttonOne)
{
MusicTag tag = TagReader.ReadTag("M\\:\\Document and Settings\\Andrew\\My Documents\\final music final\\Adore\\03 Perfect.mp3");

string str = "didn't work, sorry...";
str = tag.Album;

GUIDialogOK dlg = (GUIDialogOK)GUIWindowManager.GetWindow((int)GUIWi ndow.Window.WINDOW_DIALOG_OK);
dlg.SetHeading("Button has been pressed");
dlg.SetLine(1, str);
dlg.SetLine(2, String.Empty);
dlg.SetLine(3, String.Empty);
dlg.DoModal(GUIWindowManager.ActiveWindow);
}
lblOne.Label = "You changed the text!";
lblOne.UpdateLayout();
base.OnClicked(controlId, control, actionType);
}"


The dialog box does not come up with this; however, if I take this line out (" MusicTag tag = TagReader.ReadTag("M\\:\\Document and Settings\\Andrew\\My Documents\\final music final\\Adore\\03 Perfect.mp3");") it does show the dialog box. Why is this? What am I doing wrong? Thank you so much.
__________________
James Andrew Smith
jimbruskalski is offline   Reply With Quote