Recent

Author Topic: [BUG # 307] ReCreateWnd fails?  (Read 6120 times)

Giuseppe Ridinò

  • Full Member
  • ***
  • Posts: 130
[BUG # 307] ReCreateWnd fails?
« on: July 30, 2004, 12:55:03 pm »
I solved the problem described in the BUG 307, which was caused (I guess) by the ReCreateWnd method.
I now use Paint and every thing is fine.

Vincent Snijders

  • Administrator
  • Hero Member
  • *
  • Posts: 2661
    • My Lazarus wiki user page
[BUG # 307] ReCreateWnd fails?
« Reply #1 on: July 30, 2004, 10:25:44 pm »
Do you mean I can close this bug now?

Giuseppe Ridinò

  • Full Member
  • ***
  • Posts: 130
[BUG # 307] ReCreateWnd fails?
« Reply #2 on: July 31, 2004, 09:46:51 am »
Bug can't be closed yet because it persists (in Windows, don't know in other targets).
 :arrow: You can add the information about what cause the TMainMenu to disappear, i.e. when one use self.ReCreateWnd.
BTW, the BUG happens in both Win2K and XP, with the lazarus CVS version of 27/07/2004.
I hope this may help to find where is the bug.  :wink:

Giuseppe Ridinò

  • Full Member
  • ***
  • Posts: 130
[BUG # 307] ReCreateWnd fails?
« Reply #3 on: August 26, 2004, 08:51:12 am »
To try to reproduce this, try the follofing:
Code: [Select]
Tform
+TMainMenu
 +TMenuItem
+TButton

and set the button click:
Code: [Select]
procedure TForm1.Button1Click(Sender: TObject);
begin
  ReCreateWnd;
end;

If you run the project and click the button, the menu dissappers and all object in the form (the button) shift up.

This is in WinXP,... I will recheck what happens in Win2K again.  :wink:

Marc

  • Administrator
  • Hero Member
  • *
  • Posts: 2671
[BUG # 307] ReCreateWnd fails?
« Reply #4 on: August 27, 2004, 05:11:37 pm »
RecreateWind is something that will disapear in a future version of the LCL
It is something typical VCL/win32 and not portable
//--
{$I stdsig.inc}
//-I still can't read someones mind
//-Bugs reported here will be forgotten. Use the bug tracker

 

TinyPortal © 2005-2018