ROCLASI wrote:Hi Rossen,
Use HTML in the button label and you can apply any style and text-decoration you want.
Hope this helps.
Yes, I did that. And got the underline... but the statement "apply any style and text-decoration you want" in the smart client is really limited to only whatever the crappy Java HTML rendering can do... and this approach forces me to stuff unnecessary HTML code... and now I have to start escaping un-safe HTML characters in the link text... yes, possible, but why having to jump over so many hoops to get a simple think like that working? A side note, In .NET and Delphi, there are standard components right out of the box which do exactly that without any of those workarounds. Servoy should really update the standard components pallet to include some of the 21st century UI stuff and make it work consistent in the Smart Client and the Web Client, but that is a separate topic altogether.
So, so far I was able to make a button look and act like a hyper-link in the smart client. In the web client however, the "link button" does not show the hand cursor when hovering over, even though I have set the rolloverCursor property to HAND (shows up fine in the smart client). This applies actually to "regular" buttons - just give it a try: place a button on a form, set its rolloverCursor property to HAND and compare the results in Smart and Web client... seems like a bug to me