Hi,
i need a custom checkbox and i try to use an ImageView for it. But this simple snippet does not work:
if me.Picture<>NIL then
me.Picture=NIL
else
me.Picture=Ok
end if
Once there is a picture assigned, it stays visible even if the debugger says its NIL. So the code works but no visible change. Its been a while for me and i might be missing the obvious answer. But whats going on?
[quote=192940:@Georg Scharioth]Hi,
i need a custom checkbox and i try to use an ImageView for it. But this simple snippet does not work:
if me.Picture<>NIL then
me.Picture=NIL
else
me.Picture=Ok
end if
Once there is a picture assigned, it stays visible even if the debugger says its NIL. So the code works but no visible change. Its been a while for me and i might be missing the obvious answer. But whats going on?[/quote]
You may want to use a WebCanvas Paint event instead to draw the box.
Or use two different pictures in your WebView instead of trying to nil the current picture.
I reported this as a bug long ago.
They won’t fix it. Workaround: Set URL to “”.
[quote=192950:@Christian Schmitz]I reported this as a bug long ago.
They won’t fix it. Workaround: Set URL to “”.[/quote]
I just did a search and can’t find a case regarding this. Could you point it out for me?
Case 33656. You closed it about a year ago.
I’ve reevaluated the case and the bug has been fixed.