Recent

Author Topic: GEFView - my first lazarus project [contains image 80kB]  (Read 7754 times)

Anonymous

  • Guest
GEFView - my first lazarus project [contains image 80kB]
« on: May 28, 2004, 10:05:30 pm »
Hi All,

Many, many thanks for this great work. I have been using / testing it for about 20 hours now and as a Delphi programmer it is very easy to get the hang of it. It is quite stable though there are some flaws (on windows (only tested windows so far) the OnShow event is triggered before it shows or (perhaps) not at all, and there seem to be problems with the focus & autocompletion and speedbuttons with glyphs but in general this is a very good project.

I used to work with Boa Constructor and Python and though I would rather use Python as my main programming language I am much more productive with this great lazarus IDE! So again, thanks a lot. If I get it up and running under Linux hope to make some contributions to Lazarus (like combining F1 with the Delphi help (if availabe) or SHIFT-CTRL-I to indent  :D )

Anyway, here is a screenshot of my application so far
(http://www.xstaze.nl/images/xstaze.jpg)
the app reads a file which contains (a lot of) data that indicates the strenght of the soil (I am afterall a geotechincal engineer :wink: ) and displays it graphically and even makes an estimate of what soiltype is found (depending on filters the user sets)

Keep up the good word Lazarus team!

Vincent Snijders

  • Administrator
  • Hero Member
  • *
  • Posts: 2661
    • My Lazarus wiki user page
GEFView - my first lazarus project [contains image 80kB]
« Reply #1 on: May 28, 2004, 10:35:56 pm »
What is CTRL-SHIFT-I supposed to do?

In what way is it different from CTRL-I (indent)?

Giuseppe Ridinò

  • Full Member
  • ***
  • Posts: 130
GEFView - my first lazarus project [contains image 80kB]
« Reply #2 on: May 28, 2004, 11:20:55 pm »
How did you get the plots?
Could you provide with a simple example?  :)

robvp

  • Newbie
  • Posts: 3
GEFView - my first lazarus project [contains image 80kB]
« Reply #3 on: May 29, 2004, 08:11:20 am »
Quote
What is CTRL-SHIFT-I supposed to do?

In what way is it different from CTRL-I (indent)?


with ctrl-shift-I or U you can (un)indent a block of text, not just one line.

Quote
How did you get the plots?
Could you provide with a simple example?


You need to edit the canvas of an object.

A simple example would be the following

Add a paintbox (component) to a form and call it pbMain

Select the OnPaint event of the paintbox and put the drawing code there

Code: [Select]

procedure TfrmMain.pbMainPaint(Sender: TObject);
begin
  //draw a simple red line
  pbMain.Canvas.Pen.Color := clRed;
  pbMain.Canvas.MoveTo( 10, 10 );
  pbMain.Canvas.LineTo( 40, 40 );
end;


As always you can see a lot of other interesting canvas possibilities (like Rectangle or TextOut) by using the code completion.

Hope this helps!
Rob

ps. you can find the complete drawing code for my current project here. I always split up my code as much as possible so this is just a class that gets a (pointer to a) paintbox to draw on. The actual drawing that might be 'interesting' is done in the Draw* procedures.

Giuseppe Ridinò

  • Full Member
  • ***
  • Posts: 130
GEFView - my first lazarus project [contains image 80kB]
« Reply #4 on: May 29, 2004, 09:07:40 am »
Cool! Such kind of plot component should be a standard one in all IDEs, Lazarus too!  :wink:
If you are an engineer you may know the Matlab enviroment. If so you know the axes object which is very powerfull!
This can be a very good and usefull object to be cloned in Delphi-Lazarus.  :mrgreen:

Anonymous

  • Guest
GEFView - my first lazarus project [contains image 80kB]
« Reply #5 on: May 29, 2004, 02:18:00 pm »
Quote from: "robvp"
Quote
What is CTRL-SHIFT-I supposed to do?

In what way is it different from CTRL-I (indent)?


with ctrl-shift-I or U you can (un)indent a block of text, not just one line.


What do you mean by a block of text. ctrl-i also works on multiple lines, if you select them.

Vincent,

robvp

  • Newbie
  • Posts: 3
GEFView - my first lazarus project [contains image 80kB]
« Reply #6 on: May 29, 2004, 02:53:48 pm »
Quote
What do you mean by a block of text. ctrl-i also works on multiple lines, if you select them


So it does! Thanks, I tried using the delphi way and didn't know that ctrl-I U did the same thing in Lazarus.

Thanks :)

 

TinyPortal © 2005-2018