Shoutbox

Bug with type="FigureElement" - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4)
+---- Forum: WLM Plus! Bug Reports (/forumdisplay.php?fid=7)
+----- Thread: Bug with type="FigureElement" (/showthread.php?tid=72508)

Bug with type="FigureElement" by Flash on 03-10-2007 at 05:30 AM

<Element xsi:type="FigureElement" Id="FigRectNews" Visible="false">
impossible to show or hide this with 'ShowWindow'


RE: Bug with type="FigureElement" by Matti on 03-10-2007 at 09:30 AM

ShowWindow can only be used for windows/controls which have a handle assigned. Elements don't return a handle (try it: PlusWnd.GetControlHandle("FigRectNews") will return 0) and therefore you can't use API functions such as ShowWindow on it. :(

A work-around would be to place the Element in a child window, add the child to the parent window and hide the child window instead. But, if you want to make your window resizeable, you should add a message notification to the parent in order to make the child window resize too... but if you don't want a resizeable window, just forget this. :P

And in theory, this should be placed in the Scripts subforum. ;)


RE: Bug with type="FigureElement" by Flash on 03-10-2007 at 06:12 PM

Thx that work great and i can use RichEditControl without the move window bug ;)

now just need the code for set invisible background to child window