Welcome, Guest
Username: Password: Remember me
CodeTyphon MS Windows (Win7, Win8.x, Win10 and Win11) OS Development, discussions and problems
  • Page:
  • 1

TOPIC:

OnResize problem 15 hours 42 minutes ago #19610

  • Roman
  • Roman's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 138
  • Thank you received: 2
As I understand it, I've encountered an issue with the OnResize method. I've attached the attachment.
In my opinion, OnResize should be called continuously while the form is being resized, but it's only called twice: at the beginning and end of the resize.
Is this normal behavior or a bug?

I use CT 8.9
Attachments:

Please Log in or Create an account to join the conversation.

OnResize problem 15 hours 26 minutes ago #19611

  • Matis A.
  • Matis A.'s Avatar
  • Away
  • Moderator
  • Moderator
  • Posts: 1411
  • Thank you received: 223
Sir
it'sĀ normal behavior
of an event
PilotLogic Core Programmer
The following user(s) said Thank You: Roman

Please Log in or Create an account to join the conversation.

OnResize problem 15 hours 20 minutes ago #19612

  • Roman
  • Roman's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 138
  • Thank you received: 2
How can I interactively track resizing of a form or component? OnPaint is called for every pixel resizing, so why does OnResize work differently?

Please Log in or Create an account to join the conversation.

OnResize problem 13 hours 6 minutes ago #19616

  • Matis A.
  • Matis A.'s Avatar
  • Away
  • Moderator
  • Moderator
  • Posts: 1411
  • Thank you received: 223
My suggestion is to replaceĀ 
Form.WindowProc with your procedure

For sample Look at:

codetyphon\typhon\ide\ct_emb_formeditor.pas

//======
TEmbedMessageHandler

procedure TEmbedMessageHandler.HookControl(AControl: TControl);
procedure TEmbedMessageHandler.UnHookControl;
PilotLogic Core Programmer

Please Log in or Create an account to join the conversation.

  • Page:
  • 1