Sign in Join

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

Mailing lists / lazarus / 2003-07

Patch: redraw and menu fix (win32) [2]

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

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

Mattias Gaertner
to Micha Nelissen: -- now with file -- Applied is a patch with 2 fixes: 1) do not dispatch wm_paint message…
Show quoted text 12 lines
-- now with file -- Hi, Applied is a patch with 2 fixes: 1) do not dispatch wm_paint message before handling it. This fixes the empty form, because the form is painted (by calling defwindowproc) and then erased, by calling wincontrol.wmpaint, beginpaint, erasebkgnd, etc. Ie. the order was wrong, we need to get it right. This is the first step. 2) the menu parent of parent patch. If you reference parent of parent menu, you need to use parent's commands, not own.

Thanks. Applied.

Mattias

Reply by email

Micha Nelissen

-- now with file --

Hi,

Applied is a patch with 2 fixes:
1) do not dispatch wm_paint message before handling it. This fixes the empty form, because the form is painted (by calling defwindowproc) and then erased, by calling wincontrol.wmpaint, beginpaint, erasebkgnd, etc. Ie. the order was wrong, we need to get it right. This is the first step.

2) the menu parent of parent patch. If you reference parent of parent menu, you need to use parent's commands, not own.

Regards,

Micha.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: bin00046.bin
Type: application/octet-stream
Size: 1727 bytes
Desc: "various.patch"
Url : http://localhost/pipermail/lazarus/attachments/20030701/b0ca940a/bin00046.bin

Reply by email