Damien Gerard | 1 Jun 01:54

Re: Know if a form is active


Le May 31, 2008 à 7:57 PM, Felipe Monteiro de Carvalho a écrit :

> Check TForm.Focused and TForm.Active. One of the two should do it, not
> sure which one. Test both.

Thanks !

--
Damien Gerard
milipili <at> shikami.org

"Intelligence is 10 million rules."
    -- Douglas Lenat

_______________________________________________
Lazarus mailing list
Lazarus <at> lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus

Gravatar

Re: Bitmap animation component

> Hi,
>
> I created a bitmap animation component for fpGUI. It works like the
> old Netscape spinning logo. One image with all the frames layout in in
> a horizontal position.
>
> It doesn't have much use, other that to take up some space on a form
> and entertain your users.  :-)  Does something like this exist for
> Lazarus?  If not, I'll port the component with an example application.

I would have some use for it if the ability to specify how many times the 
animation should be played (none, always, 1, 2, etc), be able to specify the 
speed and direction (actually having a ping-pong style animation sequence 
would be nice, like 0-1-2-3-4-3-2-1-repeat, especially for one-time 
animations) and support transparency.

In fact i want to use it as a little animating "warning" icon at the right 
side of some input boxes when the user enters invalid stuff :-).

Kostas

_______________________________________________
Lazarus mailing list
Lazarus <at> lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus

ik | 1 Jun 16:40
Picon
Gravatar

Mandriva 2008.1 amd64 and Lazarus gtk2

Hello,

I moved this weekend to Mandriva 2008.1 (spring edition), 64 bit.

After I was able to properly compile Lazarus (library dependencies), I
have the following error messages
(The GTK Warning and critical repeates a lot) :

(lazarus:5511): Gdk-WARNING **: The gdk_draw_*_image require the
drawable argument to
have a specified colormap. All windows have a colormap,
however, pixmaps only have colormap by default if they
were created with a non-NULL window argument. Otherwise
a colormap must be set on them with gdk_drawable_set_colormap

(lazarus:5511): GLib-GObject-CRITICAL **: g_object_ref: assertion
`G_IS_OBJECT (object)' failed
TGtkWidgetSet.RawImage_DescriptionFromDrawable: visual failed
WARNING: TGtkWidgetSet.RawImage_FromDrawable:
RawImage_DescriptionFromDrawable failed
WARNING: [TGtkWidgetSet.RawImage_FromBitmap] unable to
GetRawImageFromGdkWindow Image
WARNING: TLazIntfImage.ChooseRawBitsProc Unsupported BitsPerPixel=0

(lazarus:5511): Gdk-WARNING **: The gdk_draw_*_image require the
drawable argument to
have a specified colormap. All windows have a colormap,
however, pixmaps only have colormap by default if they
were created with a non-NULL window argument. Otherwise
a colormap must be set on them with gdk_drawable_set_colormap
(Continue reading)

A.J. Venter | 1 Jun 11:16
Picon
Gravatar

Re: Bitmap animation component

On Sun, Jun 1, 2008 at 2:59 AM, Kostas Michalopoulos
<badsector <at> slashstone.com> wrote:
>> Hi,
>>
>> I created a bitmap animation component for fpGUI. It works like the
>> old Netscape spinning logo. One image with all the frames layout in in
>> a horizontal position.
>>
>> It doesn't have much use, other that to take up some space on a form
>> and entertain your users.  :-)  Does something like this exist for
>> Lazarus?  If not, I'll port the component with an example application.
>
> I would have some use for it if the ability to specify how many times the
> animation should be played (none, always, 1, 2, etc), be able to specify the
> speed and direction (actually having a ping-pong style animation sequence
> would be nice, like 0-1-2-3-4-3-2-1-repeat, especially for one-time
> animations) and support transparency.

The closest component I know of is gamepack, which is overkill for
just animating a bitmap - and also doesn't do the
things Kostas mentioned - since games rarely work like that.

--

-- 
A.J. Venter
Chief Executive Officer
Tel.: +27 21 554 5059
Fax: +27 11 252 9197
Outkast Solutions IT
www.outkastsolutions.co.za
A division of Global Pact Trading Pty Ltd.
(Continue reading)

ik | 1 Jun 22:35
Picon
Gravatar

Lazarus on main Mandriva repository

Hello all,

On #mandvia-cooker we discussed about adding Lazarus to the official
repository of Mandriva, and it seems that there are work going to
place it on the cooker repositories.

Just wanted to update.

Ido
--

-- 
http://ik.homelinux.org/
_______________________________________________
Lazarus mailing list
Lazarus <at> lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus

Picon
Gravatar

Problems building Lazarus on Fedora 9

Hi all,

When I try to build a Lazarus rpm for fedora 9 (x86_64) I get the result
below. Could it be that there really is an incompatible glibc?

ma
in.pp(1110,35) Warning: Constructing a class "TPkgManager" with abstract
methods
Linking ../lazarus
/usr/bin/ld
:

s
k
i
p
p
i
n
g

i
n
c
o
m
p
a
t
i
(Continue reading)

Graeme Geldenhuys | 2 Jun 09:49
Picon
Gravatar

Re: Bitmap animation component

On 01/06/2008, Kostas Michalopoulos <badsector <at> slashstone.com> wrote:
>
> I would have some use for it if the ability to specify how many times the
>  animation should be played (none, always, 1, 2, etc), be able to specify the
>  speed and direction (actually having a ping-pong style animation sequence
>  would be nice, like 0-1-2-3-4-3-2-1-repeat, especially for one-time
>  animations) and support transparency.

I like those ideas!  I'll extend the component and create a LCL one as well.

Regards,
  - Graeme -

_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/
_______________________________________________
Lazarus mailing list
Lazarus <at> lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus

Mattias Gaertner | 3 Jun 21:31
Picon
Favicon

Re: Problems building Lazarus on Fedora 9

On Sun, 01 Jun 2008 23:56:03 +0200
Joost van der Sluis <joost <at> cnoc.nl> wrote:

> Hi all,
> 
> When I try to build a Lazarus rpm for fedora 9 (x86_64) I get the
> result below. Could it be that there really is an incompatible glibc?
> 
> ma
> in.pp(1110,35) Warning: Constructing a class "TPkgManager" with
> abstract methods

Which fpc version is this?
What abstract method? (Place cursor on class declaration, Source
editor / Popup menu / Refactoring / Show abstract methods)

Mattias

> Linking ../lazarus
> /usr/bin/ld
> :
>  
> s
> k
> i
> p
> p
> i
> n
> g
(Continue reading)

Picon

Re: Printer margins

Ok, thanks, that works nicely, but you have to guess the paper being used.

If we are using a TPrintDialog then the user should be able to select
the target paper and margins in the TPrintDialog.

So maybe some way to get the paper name is missing from TPrintDialog,
or even better, get all margins form there.

Here is my current code:

procedure TfrmPrint.btnPrintClick(Sender: TObject);
var
  PaperWorkRect: TRect;
  PrintDlg: TPrintDialog;
begin
  PrintDlg := TPrintDialog.Create(Self);
  try
    if PrintDlg.Execute then
    begin
      Printer.BeginDoc;
      Printer.papersize.papername := 'A4';
      PaperWorkRect := Printer.PaperSize.PaperRect.WorkRect;
      Printer.Canvas.TextOut(PaperWorkRect.Left, PaperWorkRect.Top, 'TextOut');
      Printer.EndDoc;
    end;
  finally
    PrintDlg.Free;
  end;
end;

(Continue reading)

Picon

Re: Mandriva 2008.1 amd64 and Lazarus gtk2

I don't know how to answer your question, but afaik you can use 32-bit
software in 64-bits systems, so you could try installing the 32-bits
lazarus.

--

-- 
Felipe Monteiro de Carvalho
_______________________________________________
Lazarus mailing list
Lazarus <at> lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Gmane