Recent

Author Topic: Additional right aligned text in Caption of MenuItem  (Read 9278 times)

jamie

  • Hero Member
  • *****
  • Posts: 4848
Re: Additional right aligned text in Caption of MenuItem
« Reply #15 on: July 12, 2021, 12:13:57 am »

 Regardless of how its implemented, the LCL has it as ownerdraw and its not the only windows type control the LCL is doing this too.

 The fact remains that its doing it and does not match the native behavior of windows, which can be correct..

 Also, if you look closer at the existing code, it looks like it may have had the DT_EXPANDTABS in there at some time because they are using #9 and later using the DrawText function. So its my opinion that it wasn't always like this.

Have it your way, I am only a visitor.






The only true wisdom is knowing you know nothing

LazProgger

  • Full Member
  • ***
  • Posts: 103
Re: Additional right aligned text in Caption of MenuItem
« Reply #16 on: July 12, 2021, 03:52:00 am »

 Also, if you look closer at the existing code, it looks like it may have had the DT_EXPANDTABS in there at some time because they are using #9 and later using the DrawText function. So its my opinion that it wasn't always like this.


That is very likely. Otherwise it makes no sense why at one point the #9 is written between caption and shortcut and in the draw procedure the shortcut part is nevertheless drawn separately.
« Last Edit: July 12, 2021, 03:54:20 am by LazProgger »

 

TinyPortal © 2005-2018