JavaWiz,
Quite a while ago I was having trouble with null references with list boxes and I used to trap them and not add them to the display list, but you fixed something and it seemed to work ok for a while. However I did have some trouble with it and finally am looking at it again. Here is the error that I see intermittently.
If you have any thoughts on this, let me know.
When it happens I am adding or deleting elements in a listbox.
pastro Wrote:JavaWiz,
Quite a while ago I was having trouble with null references with list boxes and I used to trap them and not add them to the display list, but you fixed something and it seemed to work ok for a while. However I did have some trouble with it and finally am looking at it again. Here is the error that I see intermittently.
If you have any thoughts on this, let me know.
When it happens I am adding or deleting elements in a listbox.
Try attached version of WizUiHelper.DLL v1.0.17.1. I've removed the method that clears the UiImageCache.
I think what was happing is that a different thread is calling object to render, while your plugin thread was creating a new list. As part of creating that list, I tried clearing the image cache which is probably what triggered the exception. The normal aging logic should manage the entries without causing problems with the rendering thread.
Yep that seems to have fixed it. Great work.
Could this be put on the wiki so I can just point users to it? I'll package it up with burndvdx2 going forward, but I'm not ready for another release right now.
pastro Wrote:Yep that seems to have fixed it. Great work.
Could this be put on the wiki so I can just point users to it? I'll package it up with burndvdx2 going forward, but I'm not ready for another release right now.
I get an error when I try to change the text of a buttonlist. case"Captions are OFF":
showPopup = true;
msg = "Captions are Now On";
cmdButtonList.Text="Captions are on"; showPopup=true;
captionstate = true;
txtBox.addArg("@Caption","Captions: On");
Unable to cast object of type 'WizUtilities.WizUiHelper.WizUiButton' to type 'WizUtilities.WizUiHelper.WizButtonAttr'.
Can I still change the text of the buttonlist on the fly?
EDIT Looks like there is a method to change the text. I'll try that but let me know if I can just set it like I used to so I don't have to change all the instances.
pastro Wrote:Can I still change the text of the buttonlist on the fly?
EDIT Looks like there is a method to change the text. I'll try that but let me know if I can just set it like I used to so I don't have to change all the instances.
Attached update will enable the ability to set the caption on the current button via the Text property.
Logic changed when WizUiButtonList was updated to handle scrollable button lists (ie more buttons than can display), by added a rows element in the placement section in the skin.
JavaWiz Wrote:Attached update will enable the ability to set the caption on the current button via the Text property.
Logic changed when WizUiButtonList was updated to handle scrollable button lists (ie more buttons than can display), by added a rows element in the placement section in the skin.
Appreciate it. Didn't expect a quick response since it's getting late on a Sunday so I changed my code for the main menu to changecaption. Good to have going forward since I haven't checked all the popups to make sure they work correctly. Sorry I missed that when you asked us to look at the new dlls.
Thanks.
I think this is related to the 17.x update, but I'm not sure. It has to do with getimage callbacks. This error didn't used to show up but it could be part of the new pvrx2 distribution since both were changed.
In my getimage callback I either create a bitmap to be displayed or return a variable that has previously been set to a bitmap.
When I create a bitmap it doesn't immediately get displayed and only gets displayed after the next bitmap change is made. The only change to the bitmap are some changes in the colors. However, there is also a line drawn as a marker in the bitmap. When this line moves, the image is updated immediately, just not when I only change the colors and nothing else.
My guess is somehow something doesn't think the image has changed even thogh I got a getimage callback.
Is there a way to force the update? I seem to remember there was one.
pastro Wrote:I think this is related to the 17.x update, but I'm not sure. It has to do with getimage callbacks. This error didn't used to show up but it could be part of the new pvrx2 distribution since both were changed.
In my getimage callback I either create a bitmap to be displayed or return a variable that has previously been set to a bitmap.
When I create a bitmap it doesn't immediately get displayed and only gets displayed after the next bitmap change is made. The only change to the bitmap are some changes in the colors. However, there is also a line drawn as a marker in the bitmap. When this line moves, the image is updated immediately, just not when I only change the colors and nothing else.
My guess is somehow something doesn't think the image has changed even thogh I got a getimage callback.
Is there a way to force the update? I seem to remember there was one.
What control is this happening in (WizUiList, WizUiLabel, ....)?