Sign in Join

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

Mailing lists / qt / 2007-05

TPageControl

3 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

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

zeljko

I've implemented signal CurrentChanged(), cause TTabSheet wasn't properly activated (all inside ctrls doesn't know that it's parent is active), also TPageControl.ActivePage doesn't change.
So, it works, but I'm calling TPageControl().ActivePage := NewActivePage instead of TLMessage. My question would be : What message should I send to get the same effect (TPageControl changes it's ActivePage property) ? I've tried LM_ACTIVATE , but it doesn't work.

tnx

Mattias Gaertner
to zeljko
Show quoted text 8 lines
I've implemented signal CurrentChanged(), cause TTabSheet wasn't properly activated (all inside ctrls doesn't know that it's parent is active), also TPageControl.ActivePage doesn't change. So, it works, but I'm calling TPageControl().ActivePage := NewActivePage instead of TLMessage. My question would be : What message should I send to get the same effect (TPageControl changes it's ActivePage property) ? I've tried LM_ACTIVATE , but it doesn't work.

TPageControl is a TCustomNoteBook. Widgetsets should support TCustomNotebook and TCustomPage.
See TCustomNotebook.CNNotify for the messages.

Mattias

zeljko
to Mattias Gaertner
Mattias Gaertner wrote 15 lines
On Wed, 30 May 2007 09:19:52 +0200 zeljko wrote: > I've implemented signal CurrentChanged(), cause TTabSheet wasn't > properly activated (all inside ctrls doesn't know that it's parent is > active), also TPageControl.ActivePage doesn't change. > So, it works, but I'm calling TPageControl().ActivePage := > NewActivePage instead of TLMessage. My question would be : What > message should I send to get the same effect (TPageControl changes > it's ActivePage property) ? I've tried LM_ACTIVATE , but it doesn't > work. TPageControl is a TCustomNoteBook. Widgetsets should support TCustomNotebook and TCustomPage. See TCustomNotebook.CNNotify for the messages.

Yeah, tnx mattias that fixes the problem, new patch is on the way :)