2010-07-31, 05:02 PM
is there something equivelent in NPVR to
PluginHelperFactory.getPluginHelper().ForceRepaint();
?
I have a function for displaying info as
private void setText(String Text)
{
if (!activated) return;
if (TextMessage == Text) return;
TextMessage = Text;
Hashtable args = new Hashtable();
args.Add("@message", TextMessage);
TextUiStatic.Args = args;
ForceUpdate = true;
}
( I think the syntax was a little different in GB-PVR)
so I can go in my plugin (in some function)
setText("Fetching info, please wait...");
// call retrieve function, whatever that may be. this might take several seconds
setText("Got it. I'm back");
In GB-PVR, it works as expected. In NPVR, the first message is never displayed.
I tried using the class variable ForceUpdate
then in NeedsRendering I go
public override bool NeedsRendering()
{
if (ForceRender == true) {
ForceRender = false;
return true;
}
...
but it still doesn't work.
thanks
PluginHelperFactory.getPluginHelper().ForceRepaint();
?
I have a function for displaying info as
private void setText(String Text)
{
if (!activated) return;
if (TextMessage == Text) return;
TextMessage = Text;
Hashtable args = new Hashtable();
args.Add("@message", TextMessage);
TextUiStatic.Args = args;
ForceUpdate = true;
}
( I think the syntax was a little different in GB-PVR)
so I can go in my plugin (in some function)
setText("Fetching info, please wait...");
// call retrieve function, whatever that may be. this might take several seconds
setText("Got it. I'm back");
In GB-PVR, it works as expected. In NPVR, the first message is never displayed.
I tried using the class variable ForceUpdate
then in NeedsRendering I go
public override bool NeedsRendering()
{
if (ForceRender == true) {
ForceRender = false;
return true;
}
...
but it still doesn't work.
thanks