Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2005-01

WINDRES & WS_CAPTION

5 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Pápai András

Hello!
I used FPC 1.0.4 for a long time. Now I switched to 1.9.6. I have some programs which has a window without standard caption. The resource file defines the windows style az WS_BORDER, but the window (program is compiled with 1.9.6) has a caption!

I opened the exe with Resource Hacker and found the resource dialog style is WS_BORDER | WS_CAPTION.

The package 1.9.6 includes WINDRES 2.9.5, but when I replace it with 2.15.19 (from FPC 1.0.4) and compile the program again, there's no caption! :-)

Does the new WINDRES always add WS_CAPTION to the window style? Why? WINDRES.H is not changed.

Andras

Ezen uzenet es annak barmely csatolt anyaga bizalmas, jogi vedelem alatt all, a nyilvanos kozlestol vedett. Az uzenetet kizarolag a cimzett, illetve az altala meghatalmazottak hasznalhatjak fel. Ha On nem az uzenet cimzettje, ugy kerjuk, hogy telefonon, vagy e-mail-ben ertesitse errol az uzenet kuldojet es torolje az uzenetet, valamint annak osszes csatolt mellekletet a rendszerebol. Ha On nem az uzenet cimzettje, abban az esetben tilos az uzenetet vagy annak barmely csatolt mellekletet lemasolnia, elmentenie, az uzenet tartalmat barkivel kozolnie vagy azzal visszaelnie.

This message and any attachment are confidential and are legally privileged. It is intended solely for the use of the individual or entity to whom it is addressed and others authorised to receive it. If you are not the intended recipient, please telephone or email the sender and delete this message and any attachment from your system. Please note that any dissemination, distribution, copying or use of or reliance upon the information contained in and transmitted with this e-mail by or to anyone other than the recipient designated above by the sender is unauthorised and strictly prohibited.

Reply by email

Pápai András

Hi,
I used FPC 1.0.4 for a long time. Now I switched to 1.9.6. I have some programs which has a window without standard caption. The resource file defines the windows style az WS_BORDER, but the window (program is compiled with 1.9.6) has a caption!

I opened the exe with Resource Hacker and found the resource dialog style is WS_BORDER | WS_CAPTION.

The package 1.9.6 includes WINDRES 2.9.5, but when I replace it with 2.15.19 (from FPC 1.0.4) and compile the program again, there's no caption! :-)

Does the new WINDRES always add WS_CAPTION to the window style? Why? WINDRES.H is not changed.

Andras

Ezen uzenet es annak barmely csatolt anyaga bizalmas, jogi vedelem alatt all, a nyilvanos kozlestol vedett. Az uzenetet kizarolag a cimzett, illetve az altala meghatalmazottak hasznalhatjak fel. Ha On nem az uzenet cimzettje, ugy kerjuk, hogy telefonon, vagy e-mail-ben ertesitse errol az uzenet kuldojet es torolje az uzenetet, valamint annak osszes csatolt mellekletet a rendszerebol. Ha On nem az uzenet cimzettje, abban az esetben tilos az uzenetet vagy annak barmely csatolt mellekletet lemasolnia, elmentenie, az uzenet tartalmat barkivel kozolnie vagy azzal visszaelnie.

This message and any attachment are confidential and are legally privileged. It is intended solely for the use of the individual or entity to whom it is addressed and others authorised to receive it. If you are not the intended recipient, please telephone or email the sender and delete this message and any attachment from your system. Please note that any dissemination, distribution, copying or use of or reliance upon the information contained in and transmitted with this e-mail by or to anyone other than the recipient designated above by the sender is unauthorised and strictly prohibited.

Reply by email

Peter Vreman
to Pápai András: Hello! I used FPC 1.0.4 for a long time. Now I switched to 1.9.6. I have some programs…
Show quoted text 13 lines
Hello! I used FPC 1.0.4 for a long time. Now I switched to 1.9.6. I have some programs which has a window without standard caption. The resource file defines the windows style az WS_BORDER, but the window (program is compiled with 1.9.6) has a caption! I opened the exe with Resource Hacker and found the resource dialog style is WS_BORDER | WS_CAPTION. The package 1.9.6 includes WINDRES 2.9.5, but when I replace it with 2.15.19 (from FPC 1.0.4) and compile the program again, there's no caption! :-)

1.9.6 comes with GNU windres 2.15.91 20040904

Reply by email

Pápai András
Show quoted text 13 lines
> I used FPC 1.0.4 for a long time. Now I switched to 1.9.6. > I have some programs which has a window without standard caption. > The resource file defines the windows style az WS_BORDER, but the > window (program is compiled with 1.9.6) has a caption! > > I opened the exe with Resource Hacker and found the resource > dialog style is WS_BORDER | WS_CAPTION. > > The package 1.9.6 includes WINDRES 2.9.5, but when I replace it > with 2.15.19 (from FPC 1.0.4) and compile the program again, > there's no caption! :-) 1.9.6 comes with GNU windres 2.15.91 20040904

Yes, it' my mistake.
2.15.91 compiles the resource always with caption, and the older windres (2.9.5) does it correctly.
If is't a bug in windres, the release shuold come with the older.

Andras

Ezen uzenet es annak barmely csatolt anyaga bizalmas, jogi vedelem alatt all, a nyilvanos kozlestol vedett. Az uzenetet kizarolag a cimzett, illetve az altala meghatalmazottak hasznalhatjak fel. Ha On nem az uzenet cimzettje, ugy kerjuk, hogy telefonon, vagy e-mail-ben ertesitse errol az uzenet kuldojet es torolje az uzenetet, valamint annak osszes csatolt mellekletet a rendszerebol. Ha On nem az uzenet cimzettje, abban az esetben tilos az uzenetet vagy annak barmely csatolt mellekletet lemasolnia, elmentenie, az uzenet tartalmat barkivel kozolnie vagy azzal visszaelnie.

This message and any attachment are confidential and are legally privileged. It is intended solely for the use of the individual or entity to whom it is addressed and others authorised to receive it. If you are not the intended recipient, please telephone or email the sender and delete this message and any attachment from your system. Please note that any dissemination, distribution, copying or use of or reliance upon the information contained in and transmitted with this e-mail by or to anyone other than the recipient designated above by the sender is unauthorised and strictly prohibited.

Reply by email

Peter Vreman
to Pápai András
Show quoted text 19 lines
> > I used FPC 1.0.4 for a long time. Now I switched to 1.9.6. > > I have some programs which has a window without standard caption. > > The resource file defines the windows style az WS_BORDER, but the > > window (program is compiled with 1.9.6) has a caption! > > > > I opened the exe with Resource Hacker and found the resource > > dialog style is WS_BORDER | WS_CAPTION. > > > > The package 1.9.6 includes WINDRES 2.9.5, but when I replace it > > with 2.15.19 (from FPC 1.0.4) and compile the program again, > > there's no caption! :-) > > 1.9.6 comes with GNU windres 2.15.91 20040904 Yes, it' my mistake. 2.15.91 compiles the resource always with caption, and the older windres (2.9.5) does it correctly. If is't a bug in windres, the release shuold come with the older.

How does not solve the bug? The only way to get this solved is to submit a bug report to GNU binutils. It is not related to FPC itself.

Reply by email