DOpus doesn't resize its contents

I have DOpus in a maximized window.

If I connect to that computer over remote desktop in a smaller resolution, DOpus won't resize its contents (lister/toolbars/statusbar). If I 'restore' and maximize again, DOpus resizes correctly.

I use remote desktop all the time with different sized screens without seeing this problem. Is it literally the Windows Remote Desktop client/server, or something similar? Which versions of Windows are at each end (there are bugs in some versions of RDP)?

As long as Windows resizes the Opus window (which is automatic if the window is maximized and the screen itself is resized), Opus will resize what's in the window.

I use RDP, Win8.1 on both ends.

Actually, the resolution is the same (1900x1200), but depth changes and DWM gets turned off.

I'll try to catch it the next morning and see if perhaps the main window isn't resized well (with right borded out of the screen) - if that will be the case, I agree this isn't DOpus fault.

There is a bug in Windows itself where changing between visual styles with different titlebar sizes does not resize maximized windows.

You can see it without using Opus or Remote Desktop, at least on Windows 7: Maximize Notepad and then switch from "Windows 7" or "Windows 7 Basic" to "Windows Classic". The maximized Notepad window will no longer touch all edges of the screen, until it is restored and maximized again.

I've checked.

Main window (dopus.lister) is maximized, rect (115,-8)-(1928, 1208), which seems ok (I have taskbar on the left and 1920x1200 resolution). Titlebar buttons also show that the top level window is on those positions.

However, right child lister, dopus.filedisplaycontainer is placed as (1203,57)-(2043,1094) (coordinates are absolute).

Visually, it looks exactly like that.

Windows resizes only top windows and they have managed to do so; they never touch child windows, so I see this as a DOpus bug.

If I resize DOpus window and maximize it back, it will be ok. Also, I see this only on DOpus and I see this every morning. Few hours before I do connect over RDP, I lock my console (win+l). Console and remote resolutions are the same, but color depth and DWM usage is not.

I think that's all info I have for now.

Please post before & after screenshots of the whole desktop so we can see what's happening, and what the lister looks like (which may be important to reproducing what you're seeing).

OK, i shall, but it will have to wait until Monday.

Here are the snapshots:

i.imgur.com/vU6wZHY.png
i.imgur.com/yQy3aRn.png

By position of close titlebar button, you can see that top level is at the same position.

The two screenshots are different, and somewhat unusual, resolutions:

1797x1179
1795x1179

How do you get Windows and Remote Desktop to run in those resolutions? Or are the screenshots not showing the full screen?

There seems to be some extra stuff (or possibly junk that hasn't been repainted properly?) on the left and right edges of one of the screenshots, too. (Including in the taskbar areas, so it's not just Opus.) Is this a screenshot from a multi-monitor setup that has been cropped by hand, or are those columns of pixerl potentially part of the puzzle?

If you run mstsc.exe by commandline or use *.rdp files to preserve connection config, you can use any strange resolution, just edit the *.rdp file.
I run 1208 x 927 for remote administration. That res does not cover the complete screen (1920x1200) and is not to small eiter. Didn't remember the dimensions of the window being that strange though. o)

As tbone says, you can specify any resolution in .rdp file.

In my case, resolution is 1920x1200 (as on console), but with scaling turned on at the client (viewer) side. Sizes differ because I've manually cropped screenshot in Paint.

DOpus contents is looking fine and it's fully functional, only not resized well.

Can you tell us all the details to re-create that setup?

i.e. What are the DPI/scaling, resolution, RDP, etc. settings on the client and server machines and in the RDP client.

I cannot find DPI setting in Win8.1 any more, but, it's the default one, 96dpi (smaller 100%).

On console DWM is used.

.rdp file I use is:

screen mode id:i:1
desktopwidth:i:1920
desktopheight:i:1200
session bpp:i:15
winposstr:s:0,3,63,2,1351,1071
full address:s:xxxx
username:s:xxxx
connect to console:i:1
compression:i:1
keyboardhook:i:2
audiomode:i:0
redirectprinters:i:0
redirectcomports:i:0
redirectsmartcards:i:0
redirectclipboard:i:1
redirectposdevices:i:0
displayconnectionbar:i:1
autoreconnection enabled:i:1
authentication level:i:2
prompt for credentials:i:0
negotiate security layer:i:1
remoteapplicationmode:i:0
alternate shell:s:
shell working directory:s:
disable wallpaper:i:1
disable full window drag:i:0
allow desktop composition:i:1
allow font smoothing:i:0
disable menu anims:i:1
disable themes:i:1
disable cursor setting:i:0
bitmapcachepersistenable:i:1
gatewayhostname:s:
gatewayusagemethod:i:2
gatewaycredentialssource:i:4
gatewayprofileusagemethod:i:0
drivestoredirect:s:Goran (C:);Data (D:);
promptcredentialonce:i:1
bitmapcachesize:i:15000
smart sizing:i:1
use multimon:i:0
audiocapturemode:i:0
videoplaybackmode:i:1
connection type:i:2
redirectdirectx:i:1
use redirection server name:i:0

I usually see this problem after a following set of events:

  1. I work at console
  2. lock console
  3. after few hours, I connect using .rdp from other machine

I see this every or every few days. If I skip 'few hours' part, I rarely see it, but it happens.

And, as I said, I see this problem only in DOpus, not in any other application.

So both machines are set to standard DPI? What meant by "scaling on the client side"? How do I set that part up?

The RDP file indicates 1920x1200 but the screenshot is smaller than that, so I'm still missing that part of how to reproduce the same setup.

The rdp window resolution is a different entry, it is winposstr that sets the rdp window size, but it does not directly translate to the real window dimensions somehow.
For me it is: s:0,1,700,16,1910,1000 - while a screenshot of that window gives 1208 x 927.

The last 4 digits are top-left corner and bottom-right-corner coordinates.

[quote="leo"]So both machines are set to standard DPI? What meant by "scaling on the client side"? How do I set that part up?

The RDP file indicates 1920x1200 but the screenshot is smaller than that, so I'm still missing that part of how to reproduce the same setup.[/quote]

desktopwidth:i:1920
desktopheight:i:1200
winposstr:s:0,3,63,2,1351,1071
smart sizing:i:1

Although, you shouldn't focus on the 'client side scaling' as it doesn't affect what is going on on the DOpus running computer.

Are these settings you can only create by modifying the config file, not using the Remote Desktop GUI?

If client-side scaling doesn't affect the outcome, and everything is running at standard DPI, then I've already tried to reproduce the same setup (and in fact do the same thing many times a day at times, as I use RDP a lot) without success.

Correct, they are the part of manually-edited .rdp file.

Have you tried by locking console through the night and then connecting using rdp first thing in the morning? At the moment I don't know why would that be significant.