Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 1999-04

Lazarus CVS update

16 messages · 6 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Cliff Baeseman
to Shane Miller: This seems to work pretty nice. However it still doesn't allow for any mechanism of…

Shane,

I did not get the web site loaded last night but am sure I can complete the first pass tonight and
upload it early this evening. It looks great so far, least my wife thinks so. I was up till 2am working on it but just could not get her up in time. I have many screen shots of the color editor and our vcl components in use.

Cliff

Earlier message 74 lines
-----Original Message----- From: Shane Miller Sent: Thursday, April 29, 1999 9:26 AM To: Subject: Re: [lazarus] Lazarus CVS update This seems to work pretty nice. However it still doesn't allow for any mechanism of resizing the child components along with the parent. The problem is this: If the memo resizes, how do you automatically move the scrollbars along side it and below it? I thought a table component would do the trick, but it doesn't. A fixed box simply stops them from resizing with the parent, so it DOES allow me to then notify them of the parentrs size and resize them. I simply have to find a method for doing that. BTW, in your previous email you stated that you were going to be working alone on an IDE similiar to what we are developing (if I understood correctly). It seems that would be a waste of valuable resources as we seem to be doing something quite similiar. Perhaps joining our team if our goals are compatable would be the thing to do. Shane >>> Nicolas Aragon 04/29 1:27 AM >>> Hello, >Should we remove the tables from our forms or is this the only way to throw a button on a form and be able to move it around freely? What is the NEED for the table? I don't remember why we required it. I suppose you walked the same road as me. There's a solution, though. The only problem is that this widget is undocummented. At least in my gtk manual copy. Anyway it's not very difficult to figure out what it does from the interface (gtkfixed.pp). I do it this way: procedure TGtkControl.InsertChildControl( Child: TGtkControl ); begin if Box = nil then begin Box := gtk_fixed_new(); gtk_widget_show( Box ); gtk_container_add( pGtkContainer( PWidget ), Box ); end; gtk_fixed_put( pGtkFixed( Box ), Child.PWidget, Child.FLeft, Child.FTop ); end; Obviously my TGtkControl has: PWidget: PGtkWidget; Box: PGtkWidget; FTop: Integer; FLeft: Integer; Hope it helps :) A question: is CVS public? I suppose I have a pretty old copy of your sources. greetings Nico _________________________________________________________________ To unsubscribe: mail with "unsubscribe" as the Subject _________________________________________________________________ To unsubscribe: mail with "unsubscribe" as the Subject

Reply by email

Shane Miller

Currently, CVS contains the source that is pretty much up to date. You can now open any .pp file anywhere on the drive and it'll color it. I added TScrollbar in hopes of adding scrollbars to my TMemo class. Though I can get them to appear, I haven't thought of a way to move them when the form or memo is resized so they end up in the middle of the memo when you resize the form.

Currently all you can do with the IDE is select FILE - NEW and it'll open (not really 'new') a .pp file for you. You can examine the coloring I have set up, then close the program. You can only load one .pp file at a time right now.

My thoughts on the scroll bars:
The method for adding scrollbars seems to be the following : Create a gtk table, size 2,2. Add a memo that goes from 0,0 to 1,1. Create a scroll bar (2 of them) and add them to the table at 0,1,1,1 and 1,0,1,1. Then throw that table on a form. The problem is that our forms , by default , have tables attached to them and it seems like you can't throw a table onto another table on the form.

Should we remove the tables from our forms or is this the only way to throw a button on a form and be able to move it around freely? What is the NEED for the table? I don't remember why we required it.

I will be sending lazarus.zip to cliff late tonight so hopefully the web page will be updated with it. Anyone that want's the code sent to them, let me know.

Needs: TListview and TTreeView created from gtkList and gtktree. Along with that comes gtkListItem and gtkTreeItem. If know one claims possession of these two controls then I will do them thursday or friday.

Shane

Reply by email

Michael A. Hess

I believe the following lines need to be added to the Makefile to get it to work correctly. At least I had to add them. :-)

I am about as poor with Makefiles as you can get so if I am in the wrong....well sorry. :-)

ifdef XLIBDIR
override NEEDLIBDIR := $(NEEDLIBDIR) $(XLIBDIR)
endif
ifdef GTKLIBDIR
override NEEDLIBDIR := $(NEEDLIBDIR) $(GTKLIBDIR)
endif

Spam, spam, spam, spam, spam, bake beans and spam? Michael A. Hess Miracle Concepts, Inc. http://www.miraclec.com

Reply by email

Shane Miller

This seems to work pretty nice. However it still doesn't allow for any mechanism of resizing the child components along with the parent. The problem is this: If the memo resizes, how do you automatically move the scrollbars along side it and below it? I thought a table component would do the trick, but it doesn't. A fixed box simply stops them from resizing with the parent, so it DOES allow me to then notify them of the parentrs size and resize them. I simply have to find a method for doing that.

BTW, in your previous email you stated that you were going to be working alone on an IDE similiar to what we are developing (if I understood correctly). It seems that would be a waste of valuable resources as we seem to be doing something quite similiar. Perhaps joining our team if our goals are compatable would be the thing to do.

Shane

>> Nicolas Aragon 04/29 1:27 AM >>>

Hello,

Should we remove the tables from our forms or is this the only way to throw a button on a form and be able to move it around freely? What is the NEED for the table? I don't remember why we required it.

I suppose you walked the same road as me.
There's a solution, though. The only problem is that this widget is undocummented. At least in my gtk manual copy. Anyway it's not very difficult to figure out what it does from the interface (gtkfixed.pp).

I do it this way:

procedure TGtkControl.InsertChildControl( Child: TGtkControl );
begin
  if Box = nil then begin
    Box := gtk_fixed_new();
    gtk_widget_show( Box );
    gtk_container_add( pGtkContainer( PWidget ), Box );
  end;
  gtk_fixed_put( pGtkFixed( Box ),
                 Child.PWidget,
                 Child.FLeft,
                 Child.FTop );
end;

Obviously my TGtkControl has:

    PWidget: PGtkWidget;
    Box: PGtkWidget;
    FTop: Integer;
    FLeft: Integer;

Hope it helps :)

A question: is CVS public? I suppose I have a pretty old copy of your sources.

greetings

Nico

_________________________________________________________________ To unsubscribe: mail with
"unsubscribe" as the Subject

Reply by email

Cliff Baeseman
to Nicolas Aragon: I suppose you walked the same road as me. There's a solution, though. The only problem is…

Very interesting we will take a good look at this thanx for the tip!

Shane I also noticed last night that you are passing AOwner to the scrollbar which would be the form vs the
memo control. I believe this is why you are having trouble with the add control method.

Cliff

Earlier message 52 lines
-----Original Message----- From: Nicolas Aragon Sent: Wednesday, April 28, 1999 7:42 PM To: Subject: Re: [lazarus] Lazarus CVS update Hello, >Should we remove the tables from our forms or is this the only way to throw a button on a form and be able to move it around freely? What is the NEED for the table? I don't remember why we required it. I suppose you walked the same road as me. There's a solution, though. The only problem is that this widget is undocummented. At least in my gtk manual copy. Anyway it's not very difficult to figure out what it does from the interface (gtkfixed.pp). I do it this way: procedure TGtkControl.InsertChildControl( Child: TGtkControl ); begin if Box = nil then begin Box := gtk_fixed_new(); gtk_widget_show( Box ); gtk_container_add( pGtkContainer( PWidget ), Box ); end; gtk_fixed_put( pGtkFixed( Box ), Child.PWidget, Child.FLeft, Child.FTop ); end; Obviously my TGtkControl has: PWidget: PGtkWidget; Box: PGtkWidget; FTop: Integer; FLeft: Integer; Hope it helps :) A question: is CVS public? I suppose I have a pretty old copy of your sources. greetings Nico _________________________________________________________________ To unsubscribe: mail with "unsubscribe" as the Subject

Reply by email

Nicolas Aragon
to Cliff Baeseman: Ok I see where you are comming from how about this then.. Is there a panel widget? You…

Hello,

Ok I see where you are comming from how about this then.. Is there a panel widget?

Boxes seems to do this works even better than Delphi TPanel.

You could build this component and then place the memo on it and the scrollbars on each side. The panel would be thee parent of the memo and the scrollbars. Just kicking around a few ideas.

Just another: make a difference between gtk logic and your own logic.

In gtk sense, yes, the memo is a child of the panel, but from your point of view it's a field of the memo, not visible from outside.

In the memo's constructor you create the panel, place the memo and the scrollbar inside the panel, and the panel in the supposed memo's parent.

If you use a code like the one I posted, if fact you have, for example this gtk parentship relation:

window->window.fixedbox->memo.panel->memo
->memo.scrollbar

But in logical structure you just have the window and the memo, being the fixed box a field of the window and the panel and the scrollbar, fields of the memo.

I'm now on NT and tonight it's my turn to sleep so I'm afraid I won't be able to test this idea today O:)

greetings

Nico

Reply by email

Nicolas Aragon
to Shane Miller: Currently, CVS contains the source that is pretty much up to date. You can now open any…

Hello,

Should we remove the tables from our forms or is this the only way to throw a button on a form and be able to move it around freely? What is the NEED for the table? I don't remember why we required it.

I suppose you walked the same road as me.
There's a solution, though. The only problem is that this widget is undocummented. At least in my gtk manual copy. Anyway it's not very difficult to figure out what it does from the interface (gtkfixed.pp).

I do it this way:

procedure TGtkControl.InsertChildControl( Child: TGtkControl );
begin
  if Box = nil then begin
    Box := gtk_fixed_new();
    gtk_widget_show( Box );
    gtk_container_add( pGtkContainer( PWidget ), Box );
  end;
  gtk_fixed_put( pGtkFixed( Box ),
                 Child.PWidget,
                 Child.FLeft,
                 Child.FTop );
end;

Obviously my TGtkControl has:

    PWidget: PGtkWidget;
    Box: PGtkWidget;
    FTop: Integer;
    FLeft: Integer;

Hope it helps :)

A question: is CVS public? I suppose I have a pretty old copy of your sources.

greetings

Nico

Reply by email

Shane Miller

I can't add the scrollbars to the Memo because 1: It's not a container, and 2: The scrollbars would cover up some of the text. They are meant to be placed along side the Memo

Shane

>> Cliff Baeseman 04/29 9:35 AM >>>

Very interesting we will take a good look at this thanx for the tip!

Shane I also noticed last night that you are passing AOwner to the scrollbar which would be the form vs the
memo control. I believe this is why you are having trouble with the add control method.

Cliff

Earlier message 56 lines
-----Original Message----- From: Nicolas Aragon Sent: Wednesday, April 28, 1999 7:42 PM To: Subject: Re: [lazarus] Lazarus CVS update Hello, >Should we remove the tables from our forms or is this the only way to throw a button on a form and be able to move it around freely? What is the NEED for the table? I don't remember why we required it. I suppose you walked the same road as me. There's a solution, though. The only problem is that this widget is undocummented. At least in my gtk manual copy. Anyway it's not very difficult to figure out what it does from the interface (gtkfixed.pp). I do it this way: procedure TGtkControl.InsertChildControl( Child: TGtkControl ); begin if Box = nil then begin Box := gtk_fixed_new(); gtk_widget_show( Box ); gtk_container_add( pGtkContainer( PWidget ), Box ); end; gtk_fixed_put( pGtkFixed( Box ), Child.PWidget, Child.FLeft, Child.FTop ); end; Obviously my TGtkControl has: PWidget: PGtkWidget; Box: PGtkWidget; FTop: Integer; FLeft: Integer; Hope it helps :) A question: is CVS public? I suppose I have a pretty old copy of your sources. greetings Nico _________________________________________________________________ To unsubscribe: mail with "unsubscribe" as the Subject _________________________________________________________________ To unsubscribe: mail with "unsubscribe" as the Subject

Reply by email

Cliff Baeseman
to Shane Miller: I can't add the scrollbars to the Memo because 1: It's not a container, and 2: The…

Ok I see where you are comming from how about this then.. Is there a panel widget? You could build this component and then place the memo on it and the scrollbars on each side. The panel would be thee parent of the memo and the scrollbars.

Just kicking around a few ideas.

Cliff

Earlier message 84 lines
-----Original Message----- From: Shane Miller Sent: Thursday, April 29, 1999 9:46 AM To: Subject: Re: RE: [lazarus] Lazarus CVS update I can't add the scrollbars to the Memo because 1: It's not a container, and 2: The scrollbars would cover up some of the text. They are meant to be placed along side the Memo Shane >>> Cliff Baeseman 04/29 9:35 AM >>> Very interesting we will take a good look at this thanx for the tip! Shane I also noticed last night that you are passing AOwner to the scrollbar which would be the form vs the memo control. I believe this is why you are having trouble with the add control method. Cliff -----Original Message----- From: Nicolas Aragon Sent: Wednesday, April 28, 1999 7:42 PM To: Subject: Re: [lazarus] Lazarus CVS update Hello, >Should we remove the tables from our forms or is this the only way to throw a button on a form and be able to move it around freely? What is the NEED for the table? I don't remember why we required it. I suppose you walked the same road as me. There's a solution, though. The only problem is that this widget is undocummented. At least in my gtk manual copy. Anyway it's not very difficult to figure out what it does from the interface (gtkfixed.pp). I do it this way: procedure TGtkControl.InsertChildControl( Child: TGtkControl ); begin if Box = nil then begin Box := gtk_fixed_new(); gtk_widget_show( Box ); gtk_container_add( pGtkContainer( PWidget ), Box ); end; gtk_fixed_put( pGtkFixed( Box ), Child.PWidget, Child.FLeft, Child.FTop ); end; Obviously my TGtkControl has: PWidget: PGtkWidget; Box: PGtkWidget; FTop: Integer; FLeft: Integer; Hope it helps :) A question: is CVS public? I suppose I have a pretty old copy of your sources. greetings Nico _________________________________________________________________ To unsubscribe: mail with "unsubscribe" as the Subject _________________________________________________________________ To unsubscribe: mail with "unsubscribe" as the Subject _________________________________________________________________ To unsubscribe: mail with "unsubscribe" as the Subject

Reply by email

Cliff Baeseman
to Peter Vreman: I've inserted a makefile in the lazarus/. It will use the makefile.fpc which is also…

Thanx Peter good idea this will make builds go a little easier.

Cliff

Earlier message 17 lines
-----Original Message----- From: Peter Vreman Sent: Thursday, April 29, 1999 10:36 AM To: Subject: [lazarus] Makefile I've inserted a makefile in the lazarus/. It will use the makefile.fpc which is also required by all other FPC source packages. Peter _________________________________________________________________ To unsubscribe: mail with "unsubscribe" as the Subject

Reply by email

Nicolas Aragon
to Shane Miller: This seems to work pretty nice. However it still doesn't allow for any mechanism of…

Hello,

of valuable resources as we seem to be doing something quite similiar. Perhaps joining our team if our goals are compatable would be the thing to do.

Let's see what we could agree and what not. I want to advance a little more in my code (maybe a couple of weeks :-m) and take a closer look to yours.
Then we'll have more arguments to decide.

Anyway, we can share gtk experiences and tricks and, since I have no hurry, I can devote some weeks to Lazarus even if we disagree and decide not to make the one and only lib, because of course I'm interested in having an IDE ASAP.

greetings

Nico

Reply by email

Cliff Baeseman
to Shane Miller: Currently, CVS contains the source that is pretty much up to date. You can now open any…

Can you just do a add control for the scrollbar. This should place a table over the TMemo component and attach the scrollbar to the left of the memo. Use something like left = parent the memo .width - scrollbar.width top should equal 0 and width whatever and height whatever.

Actually any time add control is called a table is placed on it no mater what the widget is this allows you
to place a widget using the properties on another widget. The only restriction is that the widget that the
table is placed on needs to bea classified as a container. I believe a memo is classified as a container.

Right now the writing of tstring.savetofile not working is a major halt to the deal. I will work on user interface stuff until this is resolved.

I will try it tonight!

Cliff

Earlier message 46 lines
-----Original Message----- From: Shane Miller Sent: Wednesday, April 28, 1999 1:33 PM To: Subject: [lazarus] Lazarus CVS update Currently, CVS contains the source that is pretty much up to date. You can now open any .pp file anywhere on the drive and it'll color it. I added TScrollbar in hopes of adding scrollbars to my TMemo class. Though I can get them to appear, I haven't thought of a way to move them when the form or memo is resized so they end up in the middle of the memo when you resize the form. Currently all you can do with the IDE is select FILE - NEW and it'll open (not really 'new') a .pp file for you. You can examine the coloring I have set up, then close the program. You can only load one .pp file at a time right now. My thoughts on the scroll bars: The method for adding scrollbars seems to be the following : Create a gtk table, size 2,2. Add a memo that goes from 0,0 to 1,1. Create a scroll bar (2 of them) and add them to the table at 0,1,1,1 and 1,0,1,1. Then throw that table on a form. The problem is that our forms , by default , have tables attached to them and it seems like you can't throw a table onto another table on the form. Should we remove the tables from our forms or is this the only way to throw a button on a form and be able to move it around freely? What is the NEED for the table? I don't remember why we required it. I will be sending lazarus.zip to cliff late tonight so hopefully the web page will be updated with it. Anyone that want's the code sent to them, let me know. Needs: TListview and TTreeView created from gtkList and gtktree. Along with that comes gtkListItem and gtkTreeItem. If know one claims possession of these two controls then I will do them thursday or friday. Shane _________________________________________________________________ To unsubscribe: mail with "unsubscribe" as the Subject

Reply by email

Michael Van Canneyt
to Nicolas Aragon: I suppose you walked the same road as me. There's a solution, though. The only problem is…
Nicolas Aragon wrote 35 lines
Hello, >Should we remove the tables from our forms or is this the only way to throw a button on a form and be able to move it around freely? What is the NEED for the table? I don't remember why we required it. I suppose you walked the same road as me. There's a solution, though. The only problem is that this widget is undocummented. At least in my gtk manual copy. Anyway it's not very difficult to figure out what it does from the interface (gtkfixed.pp). I do it this way: procedure TGtkControl.InsertChildControl( Child: TGtkControl ); begin if Box = nil then begin Box := gtk_fixed_new(); gtk_widget_show( Box ); gtk_container_add( pGtkContainer( PWidget ), Box ); end; gtk_fixed_put( pGtkFixed( Box ), Child.PWidget, Child.FLeft, Child.FTop ); end; Obviously my TGtkControl has: PWidget: PGtkWidget; Box: PGtkWidget; FTop: Integer; FLeft: Integer; Hope it helps :) A question: is CVS public? I suppose I have a pretty old copy of your sources.

It is TFLily's CVS, so you can access it. Just do a cvs co lazarus

Michael.

Reply by email

Cliff Baeseman
to Shane Miller: This seems to work pretty nice. However it still doesn't allow for any mechanism of…

-----Original Message-----

Earlier message 73 lines
From: Shane Miller Sent: Thursday, April 29, 1999 9:26 AM To: Subject: Re: [lazarus] Lazarus CVS update This seems to work pretty nice. However it still doesn't allow for any mechanism of resizing the child components along with the parent. The problem is this: If the memo resizes, how do you automatically move the scrollbars along side it and below it? I thought a table component would do the trick, but it doesn't. A fixed box simply stops them from resizing with the parent, so it DOES allow me to then notify them of the parentrs size and resize them. I simply have to find a method for doing that. BTW, in your previous email you stated that you were going to be working alone on an IDE similiar to what we are developing (if I understood correctly). It seems that would be a waste of valuable resources as we seem to be doing something quite similiar. Perhaps joining our team if our goals are compatable would be the thing to do. Shane >>> Nicolas Aragon 04/29 1:27 AM >>> Hello, >Should we remove the tables from our forms or is this the only way to throw a button on a form and be able to move it around freely? What is the NEED for the table? I don't remember why we required it. I suppose you walked the same road as me. There's a solution, though. The only problem is that this widget is undocummented. At least in my gtk manual copy. Anyway it's not very difficult to figure out what it does from the interface (gtkfixed.pp). I do it this way: procedure TGtkControl.InsertChildControl( Child: TGtkControl ); begin if Box = nil then begin Box := gtk_fixed_new(); gtk_widget_show( Box ); gtk_container_add( pGtkContainer( PWidget ), Box ); end; gtk_fixed_put( pGtkFixed( Box ), Child.PWidget, Child.FLeft, Child.FTop ); end; Obviously my TGtkControl has: PWidget: PGtkWidget; Box: PGtkWidget; FTop: Integer; FLeft: Integer; Hope it helps :) A question: is CVS public? I suppose I have a pretty old copy of your sources. greetings Nico _________________________________________________________________ To unsubscribe: mail with "unsubscribe" as the Subject _________________________________________________________________ To unsubscribe: mail with "unsubscribe" as the Subject

Reply by email