Recent

Author Topic: [SOLVED] Mac GUI window not clickable  (Read 3821 times)

lazyboy007

  • Newbie
  • Posts: 4
[SOLVED] Mac GUI window not clickable
« on: October 07, 2014, 04:53:25 pm »
Hello,

I have a problem on lazarus for mac, and it is quite urgent as i need it for school. I have made Units that run fine on the school windows, yet when I convert them on Lazarus, the GUI window is unclickable. No matter what I do, I can't press on any button or Edit or anything else.

If anyone knows how to fix this problem, I would be glad to know how  :)

Thanks in advance  ::)
« Last Edit: October 14, 2014, 05:40:41 pm by lazyboy007 »

zeljko

  • Hero Member
  • *****
  • Posts: 1906
    • http://wiki.lazarus.freepascal.org/User:Zeljan
Re: Mac GUI window not clickable
« Reply #1 on: October 07, 2014, 05:55:05 pm »
Without example project nobody can help you.

lazyboy007

  • Newbie
  • Posts: 4
Re: Mac GUI window not clickable
« Reply #2 on: October 14, 2014, 03:13:36 pm »
Well it just doesn't work for any project, even if I just use a blank unit and no content at all, the unit appears and it's not clickable :/

BigChimp

  • Hero Member
  • *****
  • Posts: 5740
  • Add to the wiki - it's free ;)
    • FPCUp, PaperTiger scanning and other open source projects
Re: Mac GUI window not clickable
« Reply #3 on: October 14, 2014, 03:24:48 pm »
So how is that sample project coming along that demonstrates the problem? Given your description it shouldn't be hard to provide. You can attach it as a zip file to a post.

Please also always post your Lazarus version, OS version.
Want quicker answers to your questions? Read http://wiki.lazarus.freepascal.org/Lazarus_Faq#What_is_the_correct_way_to_ask_questions_in_the_forum.3F

Open source including papertiger OCR/PDF scanning:
https://bitbucket.org/reiniero

Lazarus trunk+FPC trunk x86, Windows x64 unless otherwise specified

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 12785
  • FPC developer.
Re: Mac GUI window not clickable
« Reply #4 on: October 14, 2014, 04:18:11 pm »
IIRC Configure creating a bundle in project options, and start the bundle, not the generated binary.

jwdietrich

  • Hero Member
  • *****
  • Posts: 1275
    • formatio reticularis
Re: Mac GUI window not clickable
« Reply #5 on: October 14, 2014, 04:45:06 pm »
IIRC Configure creating a bundle in project options, and start the bundle, not the generated binary.

Exactly. You should double-click the bundle (that is the file with the standard application icon showing a pencil, a paintbrush and a ruler that shape an "A"), not the binary itself (the file with the shell-like icon showing the test "exec"). In Mac OS X applications are bundles, i.e. special folders that contain both binaries and resources.

The behaviour that you describe is typical for binaries that are started directly (rather than being started by the bundle).
« Last Edit: October 14, 2014, 04:50:12 pm by jwdietrich »
function GetRandomNumber: integer; // xkcd.com
begin
  GetRandomNumber := 4; // chosen by fair dice roll. Guaranteed to be random.
end;

http://www.formatio-reticularis.de

Lazarus 4.2.0 | FPC 3.2.2 | PPC, Intel, ARM | macOS, Windows, Linux

lazyboy007

  • Newbie
  • Posts: 4
Re: Mac GUI window not clickable
« Reply #6 on: October 14, 2014, 05:35:58 pm »
IIRC Configure creating a bundle in project options, and start the bundle, not the generated binary.

Exactly. You should double-click the bundle (that is the file with the standard application icon showing a pencil, a paintbrush and a ruler that shape an "A"), not the binary itself (the file with the shell-like icon showing the test "exec"). In Mac OS X applications are bundles, i.e. special folders that contain both binaries and resources.

The behaviour that you describe is typical for binaries that are started directly (rather than being started by the bundle).

The problem occurs when I use the run command in lazarus, so i don't actually click a file. Where do I find the options I have to change in Lazarus?
« Last Edit: October 14, 2014, 05:38:49 pm by lazyboy007 »

lazyboy007

  • Newbie
  • Posts: 4
Re: Mac GUI window not clickable
« Reply #7 on: October 14, 2014, 05:40:27 pm »
IIRC Configure creating a bundle in project options, and start the bundle, not the generated binary.

Ok thanks I found what you were talking about with ggole research :) Worked fine ;)

Thanks to all of you

 

TinyPortal © 2005-2018