Jump to content
Ian Branch

Help Border icon only?

Recommended Posts

Hi Guys,

I want to have just the Help border icon, biHelp, visible on a form but it seems to require the SystemMenu icon, biSystemMenu, as well.

Is there any way to have just the Help icon?

Regards & TIA,

Ian

Share this post


Link to post

Short answer - no, it is not possible.  biHelp (the WS_EX_CONTEXTHELP extended window style) requires biSystemMenu (the WS_SYSMENU window style), even though this does not seem to be documented anywhere.  And it is not a VCL limitation.  Enabling biSystemMenu and biHelp, and then manually removing WS_SYSMENU at runtime, still disables the Help button.

 

To do what you are asking, you will have to custom-draw the title bar to draw your own Help button.  Or, in 10.4+, use the new Custom Title Bar feature.

 

Edited by Remy Lebeau

Share this post


Link to post

Tks Remy,

I half expected that.

I did briefly, a while ago, have a look at the Custom Title Bar concept but was not impressed by it.

I will have another look.

Regards,

Ian

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×