Re: [Lazarus] TToolButton:.Marked

2018-03-03 Thread Werner Pamler via Lazarus

Thanks. Something like an additional boolean Tag, then.
--
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] TToolButton:.Marked

2018-03-02 Thread rvk via Lazarus
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




--
Sent from: http://free-pascal-lazarus.989080.n3.nabble.com/
-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


[Lazarus] TToolButton:.Marked

2018-03-02 Thread Werner Pamler via Lazarus
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

--
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus