Re: [Lazarus] switch to fpc 2.4.0

2010-01-09 Thread zeljko
On Friday 08 January 2010 20:10, Graeme Geldenhuys wrote:
 2010/1/8 zeljko zel...@holobit.net:
  I'd be like to be ready ;-)
 
  I'm still stucked to 2.2.5 so r 23379 is your friend :)

 Well, that is why you guys should have helped testing the 2.4.0-rc
 releases, otherwise what is the point of release a release
 candidate.

I didn't tell the reason of my problem (anchored at r23379). Why do you think 
that 2.4.0-rc wasn't tested ?

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] GTK2 behaviors

2010-01-09 Thread Mattias Gaertner
On Sat, 9 Jan 2010 01:07:46 +0100
Kjow antispamm...@gmail.com wrote:

 Hi all,
 
 I need some GTK2 behaviors in my Lazarus application, so I added
 gtk2 unit to uses... but how to link (???) my form with
 PGtkWindow?
 
 e.g. new lazarus application with two buttons on the form:
 _
 
 unit main;
 
 {$mode objfpc}{$H+}
 
 interface
 
 uses
..., ..., gtk2;
 
 ...
 ...
 ...
 
 var
   Form1: TForm1;
   window :  PGtkWindow;
 
 implementation
 
 { TForm1 }
 
 procedure TForm1.FormCreate(Sender: TObject);
 begin
window :=  gtk_window_new (GTK_WINDOW_TOPLEVEL); -- it returns
 PGtkWidget, not PGtkWindow
//I think I need something that link window to Form1, but I don't
 know how/what...
 end;
 
 procedure TForm1.Button1Click(Sender: TObject);
 begin
   gtk_window_fullscreen(window);
 end;
 
 procedure TForm1.Button2Click(Sender: TObject);
 begin
   gtk_window_unfullscreen(window);

If you want to make a form full screen under gtk, use:
uses gtkproc;

SetWindowFullScreen(Form1,true);


Mattias

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] GTK2 behaviors

2010-01-09 Thread Kjow
2010/1/9 Paul Ishenin webpi...@mail.ru:
 All gtk_something_new() return PGtkWidget. Just typecast it:
 PGtkWindow(gtk_window_new())

 Best regards,
 Paul Ishenin.

Thanks, but how can I pass form to gtkwindow?

Kjow

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] GTK2 behaviors

2010-01-09 Thread Kjow
2010/1/9 Mattias Gaertner nc-gaert...@netcologne.de:
 If you want to make a form full screen under gtk, use:
 uses gtkproc;

 SetWindowFullScreen(Form1,true);


 Mattias

Thank you!
It works, but can I use gtk2 calls in lazzarus apps?


Kjow

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] GTK2 behaviors

2010-01-09 Thread Mattias Gaertner
On Sat, 9 Jan 2010 10:24:26 +0100
Kjow antispamm...@gmail.com wrote:

 2010/1/9 Mattias Gaertner nc-gaert...@netcologne.de:
  If you want to make a form full screen under gtk, use:
  uses gtkproc;
 
  SetWindowFullScreen(Form1,true);
 
 
  Mattias
 
 Thank you!
 It works, but can I use gtk2 calls in lazzarus apps?

It depends. They may conflict with the gtk2 interface of the LCL.

Mattias

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] GTK2 behaviors

2010-01-09 Thread Kjow
2010/1/9 Mattias Gaertner nc-gaert...@netcologne.de:
 It depends. They may conflict with the gtk2 interface of the LCL.

 Mattias

e.g. I need to use: gtk_widget_show (menu)

Where menu is a menu like TMainMenu, but I don't know how to create
the menu itself...

I'm sorry if I'm not using technical terms, but I'm starting to
develop with this things...


I need to use gtk calls because I'm trying to follow Maemo references here:

http://www.forum.nokia.com/info/sw.nokia.com/id/a3187f95-ad88-4233-b0ef-a182da3ec1c7/Hildon_2_2_Widget_UI_Specification_v1_0_en.pdf.html
In specific:
http://sw.nokia.com/id/a3187f95-ad88-4233-b0ef-a182da3ec1c7/Hildon_2_2_Widget_UI_Specification_v1_0_en.pdf

Kjow

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Groundwork for Undo in Form Designer

2010-01-09 Thread Juha Manninen
On lauantai, 9. tammikuuta 2010 06:38:01 dmitry boyarintsev wrote:
 On Sat, Jan 9, 2010 at 12:20 AM, Hans-Peter Diettrich
 
 drdiettri...@aol.com wrote:
  At least the error message could mention the actual number of entries, as
  found in source code. This doesn't require any change to the language or
  compiler, only an change to the error message generation.
 
 lol, something like this?! :) sorry, my vds is down can't publish the
 whole patch...

Wow, that would be surely better than the current message:
  ')' expected but ',' found   (or something).
It seems to be reasonably easy to implement.

But still it feels little half-baked. The real solution would be to change 
language syntax. Do you have an idea how much work the compiler (parser and 
such) would need to implement the proposed syntax?
I feel an itch already to study FPC's code to find out.


Juha Manninen

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] GTK2 behaviors

2010-01-09 Thread cobines
2010/1/9 Kjow antispamm...@gmail.com:
 e.g. I need to use: gtk_widget_show (menu)

 Where menu is a menu like TMainMenu, but I don't know how to create
 the menu itself...

If you want to use LCL components in GTK then cast the Handle:

MainMenu := TMainMenu.Create(...);
...
gtk_widget_show(PGtkWidget(MainMenu.Handle))

--
cobines

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Shorcuts

2010-01-09 Thread Mattias Gaertner
On Fri, 08 Jan 2010 13:55:41 -0300
Horacio Jamilis hjami...@pymesoft.com.ar wrote:

 I was trying to assign a shortcut to the menu option - View - 
 Components List (or something like that) that allows to search a 
 component by class name, but it is not available in the options dialog, 
 section shortcuts... or may be it is a translation error, but it does 
 not seems to be there.
 
 Apart of that there is a translation error for spanish in the shortcuts 
 part of the options dialog.
 it says: Ver comandos de menĂº
 when it should say: Comandos del menĂº Ver
 Attached is a small patch for this wrong translation.

Thanks. Applied in 23412.

Mattias

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus