C, how to dock the form, and how C can achieve a dock like function

Updated on society 2024-05-20
13 answers
  1. Anonymous users2024-02-11

    I don't know if net has this kind of control or has the function itself, if you want to write it yourself, it is to detect whether the program form is outside the screen, that is, whether the y coordinate is less than 0 and so on; It will be displayed if the mouse cursor is moving over it.

  2. Anonymous users2024-02-10

    1. The original size of the record window.

    2. Get the window coordinates.

    3. Get the screen width and height.

    4. Compare x<=0, y<=0, x+>=screen width, y+>=screen width,;

    5. Get mouse coordinates.

    6. Compare its position within and restore the original size of the form.

  3. Anonymous users2024-02-09

    Put the ToolsTrip widget in the ToolsTripContainer container widget to float.

  4. Anonymous users2024-02-08

    100% is a user-defined control, or a third-party control of the property, encapsulating a property by yourself, named dockto, who has any opinion what.

    Or you can override a property yourself, or you can name it yourself, the original property is a dock, and the member is dockstyleMember's name.

  5. Anonymous users2024-02-07

    is the dock, the distance of the control from the parent control

  6. Anonymous users2024-02-06

    devexpress can,You can use its dockmanager control,After dragging it up, the control can add panel,And then it's some property settings.,It's very simple,How to drag and look at your own interface settings,Floating、Docking、The function of auto-hiding is what it comes with,Properties basically don't need to be set。

  7. Anonymous users2024-02-05

    There's a widget library called that fits your needs.

  8. Anonymous users2024-02-04

    1. In the subform. show(). mdiparent = this;In this way, the child window will really be the parent form and the child form, and the child form will be within the scope of the parent form, and it can be opened multiple times, but I personally don't recommend this approach;

    2. Set the topmost attribute of the form to be shown to true; (Personal Recommendation).

  9. Anonymous users2024-02-03

    Opening a subform with MDI forms is done with Forms. showdialog();

    Or just use showdialog();

  10. Anonymous users2024-02-02

    This kind of thing is called a message prompt, and some of the default widgets have direct properties that can be used, or you can write mouse events to manipulate the display or closure of new windows.

    You can also directly set the internal window You can check the [parent window] in the document, see and try the real docking refers to the toolbar docking function in the net device, the docking position appears when dragging the toolbar, and then the mouse drags the toolbar (small form) to the docking position, when the mouse is released, the form is merged into the main form.

    I wrote this and my QQ is the same as my name.

  11. Anonymous users2024-02-01

    This is very similar to the magnetic form form.,The difference is that you can't drag it (this is easy to solve),You google the magnetic form.,There will be**and instructions.,I won't post it**。

  12. Anonymous users2024-01-31

    Isn't it asking to set the window size?

    This can be determined using the maximum and minimum values in the form properties.

  13. Anonymous users2024-01-30

    This is to be written** to determine the distance from the screen border.

Related questions
4 answers2024-05-20

Your form2 constructor should be overloaded once: it should pass the textbox as an argument and it becomes: >>>More

29 answers2024-05-20

Check this out. <>

You can also knock ** yourself. >>>More

19 answers2024-05-20

Write in the click of button1; Then write using system in the main function; >>>More

16 answers2024-05-20

Write in the mouseover event and mouseout event, and clear the word in the text box when there is focus.