Recent

Author Topic: Adding events to elements of a form  (Read 9142 times)

rlamacraft

  • Guest
Adding events to elements of a form
« on: January 29, 2012, 10:10:05 pm »
I'm really new to programming and so need all the help I can get.

A recently started working on forms at my college and I am the only one who is using a mac and i am the only person who is getting an error message every time they try and add an event to any element i add to the form.
I click on the events tab in the object inspector, select an event and then press the ellipses which would normally create a procedure in windows just gives me an error

Here is a link to a screenshot of when this message arises: http://cl.ly/0x0o1E410u0s2N3E3n3Z

All help is much appreciated, thanks

felipemdc

  • Administrator
  • Hero Member
  • *
  • Posts: 3538
Re: Adding events to elements of a form
« Reply #1 on: January 29, 2012, 10:18:23 pm »
Which Lazarus version are you using? (please always inform this when asking questions, and also how you installed Lazarus)

It is a codetools error, I remember getting this kind of error, but then it vanished ... but I don't remember what I did to solve the problem. I think that I just restarted Lazarus and it started working ... or maybe I simply rebuilt Lazarus from a newer revision and it started working.

rlamacraft

  • Guest
Re: Adding events to elements of a form
« Reply #2 on: January 30, 2012, 09:48:08 pm »
0.9.30.2 beta is my version of lazarus as for how I installed lazarus i installed the three disk images from sourceforge.net; i think it was these files:

http://sourceforge.net/projects/lazarus/files/Lazarus%20Mac%20OS%20X%20i386/Old%20releases/Lazarus%200.9.28.2/

And what do u mean by rebuild lazarus from a newer version???

Thanks for all the help

BlueIcaro

  • Hero Member
  • *****
  • Posts: 792
    • Blog personal
Re: Adding events to elements of a form
« Reply #3 on: January 30, 2012, 11:06:38 pm »
I was this problem, but, like Felipe, I can't remembar how I work around. I think I had the problem when I  try to add a method of a control, but my code had a problem.

Try to build your lazarus again. I solved some strabge problems doing that.

/BlueIcaro

BigChimp

  • Hero Member
  • *****
  • Posts: 5740
  • Add to the wiki - it's free ;)
    • FPCUp, PaperTiger scanning and other open source projects
Re: Adding events to elements of a form
« Reply #4 on: January 31, 2012, 09:23:00 am »
And what do u mean by rebuild lazarus from a newer version???
He means getting the source (e.g. via SVN) and recompiling it. See e.g. the wiki.

If that is too difficult, you might have better luck with the images from the snapshot page...

Good luck & let us know how it goes!
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

rlamacraft

  • Guest
Re: Adding events to elements of a form
« Reply #5 on: February 01, 2012, 06:07:56 pm »
Tried installing the fpc, fprscr and lazarus from here: http://www.hu.freepascal.org/lazarus/
And still got this error when trying to simply add an event to a TButton: http://cl.ly/3I3r2A1Y0A3K3Z2y0243
any ideas??
 Thanks for all the help

felipemdc

  • Administrator
  • Hero Member
  • *
  • Posts: 3538
Re: Adding events to elements of a form
« Reply #6 on: February 02, 2012, 04:39:41 pm »
What is written in the messages window?

rlamacraft

  • Guest
Re: Adding events to elements of a form
« Reply #7 on: February 02, 2012, 05:28:12 pm »
sorry, i didnt realise the message window was covered: http://cl.ly/002Y3t1I313z1L2M3M11

felipemdc

  • Administrator
  • Hero Member
  • *
  • Posts: 3538
Re: Adding events to elements of a form
« Reply #8 on: February 02, 2012, 05:30:09 pm »
Which DMGs exactly have you installed? Have you installed the one with the fpc source code? fpcsrc

rlamacraft

  • Guest
Re: Adding events to elements of a form
« Reply #9 on: February 02, 2012, 10:21:28 pm »
the names of the disk images that I have installed are:
   fpcsrc-2.4.4.intel-macosx.dmg
   lazarus-0.9.31.35029-20120130-i386-macosx.dmg
   fpc-2.4.4.intel-macosx.dmg

rlamacraft

  • Guest
Re: Adding events to elements of a form
« Reply #10 on: February 05, 2012, 12:25:21 am »
How exactly do I 'rebuild lazarus'?
Thanks for all the help…

Shebuka

  • Sr. Member
  • ****
  • Posts: 427
Re: Adding events to elements of a form
« Reply #11 on: February 06, 2012, 04:11:58 pm »
How exactly do I 'rebuild lazarus'?
Thanks for all the help…
Tools -> Configure "Build Lazarus" -> Select "Clean + Build" -> Build

rlamacraft

  • Guest
Re: Adding events to elements of a form
« Reply #12 on: February 06, 2012, 05:38:07 pm »
That didn't work - is it worth trying to un-install and re-install lazarus? And if so, how would I do that?

rlamacraft

  • Guest
Re: Adding events to elements of a form
« Reply #13 on: February 17, 2012, 05:02:39 pm »
I have tried deleting the whole developer folder (I had 2 for some reason) and installing xcode and the 3 disk images again - that didnt work

I tried rebuilding lazarus again - that didn't work, I just got loads of errors

Can I, and if so, would it be easier, to just run bootcamp and install windows and use the windows version of lazarus, as I will be working with people who are running it on windows anyway…

BigChimp

  • Hero Member
  • *****
  • Posts: 5740
  • Add to the wiki - it's free ;)
    • FPCUp, PaperTiger scanning and other open source projects
Re: Adding events to elements of a form
« Reply #14 on: February 18, 2012, 08:21:07 am »
I guess you could try the bootcamp solution.

Another solution could be to run parallels or virtualbox (the latter is free) and run Windows inside a virtual image. That saves you from having to reboot all the time.

ludob and I are currently developing fpcup, an installer that goes from (almost) bare metal to a working FPC/Lazarus install by downloading and compiling the sources.
However, the OSX version is not stable yet, so I won't recommend it now to you - you already have enough trouble as it is...

GL,
BigChimp
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

 

TinyPortal © 2005-2018