Previous Thread
Next Thread
Print Thread
Context Menu Question #36869 12 Dec 23 04:46 PM
Joined: Sep 2002
Posts: 5,471
F
Frank Online Content OP
Member
OP Online Content
Member
F
Joined: Sep 2002
Posts: 5,471
Good day -

Here is a softball question for you! I have removed the icons from my context menu but the indentation is remaining (see ex). I would like to have the verbiage displayed all the way to the left. Is there a way to remove this? Or have I coded it in a way that is causing it?

TIA.


Attached Files Capture.JPG
Last edited by Frank; 12 Dec 23 04:48 PM.
Re: Context Menu Question [Re: Frank] #36870 12 Dec 23 06:41 PM
Joined: Jun 2001
Posts: 11,794
J
Jack McGregor Offline
Member
Offline
Member
J
Joined: Jun 2001
Posts: 11,794
It appears to me after reviewing the Windows menu API and looking at some other apps, that the space to the left is reserved for icons and checkmarks whether you need them or not. (Since items are added individually, it's easy so see why it wouldn't be so easy to adjust the overall menu spacing each time an item is added.)

That said, the API does provide a hook allowing the application some degree of control over drawing the items, but: a) manually drawing parts of the Windows interface is typically complex due to the need to integrate with themes, so this would be a project, and b) it's not year clear to me that even with the "owner draw" method we can eliminate the space reserved for the item icons.

Re: Context Menu Question [Re: Frank] #36871 12 Dec 23 06:48 PM
Joined: Sep 2002
Posts: 5,471
F
Frank Online Content OP
Member
OP Online Content
Member
F
Joined: Sep 2002
Posts: 5,471
Hey Cap tx for checking into it. Understandable. Will leave status quo, thanks.


Moderated by  Jack McGregor, Ty Griffin 

Powered by UBB.threads™ PHP Forum Software 7.7.3