Recent

Author Topic: Mac look and feel window header/toolbar?  (Read 10101 times)

wotanica

  • Guest
Mac look and feel window header/toolbar?
« on: September 16, 2010, 10:14:25 am »
I have checked out some aplications made with Lazarus, especially this website:
http://www.binerus.com/imagecommander/index.html

Now all these apps have the typical Mac window-header (or toolbar, the grey gradient section on top of the window). How exactly do I get this in a lazarus application? Is this a custom skinning feature? Ownerdrawn, home made lookalike? API call? Could it be set in the createparams?
« Last Edit: September 18, 2010, 02:13:33 pm by wotanica »

felipemdc

  • Administrator
  • Hero Member
  • *
  • Posts: 3541
Re: Mac look and feel window header/toolbar?
« Reply #1 on: September 19, 2010, 06:27:47 am »
Maybe the author would be kind enough to tell. Try contacting him. I have no idea, just that I'm pretty sure it's not CreateParams.

Frantic

  • New Member
  • *
  • Posts: 18
Re: Mac look and feel window header/toolbar?
« Reply #2 on: November 16, 2010, 02:05:09 pm »
Please, notify if you get any luck with creating such a toolbar! I'm also interested in this question...

LazaruX

  • Hero Member
  • *****
  • Posts: 597
  • Lazarus original cheetah.The cheetah doesn't cheat
Re: Mac look and feel window header/toolbar?
« Reply #3 on: November 16, 2010, 02:08:16 pm »
I think the easiest way is to create a form without border and then use an image as title toolbar, then give that image the ability to move the form. I have such a code as I am describing if you want.

mica

  • Full Member
  • ***
  • Posts: 192
Re: Mac look and feel window header/toolbar?
« Reply #4 on: November 16, 2010, 03:26:46 pm »
I think this is done with DXScene/VGScene

http://www.ksdev.com/

very impressive (and works with Lazarus too)


qdos

  • Full Member
  • ***
  • Posts: 112
Re: Mac look and feel window header/toolbar?
« Reply #5 on: February 23, 2011, 12:48:21 am »
Hm... Embarcadero has bought this product (and hired the developer).
I hate noticing this so late, it will no doubt play a major part in the OS X version of Delphi that will hit the marked Q4 2011.

If anyone has a license of this to sell that compiled for freepascal under OS X, let me know.
The author has been hired by embarcadero and the product is no longer available ... :(

Phil

  • Hero Member
  • *****
  • Posts: 2750
Re: Mac look and feel window header/toolbar?
« Reply #6 on: February 23, 2011, 03:43:25 am »
This time last year there was talk about a Q4 2010 Delphi for OS X. At the time I thought, no way. I'm skeptical that we'll see it this year as well.

Note that if you use Cocoa directly with FPC 2.5.1's ObjectiveC modeswitch, you can use any Cocoa library you want once the headers have been parsed (parser included with 2.5.1). There are probably ObjC libraries you can get that support a similar window bar look. See Apple's own App Store app for OS X - it has something similar.

That sort of look used to be considered non-standard Mac, but it looks what's considered acceptable is changing:

http://daringfireball.net/2011/01/uniformity_vs_individuality_in_mac_ui_design

Thanks.

-Phil

marcov

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 7860
Re: Mac look and feel window header/toolbar?
« Reply #7 on: February 23, 2011, 10:13:21 am »
This time last year there was talk about a Q4 2010 Delphi for OS X. At the time I thought, no way. I'm skeptical that we'll see it this year as well.

I expect a 64-bit version this year, you occasionally see references in Delphi developer's blogs. I don't think we'll see something multiplatform this year

jwdietrich

  • Hero Member
  • *****
  • Posts: 1042
    • formatio reticularis
Re: Mac look and feel window header/toolbar?
« Reply #8 on: March 04, 2011, 09:19:56 pm »
@qdos:
Thank you for creating this great gradient header (http://www.lazarus.freepascal.org/index.php/topic,12247.0.html)!
function GetRandomNumber: integer; // xkcd.com
begin
  GetRandomNumber := 4; // chosen by fair dice roll. Guaranteed to be random.
end;

http://www.formatio-reticularis.de

Lazarus 2.0.6 | FPC 3.0.4 | PPC, Intel, ARM | macOS, Windows, Linux