Author Topic: Dynamic Layout  (Read 3050 times)

Biterider

  • Moderator
  • Member
  • *****
  • Posts: 674
  • ObjAsm Developer
    • ObjAsm
Re: Dynamic Layout
« Reply #15 on: May 21, 2020, 06:47:06 AM »
Hi HSE
They are proportions. The values are given in percent (0-100%). The first 2 for the position and the last 2 for the size.
Since I imitate the MFC behavior, we can look at their documentation, e.g. https://mariusbancila.ro/blog/2015/07/27/dynamic-dialog-layout-for-mfc-in-visual-c-2015/.

Biterider

HSE

  • Member
  • *****
  • Posts: 1632
  • <AMD>< 7-32>
Re: Dynamic Layout
« Reply #16 on: May 21, 2020, 07:43:04 AM »
They are proportions.
No. This is a difference:
Code: [Select]
mov xcx, lParam
    movsx eax, cx                                       ;eax = new client x size
    sub eax, [xdx].DL_HEADER.IniSize.x
    .if SIGN?
      xor eax, eax
    .endif
    mov MCWI.dDeltaX, eax

Perhaps that work in a dialog, and must be placed in dialog.inc. (I don't make dialogs  :biggrin:)

Anyway the idea it's very good  :thumbsup:

Biterider

  • Moderator
  • Member
  • *****
  • Posts: 674
  • ObjAsm Developer
    • ObjAsm
Re: Dynamic Layout
« Reply #17 on: October 31, 2020, 06:37:14 PM »
Hi
I have improved the gripper management a little.  :biggrin:
Previously, the gripper was displayed when the higher-level window was maximized. Now it is hidden and all gripper actions are deactivated automatically.

Another small improvement is that child window placement is skipped when the parent window is minimized.

These changes affect the windows.inc file that is in the attachment.

Regards, Biterider