Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2018-03

TToolButton:.Marked

3 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Werner Pamler

Does anybody know what the property "Marked" of TToolButton is good for? I never realized it, but it's been there at least since Laz 1.0, and in Delphi at least since D7. And it does not do anything, even in Delphi. Delphi's help
(http://docs.embarcadero.com/products/rad_studio/delphiAndcpp2009/HelpUpdate2/EN/html/delphivclwin32/ComCtrls_TToolButton_Marked.html) says: "Use Marked to get or set whether the button is marked." What a nonsense! Then: "A marked button has a shaded surface. ". Well, in reality they look the same. And even if this were true what would be the difference to "Down" then?

Werner

Reply by email

rvk
to Werner Pamler

Free Pascal - Lazarus mailing list wrote

Does anybody know what the property "Marked" of TToolButton is good for?

According to the Microsoft documentation Marked is TBSTATE_MARKED. Down is TBSTATE_PRESSED OR TBSTATE_CHECKED.
So they ARE different.

TBSTATE_MARKED is described as:
Version 4.71. The button is marked. The interpretation of a marked item is dependent upon the application.

https://msdn.microsoft.com/en-us/library/windows/desktop/bb760437(v=vs.85).aspx

So it's up to the application to implement this. Just look at it as an extra "option" for the button.

Rik

Reply by email