Simple form segmentation ...

xiaoxiao2021-03-05  23

Implement a simple form segmentation, following the following PANEL, two MEMOs.

The properties of the Panel are set as follows:

Cursor = crvsplitalign = altopdragcursor = crvsplitdragmode = DMAUTOMATIC

The properties of Memo1 are as follows:

Align = altop

The properties of Memo2 are as follows:

Align = alclient

Then the Dragover method of the two MEMOs is:

Accept = false; if (source == panel1) {accept = true; memo1-> height = y Dynamic_cast (sender) -> top;} This can implement a form to be divided by two MEMOs, and You can pull the panel to adjust the size of MEMO1 and MEMO2. This allows a form to be divided by two MEMOs, and can pull Panel to adjust the size of MEMO1 and MEMO2.

转载请注明原文地址:https://www.9cbs.com/read-38368.html

New Post(0)