Winamp & Shoutcast Forums

Winamp & Shoutcast Forums (http://forums.winamp.com/index.php)
-   Wasabi Development (http://forums.winamp.com/forumdisplay.php?f=122)
-   -   Textfeed problem... (http://forums.winamp.com/showthread.php?t=126943)

Russ 2nd March 2003 09:27

Textfeed problem...
 
Let's run this past some people, Brennan couldn't work out why this went wrong, and this thread can serve as somewhere to point people to.. This is all done with SDK and client build 495:

code:

class InfoFeed : public TextFeed {
public:
InfoFeed() { registerFeed("SInfo"); }
virtual ~InfoFeed(){};
static const char *getServiceName() { return "ATSF"; }
};
InfoFeed *i;


In onCreate (tried it in constructor as well, and in different callbacks)
code:

waServiceFactoryTSingle<svc_textFeed,InfoFeed> *f= new waServiceFactoryTSingle<svc_textFeed,InfoFeed>;
api->service_register(f);
i = f->getSingleService();
i->sendFeed("SInfo", "moo");


Now I'm accessing the feed like this:
code:

<Wasabi:Text id="status" display="SInfo" x="0" y="32" w="0" h="16" relatw="1" />
<Wasabi:Dropdownlist id="list" feed="SInfo" x="0" y="0" w="0" relatw="1" h="20" />


It works in the dropdownlist, it doesn't in the text! I ask you: WTF?

So, I open up the relevant prefs panel, I debug in DependentI::sendViewerCallbacks. It sends 2 callbacks - one to each control in there. But it's still only showing up in the dropdownlist.


All times are GMT. The time now is 20:46.

Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.