Real Software Forums

The forum for Real Studio and other Real Software products.
[ REAL Software Website | Board Index ]
It is currently Tue Feb 19, 2019 8:40 am

All times are UTC - 5 hours

Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Set WebDialog Dimensions at Runtime
PostPosted: Wed Jan 18, 2012 5:12 pm 
User avatar

Joined: Fri Nov 10, 2006 4:10 pm
Posts: 1855
Location: Michigan, USA
I'm trying to take a picture and display it on the entire browser stage. I figured a WebDialog could do this, but I can't seem to get it to size correctly. I'm calling the Dialog from another dialog, and it looks like:

wdFullPicture.Width = Self.Parent.Width
wdFullPicture.Height = Self.Parent.Height

Oddly, what this successfully does do, is to display the WebDialog within the web page and not the dialog calling it. (If I were to just put in a number for the width/height it places the dialog within the call dialog.) However, no matter what I do, the actual size of the dialog isn't changing...

I realize I could use the ShowURL for the image, but I was trying to be visually clever within a single web page.

I'm more curious why setting the dimensions seem to do nothing.

Thoughts? :)

Windows 8 x64
Windows XP Pro SP3
Ubuntu 11.04 via Virtual Box
RS Enterprise 2012r1.1

Programming Tutorials & Free Projects:
"Christianity has not been tried and found wanting; it has been found difficult and not tried." - G.K. Chesterton

Reply with quote  
 Post subject: Re: Set WebDialog Dimensions at Runtime
PostPosted: Mon Dec 10, 2012 5:24 pm 

Joined: Sat Jan 14, 2012 2:29 pm
Posts: 26
Has this ever been solved (setting the size of a WebDialog at runtime)?

I am using WebDialogs in place of MsgBoxes and need to dynamically resize the height but it seems to have a very strange behavior. If I try to resize in SHOWN (or even before it is called) then the "dim" box presented over the underlying WebPage is resized but the WebDialog size never changes.

Any thoughts would be appreciated.


Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 5 hours

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group