On Feb 6, 2006, at 7:21 AM, Thom McGrath wrote:



2) Make the size of the control 0x0


Just like you may want a pushbutton to be invisible sometimes and visible other times, I want this to only be visible sometimes. It's context-sensitive. I've tried just about everything, including putting the second page of a pagepanel, and even using containercontrols. What I'm finding is that nothing is working correctly. Using containercontrols worked for this problem but other controls (such as multi-line editfield) tend to leave behind artifacts.

--

Thom:

I had this problem. On my Rb2006r4 it seems to be intrinsic behaviour only of the htmlViewer control (bug?).

If you set the viewer control dimensions to 0 x 0 it will disappear from the windows content area, but it mysteriously regrows and the right edge of the viewer reappears as a phantom over your other controls when you resize the window. I solved this problem by setting the htmlViewer height/width to -5000 x -5000 when I did not want it to appear and then to positive values when I wanted it to appear. These large negative values will not be incremented into positive values no matter what size the window becomes and so the viewer never achieves a display rectangle within the windows content area. Naturally, you need to know how large is the biggest screen the user has, so maybe loop the systems screen(i), test for dimensions and use a negative multiplier to make it disappear and not come back no matter what the size the user zooms. For example:

dim largest as integer

//loop to find the largest screen width

To Disappear:

htmlViewer1.width =  -(screen(largest).width * 5)
htmlViewer1.height =  -(screen(largest) * 5)

Hope this helps...


Mark Levinson
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to