PDA

View Full Version : cWebModalDialog and piWidth



Sture
8-Jun-2015, 05:54 PM
On this subject the help states:

"piWidth determines the horizontal size of the dialog in pixels, 0 means stretch to available width."

But when I set piWidth to 0 my modal dialog collapses to very very small.


Bonus observation:

The help on the piHeight property suggests that pbFillHeight should work as well. This does not seem to be the case.


I am of course trying to make a cWebModalDialog take up the entire browser screen.

-Sture

Harm Wibier
9-Jun-2015, 04:27 AM
The cWebModalDialog inherits those properties of the cWebView where those things do work. On a modal dialog you should always set a width. The height can be determined by its content or controlled by piHeight. There is no supported method for stretching a modal dialog over the full screen..

Sture
9-Jun-2015, 05:11 AM
Hi Harm,

Roger that. And I agree to that. A full screen modal dialog in is a confusing concept.

But still, the on-line help text for cWebModalDialog explicitly states that piWidth works like that (press F1 while cursor is located in cWebModalDialog class name).

-Sture

PS. Is the new Dell M3800 functioning to your satisfaction?

Dennis Piccioni
9-Jun-2015, 03:33 PM
Hi Sture,

I've updated the help.