[lazarus] Using GTK2

Mattias Gaertner nc-gaertnma at netcologne.de
Wed Apr 2 04:18:31 EST 2003


On 02 Apr 2003 11:21:53 +0200
"A.J. Venter" <ajventer at direqlearn.org> wrote:

> > > I am having some bad problems with the project manager, which tends to
> > > mess up code generation when I use new project, application. Only by
> > > copying a template project into a new directory can I seem to make it
> > > work, but this is obviously a work-around.
> > 
> > Can you give more details?
> Step through example:
> Project - New Project - Select Application - 
> A form is created, along with unit 1.
> Save project - in some directory.
> build project
> The above will work throughout, however, running the result, will not
> open the form. Regardless of wether it is in fact empty or not.
> 
> Looking at the code for project1.lpr you find the problem (at least the
> one I know of)
> Application.initialize;
> Application.Run;
> 
> Is all it contains. In order to actually work however, an
> Application.CreateForm call needs to be added between the lines above.

:(
There was a bug, when the rpm was built. They need update. As soon as
Michael A.H. finds some free time, he will automate the creation of the
rpms. 

 
> This problem did not occur on the first project I did, hence I have been
> copying it, and reusing, for further projects (at this stage all pretty
> simple test stuff)
> > 
> > 
> > > Finally, how do I set up a TMenuBar component, I can drop it, and
> > > change the few settings in the object inspector, but I have no idea
> > > how to configure the menu items or create an action list, seeing as
> > > there is no actionlist manager/editor to be found in Lazarus.
> > 
> > I have added Oliviers menu editor, so basic menu editing is now
> > possible. 
> I take it I will need the latest version to get this ?

Yes.
It's so fresh, that it is probably not yet in the cvs snapshots.


Mattias






More information about the Lazarus mailing list