From: J.K. Baltzersen on
Dear all:

I have a dialog box that turns out to be too be big to be shown on
screens with low screen resolution. Seemingly there are users that
have such a low screen resolution, so changing it to a higher
resolution is not a option.

I have figured out that if I enable the system menu, the system menu
can be used to move the dialog box around without keeping the mouse
pointer on the title bar.

The problem is that I cannot put the title permanently outside the
screen. It keeps jumping back. There is no similar problem with the
bottom of dialog box. Putting parts of the dialog box outside the
screen is not a problem if it does not involve moving the title bar
outside the screen.

There are parts of the screen that the user needs access to at the
bottom of the dialog. Hence, I would like to be able to move the
dialog box to a position where the title bar is above the top of the
screen.

Any help will be greatly appreciated.

Thank you very much in advance.

Best regards,
J.K. Baltzersen
From: J.K. Baltzersen on
On Jan 21, 8:51 pm, "J.K. Baltzersen" <jornb...(a)pvv.org> wrote:
> Dear all:
>
> I have a dialog box that turns out to be too be big to be shown on
> screens with low screen resolution. Seemingly there are users that
> have such a low screen resolution, so changing it to a higher
> resolution is not a option.
>
> I have figured out that if I enable the system menu, the system menu
> can be used to move the dialog box around without keeping the mouse
> pointer on the title bar.
>
> The problem is that I cannot put the title permanently outside the
> screen. It keeps jumping back. There is no similar problem with the
> bottom of dialog box. Putting parts of the dialog box outside the
> screen is not a problem if it does not involve moving the title bar
> outside the screen.
>
> There are parts of the screen that the user needs access to at the
> bottom of the dialog. Hence, I would like to be able to move the
> dialog box to a position where the title bar is above the top of the
> screen.
>
> Any help will be greatly appreciated.
>
> Thank you very much in advance.
>
> Best regards,
> J.K. Baltzersen

It seems that the problem is that when I move or click the mouse after
having moved the dialog box, the top of the dialog box sticks to the
mouse pointer, and hence it jumps back to the screen.
From: David Ching on
"J.K. Baltzersen" <jornbalt(a)pvv.org> wrote in message
news:32c9f0b3-4020-4e8e-a203-6da1c1239799(a)21g2000yqj.googlegroups.com...
> The problem is that I cannot put the title permanently outside the
> screen. It keeps jumping back.

This seems to occur only when you use the system menu's Move function. I
have an app that lets you click anywhere in the client area to drag-move the
window (it does this by returning HT_CAPTION in the WM_NCHITTEST handler).
And if I drag the window so the top runs off the top of the screen, the
window stays there. Perhaps the same occurs if you call MoveWindow()
programmatically when a button or something is clicked.

A potentially better solution is for you to show the dialog resource as a
modal CScrollView so that the user can scroll through the entire dialog when
it doesn't fit on the screen. More modern frameworks like WinForms and Qt
have the concept of layout panels which resize listboxes, etc. to be smaller
when the window becomes smaller, but unfortunately I think CScrollView is
the best you can do in MFC, short of reauthoring the dialog entirely (which
is no good because it cheats the users with higher resolution).

-- David


From: Joseph M. Newcomer on
I would be inclined to make the controls scrollable and add a scrollbar to the side of the
dialog. There are examples of this in my Locale Explorer, which has the same problem.
joe

On Thu, 21 Jan 2010 11:51:35 -0800 (PST), "J.K. Baltzersen" <jornbalt(a)pvv.org> wrote:

>Dear all:
>
>I have a dialog box that turns out to be too be big to be shown on
>screens with low screen resolution. Seemingly there are users that
>have such a low screen resolution, so changing it to a higher
>resolution is not a option.
>
>I have figured out that if I enable the system menu, the system menu
>can be used to move the dialog box around without keeping the mouse
>pointer on the title bar.
>
>The problem is that I cannot put the title permanently outside the
>screen. It keeps jumping back. There is no similar problem with the
>bottom of dialog box. Putting parts of the dialog box outside the
>screen is not a problem if it does not involve moving the title bar
>outside the screen.
>
>There are parts of the screen that the user needs access to at the
>bottom of the dialog. Hence, I would like to be able to move the
>dialog box to a position where the title bar is above the top of the
>screen.
>
>Any help will be greatly appreciated.
>
>Thank you very much in advance.
>
>Best regards,
>J.K. Baltzersen
Joseph M. Newcomer [MVP]
email: newcomer(a)flounder.com
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm
From: Tom Serface on
Have you considered changing it into a form view. You could also try
breaking it up into multiple smaller dialogs.

Tom

"J.K. Baltzersen" <jornbalt(a)pvv.org> wrote in message
news:32c9f0b3-4020-4e8e-a203-6da1c1239799(a)21g2000yqj.googlegroups.com...
> Dear all:
>
> I have a dialog box that turns out to be too be big to be shown on
> screens with low screen resolution. Seemingly there are users that
> have such a low screen resolution, so changing it to a higher
> resolution is not a option.
>
> I have figured out that if I enable the system menu, the system menu
> can be used to move the dialog box around without keeping the mouse
> pointer on the title bar.
>
> The problem is that I cannot put the title permanently outside the
> screen. It keeps jumping back. There is no similar problem with the
> bottom of dialog box. Putting parts of the dialog box outside the
> screen is not a problem if it does not involve moving the title bar
> outside the screen.
>
> There are parts of the screen that the user needs access to at the
> bottom of the dialog. Hence, I would like to be able to move the
> dialog box to a position where the title bar is above the top of the
> screen.
>
> Any help will be greatly appreciated.
>
> Thank you very much in advance.
>
> Best regards,
> J.K. Baltzersen

 |  Next  |  Last
Pages: 1 2
Prev: Parsing CSV files
Next: Property Management Plymouth