delphi - How to draw string in GDI+ Graphics.DrawString that honors the underline chars when I use ampersand? -
i'm using gdi+ draw string not act windows drawtext when comes honoring &
in front of char. draws & , not underlines next char. maybe there option turn on/off? please help.
it difficult provide complete answer when cannot see code using critique problem might lie, or implementation of gdi+ api using.
the best can provide references relevant documentation underlying gdi+ api's involved.
first: drawstring, used draw text.
second: stringformat object passed drawstring control aspects of rendering of supplied string.
finally: hotkeyprefix enumeration used in stringformat object indicates how hot key prefixes (ampersands) handled.
in case looking hotkeyprefixshow behaviour. (the current behaviour describe hotkeyprefixnone)
Comments
Post a Comment