Forum > Cocoa

About Buttons/ExCtrls and cocoa

<< < (2/2)

wp:
Ah I see. In the SetCaption setter method, there is this code:


--- Code: Pascal  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---procedure TButtonEx.SetCaption(const AValue: String);begin  if FCaption = AValue then    exit;  inherited Caption := '';    FCaption := AValue;  Invalidate;end;
This erases the inherited Caption and assumes that it is replaced by the new caption (FCaption). I do remember that the control did not work with all its features when the inherited Caption was not empty. And I found an old forum post in which I reported several issues with TButtonEx: https://forum.lazarus.freepascal.org/index.php/topic,50179.msg366185.html

So, my advice: don't use TButtonEx on cocoa... Sorry.

AlexTP:
If you attached the demo project, ppl could see you were talking about ButtonEx, not about Button.

Navigation

[0] Message Index

[*] Previous page

Go to full version