NO

Author Topic: How to add horizontal separator in dialog?  (Read 4710 times)

Snowman

  • Guest
How to add horizontal separator in dialog?
« on: May 20, 2016, 11:26:57 AM »
Hello, I don't know how to add horizontal separators in my dialogs. Microsoft calls these "etched separator lines":



JohnF

  • Guest
Re: How to add horizontal separator in dialog?
« Reply #1 on: May 20, 2016, 01:50:27 PM »
MF_SEPARATOR
Draws a horizontal dividing line. This flag is used only in a drop-down menu, submenu, or shortcut menu. The line cannot be grayed, disabled, or highlighted. The lpNewItem and uIDNewItem parameters are ignored.


Use AppendMenu API

John

Snowman

  • Guest
Re: How to add horizontal separator in dialog?
« Reply #2 on: May 21, 2016, 02:16:15 PM »
Hello John, unfortunately that is not what I'm looking for: you have posted about menu item separators.

I am looking for separators in a dialog, as seen in the "Object Properties" screenshot posted above.

JohnF

  • Guest
Re: How to add horizontal separator in dialog?
« Reply #3 on: May 21, 2016, 02:41:25 PM »
Sorry,

I found this on MSDN

Developers: You can implement a separator with an etched rectangle with a height of one.

Here

John

Scripter

  • Guest
Re: How to add horizontal separator in dialog?
« Reply #4 on: June 03, 2016, 09:09:24 PM »
Hello John, unfortunately that is not what I'm looking for: you have posted about menu item separators.

I am looking for separators in a dialog, as seen in the "Object Properties" screenshot posted above.

In the dialog editor select a "group box", give it no title, select the client edge attribute and set it's height to 1.