Sign in Join

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

Mailing lists / lazarus / 2003-08

Forms BorderStyle and Default Font of Canvas (win32)

3 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

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

Karl Brandt
to Karl Brandt: Here's a patch that implements the BorderStyle of forms. I took as reference the Delphi…
Mattias Gaertner wrote 8 lines
>It also make GetStockObject returns DEFAULT_GUI_FONT when asked for >SYSTEM_FONT with a small hack, although i think that the best way is to >change LCL (at Tcanvas and TPromptDialog) to uses DEFAULT_GUI_FONT >instead of SYSTEM_FONT which is more intuitive/logical. What is the difference between them?

SYSTEM_FONT is the font times(I think).
DEFAULT_GUI_FONT is the default font for most of win32 applications, including the delphi ones.

Futhermore SYSTEM_FONT is a ugly one and DEFAULT_GUI_FONT is a nice one :-;

karl

Reply by email

Mattias Gaertner
to Karl Brandt: Here's a patch that implements the BorderStyle of forms. I took as reference the Delphi…
Show quoted text 7 lines
Here's a patch that implements the BorderStyle of forms. I took as reference the Delphi appearance. I didn't get how to do bsNone. It also make GetStockObject returns DEFAULT_GUI_FONT when asked for SYSTEM_FONT with a small hack, although i think that the best way is to change LCL (at Tcanvas and TPromptDialog) to uses DEFAULT_GUI_FONT instead of SYSTEM_FONT which is more intuitive/logical.

What is the difference between them?

This will not affect gtk, since DEFAULT_GUI_FONT redirects to SYSTEM_FONT. BTW:is necessary to call SelectObject twice in TPromptDialog.LayoutDialog?

No.

Mattias, can you change BorderStyle of Object Inspector to bssizetoolwin? (like in Delphi)

Yes. Under gtk it makes no difference.

Mattias

Reply by email

Karl Brandt

Here's a patch that implements the BorderStyle of forms. I took as reference the Delphi appearance. I didn't get how to do bsNone.

It also make GetStockObject returns DEFAULT_GUI_FONT when asked for SYSTEM_FONT with a small hack, although i think that the best way is to change LCL (at Tcanvas and TPromptDialog) to uses DEFAULT_GUI_FONT instead of SYSTEM_FONT which is more intuitive/logical. This will not affect gtk, since DEFAULT_GUI_FONT redirects to SYSTEM_FONT.

BTW:is necessary to call SelectObject twice in TPromptDialog.LayoutDialog?

Mattias, can you change BorderStyle of Object Inspector to bssizetoolwin? (like in Delphi)

karl

-------------- next part --------------
A non-text attachment was scrubbed...
Name: zip00033.zip
Type: application/octet-stream
Size: 1326 bytes
Desc: "border.zip"
Url : http://localhost/pipermail/lazarus/attachments/20030826/3b50ad39/zip00033.obj

Reply by email