Actual dialog box size 
Author Message
 Actual dialog box size

        I am trying to set the size of a dialog box to a specific set of
values, but the actual box that gets created is not the size indicated in the
resource.rc file? Is there a scaling factor I am overlooking? When I create
the box with the interactive resource editor, it shows the size at the lower
right corner, but I don't believe that the value is in actual pixels. Doing a
Ctrl-Print Screen and pasting the result into Paint, the values are larger and
more like what I expect.


Fri, 15 Mar 2002 03:00:00 GMT  
 Actual dialog box size
What about resizing your dialog box in the OnInitDialog function ?

--
Yves DUHOUX
Technical Consultant
Scorex S.A.M
Tel   : +377 97 98 54 61
Port  : +33 6 09 58 55 80
Fax  : +377 97 98 54 55


Quote:
> I am trying to set the size of a dialog box to a specific set of
> values, but the actual box that gets created is not the size indicated in
the
> resource.rc file? Is there a scaling factor I am overlooking? When I
create
> the box with the interactive resource editor, it shows the size at the
lower
> right corner, but I don't believe that the value is in actual pixels.
Doing a
> Ctrl-Print Screen and pasting the result into Paint, the values are larger
and
> more like what I expect.



Fri, 15 Mar 2002 03:00:00 GMT  
 Actual dialog box size
The actual size in pixels depends on the the font used in the dialog and on
whether or not the user is using large fonts. You really "should not" try to
defeat this feature of Windows.

But you can, if you want, use MoveWindow() in OnInitDialog() to set the size in
pixels to anything you want, but you will surely have to move the controls also.

HTH,

David Wilkinson

=====================================

Quote:

>         I am trying to set the size of a dialog box to a specific set of
> values, but the actual box that gets created is not the size indicated in the
> resource.rc file? Is there a scaling factor I am overlooking? When I create
> the box with the interactive resource editor, it shows the size at the lower
> right corner, but I don't believe that the value is in actual pixels. Doing a
> Ctrl-Print Screen and pasting the result into Paint, the values are larger and
> more like what I expect.



Fri, 15 Mar 2002 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. dialog size in evc++ dialog editor not the same as size in pixels on device

2. Get size of dialog box

3. Sizing Dialog Box

4. How to change the color,size,font of text in a dialog box

5. Dialog box sizing

6. Sizing of controls in Dialog Box

7. font size of dialog box

8. multiple dialog box sizes

9. changing size of dialog box

10. Dialog box size

11. Dialog box and font size...

12. change size of dialog box according to number of lines in Cstring

 

 
Powered by phpBB® Forum Software