Author Topic: Dynamic Layout  (Read 1106 times)

Biterider

  • Moderator
  • Member
  • *****
  • Posts: 533
  • 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: 1349
  • <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: