Re: [lazarus] LoadCursor replacement

2008-02-10 Thread user1

Thanks! :-)

Paul Ishenin wrote:

[EMAIL PROTECTED] wrote:

I found this in Delphi Win32 code:

  Screen.Cursors[crCrossSmall] := LoadCursor(hInstance, 
'CURSOR_CROSSSMALL');


What is the replacement in Linux?
In LCL you should use this: 
LoadCursorFromLazarusResource('CURSOR_CROSSSMALL') and place cursor in 
..lrs resource.


Best regards,
Paul Ishenin.

_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives




_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


[lazarus] LoadCursor replacement

2008-02-09 Thread user1

I found this in Delphi Win32 code:

  Screen.Cursors[crCrossSmall] := LoadCursor(hInstance, 
'CURSOR_CROSSSMALL');


What is the replacement in Linux?




_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


[lazarus] Lazarus doesn't know properties

2008-02-04 Thread user1

Hi!
Lazarus doesn't know properties (e.g. Borderstyle, Bevelinner, 
Bevelouter) that were known some snapshots before.

I get error messages like that:
Project raised exception class EReadError with message:
Error reading Memo1.BorderStyle: Unknown property: BorderStyle
What is wrong now?

_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


[lazarus] RecreateWnd

2008-02-03 Thread user1

Hi!
I am porting some Delphi component to Lazarus. Now I am looking for a 
replacement of RecreateWnd.


Delphi help says:
procedure RecreateWnd;
Recreate underlying Windows screen object. Call RecreateWnd to recreate 
the control from scratch.
RecreateWnd destroys the underlying Windows screen object. The next time 
the Handle property is
referenced (when the object is repainted, for example), a new Windows 
screen object is created.
Some changes in control properties are not implemented until this 
re-creation occurs.


Is there a substitute in Win32/gtk-LCL?



_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] RecreateWnd

2008-02-03 Thread user1

Thanks! I found also the explaination here:
{--
RecreateWnd
This function was originally member of TWincontrol. From a VCL point of 
view

that made perfectly sense since the VCL knows when a win32 widget has to be
recreated when properties have changed.
The LCL however doesn't know, the widgetset does. To avoid old VCL 
behaviour

and to provide a central function to the widgetset, it is moved here.
MWE.
--}
procedure RecreateWnd(const AWinControl:TWinControl);
...

Christian U. wrote:

Declaration ist RecreateWnd(Object)

RecreateWnd(Self) is the same as RecreateWnd in Delphi.

[EMAIL PROTECTED] schrieb:

Hi!
I am porting some Delphi component to Lazarus. Now I am looking for a 
replacement of RecreateWnd.


Delphi help says:
procedure RecreateWnd;
Recreate underlying Windows screen object. Call RecreateWnd to 
recreate the control from scratch.
RecreateWnd destroys the underlying Windows screen object. The next 
time the Handle property is
referenced (when the object is repainted, for example), a new Windows 
screen object is created.
Some changes in control properties are not implemented until this 
re-creation occurs.


Is there a substitute in Win32/gtk-LCL?



_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives



_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives





_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Why do Delphi users hate Lazarus so much?

2008-01-27 Thread user1


BTW:
the cardinal mul/div overflow bug still exists in Delphi 2007 ;-)

John Stoneham wrote:

Well, I guess the term Delphi users is a little broad, but it seems
that every post that mentions Lazarus on
borland.public.delphi.non-technical gets BLASTED by Delphi fanboys. I
mean, it's really amazing to see the outright hostility towards a free
software package that might very well save Pascal as a language in the
future (since it sure seems that CodeGear and Borland are heading down
the drain pretty fast these days). Some of these guys even start
entire threads with subjects like Quit talking about Lazarus here or
If you think you need cross-platform you don't need Delphi or some
other nonsense. Why do they hate Lazarus so much??

As a (former) Delphi user, I just can't understand this. Delphi 7 was
the last version I purchased -- which was some 6 or 7 years ago -- and
I refused to purchase a newer version because they refused to fix a
very serious bug in D7* (here's a link to one of my complaints about
it on the newsgroup, where I describe it in more detail than I care to
here: http://tinyurl.com/2ws5gw ). Of course, they *claimed* it was
fixed -- in fact, the QS bug listing showed it as closed and fixed
because it was fixed in D8. Well it may have been fixed in D8, but I
didn't buy D8, I bought D7. They really expected us to pay for an
upgrade to get this bug-fix! That was the last straw for me, and I
swore I'd never purchase another Delphi product.

Anyway, the point I'm trying to make is that I see Lazarus as
salvation for the Delphi community, not something to be reviled and
hated. So what if it's not as polished as Delphi! At least the FPC and
Lazarus teams respond to bug reports!! And if it's something I really
need fixed, I can always do it myself because it's open source.

I just hope the Lazarus community isn't discouraged by those negative comments.

-- John

[*] It was actually two bugs. The main one was integer math
optimization. But when they fixed that bug they broke Cardinal
multiplication. So I had a choice, to use optimized integer math and
making sure I didn't use any Cardinals, or not worry about the
Cardinals and stick with un-optimized integer math. In my opinion,
this was completely unacceptable, since I was developing a simulation
package that made heavy use of both Cardinals and integer math, and it
needed to be optimized.

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


  


_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Component

2008-01-26 Thread user1

hi!
I can see the package in the Package Graph window, but it isn't shown in 
the palette or the component window.

But the .pas file contains a

procedure Register;
begin
 RegisterComponents('Samples', [TMyScrollBox]);
end;
 


Mattias Gaertner wrote:

On Fri, 25 Jan 2008 22:22:13 +0100
[EMAIL PROTECTED] wrote:

  

A small demo would be helpful.



See here:

http://wiki.lazarus.freepascal.org/Lazarus_Packages#Quick_Start


Mattias



  

Mattias Gaertner wrote:


On Fri, 25 Jan 2008 21:41:04 +0100
[EMAIL PROTECTED] wrote:

  
  

Is there an installation guide describing component installation
within Lazarus IDE?



Did you see

http://wiki.lazarus.freepascal.org/Install_Packages

?

Mattias

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


  
  


_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


  


_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Component

2008-01-26 Thread user1

Lee Jenkins wrote:

[EMAIL PROTECTED] wrote:

hi!
I can see the package in the Package Graph window, but it isn't shown 
in the palette or the component window.

But the .pas file contains a

procedure Register;
begin
 RegisterComponents('Samples', [TMyScrollBox]);
end;



Hi, did you recompile the IDE after selecting the package?  (Tools  
Build Lazarus)  The IDE needs to be built again after installing 
components.


Sure. Several times. the package is marked as installed in the 
Package-Graph.


_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Component

2008-01-26 Thread user1

where can I find this checkbox?

Michael Van Canneyt wrote:

On Sat, 26 Jan 2008, [EMAIL PROTECTED] wrote:

  

hi!
I can see the package in the Package Graph window, but it isn't shown in the
palette or the component window.
But the .pas file contains a

procedure Register;
begin
 RegisterComponents('Samples', [TMyScrollBox]);
end;



Did you mark this unit as 'contains register procedure' ?

Michael.

  
 


Mattias Gaertner wrote:


On Fri, 25 Jan 2008 22:22:13 +0100
[EMAIL PROTECTED] wrote:

  
  

A small demo would be helpful.



See here:

http://wiki.lazarus.freepascal.org/Lazarus_Packages#Quick_Start


Mattias



  
  

Mattias Gaertner wrote:



On Fri, 25 Jan 2008 21:41:04 +0100
[EMAIL PROTECTED] wrote:

  
  
  

Is there an installation guide describing component installation
within Lazarus IDE?




Did you see

http://wiki.lazarus.freepascal.org/Install_Packages

?

Mattias

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


  
  
  

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


  
  

_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives




_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


  


_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Component

2008-01-26 Thread user1
That's it! http://wiki.lazarus.freepascal.org/Lazarus_Packages should be 
enhanced...


Michael Van Canneyt wrote:

On Sat, 26 Jan 2008, [EMAIL PROTECTED] wrote:

  

where can I find this checkbox?



In the package dialog. 
- Open the packake file.

- Select the file that contains the register statement.
- below in 'File properties', check 'Register unit'
- Compile and install.

Michael.

  

Michael Van Canneyt wrote:


On Sat, 26 Jan 2008, [EMAIL PROTECTED] wrote:

  
  

hi!
I can see the package in the Package Graph window, but it isn't shown in
the
palette or the component window.
But the .pas file contains a

procedure Register;
begin
RegisterComponents('Samples', [TMyScrollBox]);
end;



Did you mark this unit as 'contains register procedure' ?

Michael.

  
  
 


Mattias Gaertner wrote:



On Fri, 25 Jan 2008 22:22:13 +0100
[EMAIL PROTECTED] wrote:

  
  
  

A small demo would be helpful.




See here:

http://wiki.lazarus.freepascal.org/Lazarus_Packages#Quick_Start


Mattias



  
  
  

Mattias Gaertner wrote:




On Fri, 25 Jan 2008 21:41:04 +0100
[EMAIL PROTECTED] wrote:

  
  
  
  

Is there an installation guide describing component installation
within Lazarus IDE?





Did you see

http://wiki.lazarus.freepascal.org/Install_Packages

?

Mattias

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


  
  
  
  

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


  
  
  

_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives




_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


  
  

_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives




_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


  


_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


[lazarus] Component

2008-01-25 Thread user1
Is there an installation guide describing component installation within 
Lazarus IDE?


_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Component

2008-01-25 Thread user1

I did this, but can't see an icon in the component palette.

Mattias Gaertner wrote:

On Fri, 25 Jan 2008 21:41:04 +0100
[EMAIL PROTECTED] wrote:

  

Is there an installation guide describing component installation
within Lazarus IDE?



Did you see

http://wiki.lazarus.freepascal.org/Install_Packages

?

Mattias

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


  




Re: [lazarus] Component

2008-01-25 Thread user1

A small demo would be helpful.


Mattias Gaertner wrote:

On Fri, 25 Jan 2008 21:41:04 +0100
[EMAIL PROTECTED] wrote:

  

Is there an installation guide describing component installation
within Lazarus IDE?



Did you see

http://wiki.lazarus.freepascal.org/Install_Packages

?

Mattias

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives