Jump to content
Registration disabled at the moment Read more... ×
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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×