Richard R wrote:
> Problem is that NM_CLICK isn't found, does any one know what unit it
> would be found

At the command prompt, I ran these two commands:

E:\>cd "\Program Files\Borland\Delphi5\Source\Rtl\Win"

E:\Program Files\Borland\Delphi5\Source\Rtl\Win>grep NM_CLICK *.pas
commctrl.pas:  {$EXTERNALSYM NM_CLICK}
commctrl.pas:  NM_CLICK                 = NM_FIRST-2;

That tells me that NM_CLICK appears in CommCtrl.pas. You'd best learn 
this technique if you're going to continue using the Windows API.

> 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.

In current versions of ComCtl32.dll, the scrolling buttons are an 
up-down control. That won't necessarily be true for future versions, 
though, since there's no documentation revealing the implementation.

Since it's a child of the tab control, it probably sends wm_Notify 
messages to the tab control. Wm_Notify messages get sent to a control's 
parent, not to the parent's Delphi owner.

Look for a udn_DeltaPos notification message from the up-down control.

> 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.

Is your customer aware of the Ctrl+Tab and Ctrl+Shift+Tab keyboard 
shortcuts for navigating among pages of a page control?

-- 
Rob
__________________________________________________
Delphi-Talk mailing list -> [email protected]
http://www.elists.org/mailman/listinfo/delphi-talk

Reply via email to