hello, i'm trying to get access to the little scroll bar that scrolls the tabs 
when multi-line is set to False on a TPageControl. This is what I have so far

procedure TForm1.WndProc(var Message: TMessage);
var
  nmh: ^NMHDR;
begin
  if Message.Msg = WM_NOTIFY then begin
    nmh:= @Message.LParam;
    if (nmh^.code = NM_CLICK) then
      ShowMessage('test');
  end;

  Inherited WndProc(Message);
end;

Problem is that NM_CLICK isn't found, does any one know what unit it would be 
found or if its even supported? I just want to capture the clicking of the 
scroll bar thingy that the TPageControl does not give access to. The reason I'm 
doing is because a client asked that the scrollbar thing, instead of scrolling 
the tabs, to move to the next one and activate it. I suppose i'd have to create 
an entirely new TPageControl but i'd rather not if I can get this to work. 
Thanks,
__________________________________________________
Delphi-Talk mailing list -> [email protected]
http://www.elists.org/mailman/listinfo/delphi-talk

Reply via email to