The MASM Forum

Projects => Easy Code IDE 32/64-bit => Topic started by: Thegeorge on April 21, 2019, 07:25:19 AM

Title: Easy code layout management
Post by: Thegeorge on April 21, 2019, 07:25:19 AM
Hi, first post to this forum so please excuse any ignorance.
Does anybody know of any layout management library software for the visual mode of Easy Code, or something akin to .net docking
Title: Re: Easy code layout management
Post by: rsala on April 22, 2019, 02:54:46 AM
Hi Thegeorge,

Pleased to meet you.

I am sorry but Easy Code has been made to work with assembler compilers/linkers and has nothing to do with vb.net.
Title: Re: Easy code layout management
Post by: Thegeorge on April 22, 2019, 05:31:44 PM
Thank you for your reply.
I understand that Easy Code is for working in assembly code. Having tried out a few examples and played around with the tool a bit, I noticed that the background code in the visual mode does not seem to provide any support for component layout when a window is resized.
I was asking if any code is available, or perhaps being developed, that provides some layout management for Easy Code.
Title: Re: Easy code layout management
Post by: rsala on April 24, 2019, 10:25:22 PM
Thanks for your interest, but I am afraid there is nothing available to fit your needs.

At the moment, the EC visual mode works with MS Common Controls (comctl32). If you need any other special feature, you must build the appropiate component. On the other hand, the windows or controls resizing must be managed by the programmer with the WM_SIZE message. That is assembler, the lowest level programming language.
Title: Re: Easy code layout management
Post by: jj2007 on April 24, 2019, 11:15:19 PM
Quote from: Thegeorge on April 22, 2019, 05:31:44 PM... does not seem to provide any support for component layout when a window is resized.

Do you mean a behaviour as in the attached window & controls demo? Below the relevant code defining control positions:

  GuiControl BigEdit, "richedit", wCL$(), y0+50, h1000-50        ; y at fixed 50px, h at full height minus 50px
  GuiControl Status, "statusbar", wCat$(wDate$+", "+wTime$)      ; GuiControls require Unicode
  GuiControl Static, "static", "I'm a static control", x1000-78, w0+78, h0+36, bcol RgbCol(255, 222, 222)
  GuiControl SmallEdit, "edit", "Try the 'Open' menu", bcol RgbCol(255, 255, 99), h0+40, w1000-80, font -24
Title: Re: Easy code layout management
Post by: Thegeorge on April 25, 2019, 12:55:19 AM
Ok thanks for the replies.

The project i have in mind has a need for certain controls to be repositioned/resized when the parent window changes size. If that needs to be done in the program code rather than the controls/window, that's fine.

Kind regards
Title: Re: Easy code layout management
Post by: rsala on April 26, 2019, 01:33:47 AM
You are welcome!

Download the attached simple example of a 32-bit MASM project and see the WM_SIZE message, where the Edit control is resized according to the size of the parent window.
Title: Re: Easy code layout management
Post by: Thegeorge on April 26, 2019, 06:52:29 AM
Thanks rsala, I can see the principle. Side note: Need to set the Editbox Multiline property to TRUE in order for the text to wrap. Which is probably want you would want to do in a real use. Nevertheless very helpful. Thank you very much.
Title: Re: Easy code layout management
Post by: rsala on April 27, 2019, 06:06:57 AM
 :t