JavaWiz Wrote:If you are creating your own GBPVRUiElement, there is a property forceRefresh that can be set to insure that it gets repainted on next render cycle.
Actually sorry about the confusion, its a WizUiLabel.
Can I force a refresh on this?
2008-06-07, 03:36 AM (This post was last modified: 2008-06-07, 03:54 AM by JavaWiz.)
pastro Wrote:Actually sorry about the confusion, its a WizUiLabel.
Can I force a refresh on this?
If you change any parameter, it should force a refresh. I've attached a new version of the DLL that has a different algorithm for determining if something has changed in the control, see if this helps.
It also exposes a new method on the text box and label .forceRefresh()
EDIT: Wait, seems to be a bug in that version...
EDIT2: Ok, try now
JavaWiz Wrote:If you change any parameter, it should force a refresh. I've attached a new version of the DLL that has a different algorithm for determining if something has changed in the control, see if this helps.
It also exposes a new method on the text box and label .forceRefresh()
EDIT: Wait, seems to be a bug in that version...
EDIT2: Ok, try now
2008-06-07, 04:57 AM (This post was last modified: 2008-06-07, 05:20 AM by pastro.)
I'm not really sure how to force a getimage callback. Here is a couple lines of code lblProgramInfo.addArg("@CurrentPos", "Current Position: " + m_CurPos.ToString("F2"));
lblProgramInfo.addArg("@TrimEnd", "Selected OutTime: " + (Convert.ToSingle((string) item.getProperty("@OutTime")).ToString("F2")));
lblProgramInfo.addArg("@TrimStart", "Selected InTime: " + (Convert.ToSingle((string)item.getProperty("@InTime")).ToString("F2")));
targetProgram.listcopy = (SortedList)skiplist.Clone();
targetProgram.duration = (float)m_AVFileObject.Duration;
targetProgram.m_currpos = m_CurPos;
lblProgramInfo.addArg("@thumbnail1", targetProgram);
lblProgramInfo.forceRefresh();
In one case I am changing the CurPos and I get the thumbnail1 callback. It appears that when I call it with the same CurPos value I don't get the getimage1 callback.
Does that make sense?
EDIT:
If I use m_CurPos+=.1 before it's represpective addarg then I get the callback. If the m_CurPos doesn't change then no image callback.
Is there way to force the getimage callback to happen?