mmehr2 / Msw4

Source code for MagicScroll for Windows (basic) project.
0 stars 0 forks source link

Develop Secondary version of Remote Dialog UI #20

Open mmehr2 opened 6 years ago

mmehr2 commented 6 years ago

This needs to be a trimmed-down version of the Primary one, if at all. It should show the net status and error indications that the Primary would (see issue #19) but remove all the rest of the complexity (only for the Primary version).

Depending on how the billable features work out, we may also want to have the Login/Logout button here to control when the Secondary will listen for connections, since this may increase billable message traffic if left on 24/7. See issue #16 for details.

mmehr2 commented 6 years ago

Work tasks:

Decision: Actually, this can be just a login/logout button and status message panel. UPDATE 4/4: Even easier to use existing Primary dialog and hide or disable controls (Phase 0).

Phase 1 (easy): Modify existing Primary Remote Dialog for Secondary use:

Phase 2 (if time): It may be better to integrate this into the main UI.

mmehr2 commented 6 years ago

I have decided to dynamically modify the RemoteDialog layout depending on configuration (Primary, Secondary). In Secondary mode, the controls for the list management and Connect are hidden, and the Network Message box and the Close button (IDOK) are moved up. Finally, the height of the dialog is shrunk to fit the controls' new positions.

I had a bear of a time getting docs on which of the functions (SetWindowPos, MoveWindow, GetClientRect, GetWindowRect) to use, and what units they return. I had to use some fudge factors, which will probably look bad on other resolutions. Need to work this out better, but for now just make sure the buttons are usable on as many resolutions as possible for me to test here. And Eric later.