Re: [Lazarus] Setting a cursor from resource

2011-03-26 Thread Zaher Dirkey
On Fri, Mar 25, 2011 at 10:59 AM, patspiper patspi...@gmail.com wrote: On 03/25/2011 09:34 AM, Paul Ishenin wrote: 24.03.2011 17:45, patspiper пишет: Since you mentioned FPC resources, can palette components (IDE) have their resources as FPC resources instead of using .lrs ones? No at

Re: [Lazarus] Setting a cursor from resource

2011-03-26 Thread Mattias Gaertner
On Sat, 26 Mar 2011 21:21:28 +0200 Zaher Dirkey parm...@gmail.com wrote: On Fri, Mar 25, 2011 at 10:59 AM, patspiper patspi...@gmail.com wrote: On 03/25/2011 09:34 AM, Paul Ishenin wrote: 24.03.2011 17:45, patspiper пишет: Since you mentioned FPC resources, can palette components

Re: [Lazarus] Setting a cursor from resource

2011-03-26 Thread patspiper
On 03/26/2011 09:26 PM, Mattias Gaertner wrote: On Sat, 26 Mar 2011 21:21:28 +0200 Zaher Dirkeyparm...@gmail.com wrote: On Fri, Mar 25, 2011 at 10:59 AM, patspiperpatspi...@gmail.com wrote: On 03/25/2011 09:34 AM, Paul Ishenin wrote: 24.03.2011 17:45, patspiper пишет: Since you

Re: [Lazarus] Setting a cursor from resource

2011-03-25 Thread Paul Ishenin
24.03.2011 17:45, patspiper пишет: Since you mentioned FPC resources, can palette components (IDE) have their resources as FPC resources instead of using .lrs ones? No at the moment. Although I don't think it will be too difficult to implement. Feature request added on the bug tracker

Re: [Lazarus] Setting a cursor from resource

2011-03-25 Thread patspiper
On 03/25/2011 09:34 AM, Paul Ishenin wrote: 24.03.2011 17:45, patspiper пишет: Since you mentioned FPC resources, can palette components (IDE) have their resources as FPC resources instead of using .lrs ones? No at the moment. Although I don't think it will be too difficult to implement.

Re: [Lazarus] Setting a cursor from resource

2011-03-24 Thread patspiper
On 03/24/2011 05:38 AM, Paul Ishenin wrote: 23.03.2011 21:01, Paul Ishenin wrote: 23.03.2011 18:54, patspiper wrote: EInvalidGraphic: Stream is not an icon type I will do a test tomorow. Is the code above compatible with both RT_CURSOR and RT_GROUP_CURSOR resources? I tested it with icons

Re: [Lazarus] Setting a cursor from resource

2011-03-24 Thread Paul Ishenin
24.03.2011 13:55, patspiper wrote: updated to r30007 and while rebuilding Lazarus:Compiling resource ../units/i386-linux/lazarus.or /home/me/lazarus/lazarus-svn/ide/lazarus.pp(135,1) Error: Error while compiling resources Lazarus 0.9.31 r29900M FPC 2.4.2 i386-linux-gtk 2 I did not

Re: [Lazarus] Setting a cursor from resource

2011-03-24 Thread zeljko
On Thursday 24 of March 2011 09:04:25 Paul Ishenin wrote: 24.03.2011 13:55, patspiper wrote: updated to r30007 and while rebuilding Lazarus:Compiling resource ../units/i386-linux/lazarus.or /home/me/lazarus/lazarus-svn/ide/lazarus.pp(135,1) Error: Error while compiling resources

Re: [Lazarus] Setting a cursor from resource

2011-03-24 Thread patspiper
On 03/24/2011 10:04 AM, Paul Ishenin wrote: 24.03.2011 13:55, patspiper wrote: updated to r30007 and while rebuilding Lazarus:Compiling resource ../units/i386-linux/lazarus.or /home/me/lazarus/lazarus-svn/ide/lazarus.pp(135,1) Error: Error while compiling resources Lazarus 0.9.31 r29900M FPC

Re: [Lazarus] Setting a cursor from resource

2011-03-24 Thread Paul Ishenin
24.03.2011 15:37, patspiper wrote: How can I build the IDE with all packages from the command line? make xxx? lazbuild lazarus.lpi ? Best regards, Paul Ishenin -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org

Re: [Lazarus] Setting a cursor from resource

2011-03-24 Thread patspiper
On 03/24/2011 10:54 AM, Paul Ishenin wrote: 24.03.2011 15:37, patspiper wrote: How can I build the IDE with all packages from the command line? make xxx? lazbuild lazarus.lpi ? I used make ide OPT=@/path/to/your/config/idemake.cfg to build now: Compiling lazarus.pp Compiling resource

Re: [Lazarus] Setting a cursor from resource

2011-03-24 Thread Paul Ishenin
24.03.2011 15:58, patspiper wrote: Error: Duplicate resource: Type = 24, Name = 1, Lang ID = Somewhere you add another windows manifest. So it seems there is some duplicate resource name that the package adds. The previous Lazarus revisions maybe ignored this resource. How can we get

Re: [Lazarus] Setting a cursor from resource

2011-03-24 Thread patspiper
On 03/24/2011 11:05 AM, Paul Ishenin wrote: 24.03.2011 15:58, patspiper wrote: Error: Duplicate resource: Type = 24, Name = 1, Lang ID = Somewhere you add another windows manifest. Can you pls give details as I have no idea about manifests (aren't they Windows specific?) What should I

Re: [Lazarus] Setting a cursor from resource

2011-03-24 Thread Paul Ishenin
24.03.2011 16:17, patspiper wrote: Can you pls give details as I have no idea about manifests (aren't they Windows specific?) They are windows specific but this is not important because FPC includes all requested resources (no matter how windows specific they are) into the final executable.

Re: [Lazarus] Setting a cursor from resource

2011-03-24 Thread patspiper
On 03/24/2011 11:39 AM, Paul Ishenin wrote: 24.03.2011 16:17, patspiper wrote: Can you pls give details as I have no idea about manifests (aren't they Windows specific?) They are windows specific but this is not important because FPC includes all requested resources (no matter how windows

Re: [Lazarus] Setting a cursor from resource

2011-03-24 Thread zeljko
On Thursday 24 of March 2011 10:58:48 patspiper wrote: Furthermore, Lazarus is now able to load cursors. Are you sure that it was impossible before ? zeljko -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org

Re: [Lazarus] Setting a cursor from resource

2011-03-24 Thread patspiper
On 03/24/2011 12:00 PM, zeljko wrote: On Thursday 24 of March 2011 10:58:48 patspiper wrote: Furthermore, Lazarus is now able to load cursors. Are you sure that it was impossible before ? I used to get an exception due to the idtype being 32 instead of 1 or 2. No idea why. Stephano --

Re: [Lazarus] Setting a cursor from resource

2011-03-24 Thread Paul Ishenin
24.03.2011 17:00, zeljko wrote: On Thursday 24 of March 2011 10:58:48 patspiper wrote: Furthermore, Lazarus is now able to load cursors. Are you sure that it was impossible before ? We are talking about loading them from the FPC resources. From .lrs files they worked fine before. Later I

Re: [Lazarus] Setting a cursor from resource

2011-03-24 Thread patspiper
On 03/24/2011 12:07 PM, Paul Ishenin wrote: 24.03.2011 17:00, zeljko wrote: On Thursday 24 of March 2011 10:58:48 patspiper wrote: Furthermore, Lazarus is now able to load cursors. Are you sure that it was impossible before ? We are talking about loading them from the FPC resources. From

Re: [Lazarus] Setting a cursor from resource

2011-03-24 Thread Paul Ishenin
24.03.2011 17:16, patspiper wrote: Since you mentioned FPC resources, can palette components (IDE) have their resources as FPC resources instead of using .lrs ones? No at the moment. Although I don't think it will be too difficult to implement. Best regards, Paul Ishenin --

Re: [Lazarus] Setting a cursor from resource

2011-03-24 Thread patspiper
On 03/24/2011 12:24 PM, Paul Ishenin wrote: 24.03.2011 17:16, patspiper wrote: Since you mentioned FPC resources, can palette components (IDE) have their resources as FPC resources instead of using .lrs ones? No at the moment. Although I don't think it will be too difficult to implement.

Re: [Lazarus] Setting a cursor from resource

2011-03-24 Thread Zaher Dirkey
On Thu, Mar 24, 2011 at 12:24 PM, Paul Ishenin i...@kmiac.ru wrote: 24.03.2011 17:16, patspiper wrote: Since you mentioned FPC resources, can palette components (IDE) have their resources as FPC resources instead of using .lrs ones? No at the moment. Although I don't think it will be too

Re: [Lazarus] Setting a cursor from resource

2011-03-24 Thread patspiper
On 03/24/2011 12:49 PM, Zaher Dirkey wrote: On Thu, Mar 24, 2011 at 12:24 PM, Paul Ishenin i...@kmiac.ru mailto:i...@kmiac.ru wrote: 24.03.2011 17:16, patspiper wrote: Since you mentioned FPC resources, can palette components (IDE) have their resources as FPC

Re: [Lazarus] Setting a cursor from resource

2011-03-24 Thread Zaher Dirkey
2011/3/24 patspiper patspi...@gmail.com You can add the contents of a lrs file How without using a converter (image - lrs) I like to have this, in unit that register my controls {$r 'myimage.png'} Thanks -- Zaher Dirkey -- ___ Lazarus mailing list

Re: [Lazarus] Setting a cursor from resource

2011-03-24 Thread patspiper
On 03/24/2011 01:05 PM, Zaher Dirkey wrote: 2011/3/24 patspiper patspi...@gmail.com mailto:patspi...@gmail.com You can add the contents of a lrs file How without using a converter (image - lrs) I like to have this, in unit that register my controls {$r 'myimage.png'} $R needs res files

Re: [Lazarus] Setting a cursor from resource

2011-03-24 Thread Zaher Dirkey
2011/3/24 patspiper patspi...@gmail.com On 03/24/2011 01:05 PM, Zaher Dirkey wrote: 2011/3/24 patspiper patspi...@gmail.com You can add the contents of a lrs file How without using a converter (image - lrs) I like to have this, in unit that register my controls {$r 'myimage.png'}

Re: [Lazarus] Setting a cursor from resource

2011-03-23 Thread Paul Ishenin
23.03.2011 17:25, patspiper wrote: How can a control's cursor be set from a resource file? The code below does not work, although the resource itself is found and loaded. Panel1.cursor := LoadCursor(0, 'CURSOR_NAME'); The same way as in delphi: const MyUserCursor = 1;

Re: [Lazarus] Setting a cursor from resource

2011-03-23 Thread patspiper
On 03/23/2011 01:20 PM, Paul Ishenin wrote: 23.03.2011 17:25, patspiper wrote: How can a control's cursor be set from a resource file? The code below does not work, although the resource itself is found and loaded. Panel1.cursor := LoadCursor(0, 'CURSOR_NAME'); The same way as in delphi:

Re: [Lazarus] Setting a cursor from resource

2011-03-23 Thread Paul Ishenin
23.03.2011 18:54, patspiper wrote: EInvalidGraphic: Stream is not an icon type I will do a test tomorow. Is the code above compatible with both RT_CURSOR and RT_GROUP_CURSOR resources? I tested it with icons only. I see from the code that instead of RT_CURSOR for TCursorImage it will use

Re: [Lazarus] Setting a cursor from resource

2011-03-23 Thread Paul Ishenin
23.03.2011 21:01, Paul Ishenin wrote: 23.03.2011 18:54, patspiper wrote: EInvalidGraphic: Stream is not an icon type I will do a test tomorow. Is the code above compatible with both RT_CURSOR and RT_GROUP_CURSOR resources? I tested it with icons only. I see from the code that instead of