<dialogName>.OnNCHitTest

<< Click to Display Table of Contents >>

Navigation:  ThinBASIC Modules > UI (User Interface) > DIALOGS > Dialog Pseudo-object Events >

<dialogName>.OnNCHitTest

 

Description

 

Invoked in order to determine what part of the window corresponds to a particular screen coordinate.

 

Syntax

 

callback function <dialogName>.OnNCHitTest()

end function

 

Remarks

 

Currently, you need to reach for Callback_LParam to retrieve the information as for WM_NCHITTEST. Would you like some wrapper? Let us know!

 

Thanks to pseudo-object global nature, you can reach for any dialog/control pseudo-objects from this callback.

 

You can also reach for low level callback parameters.

 

Example

 

uses "ui"

 

#resource "frmMain.rc"                          ' Resource file containing dialog named frmMain and button named btnClose

 

function TBMain()

  

  dialog new units, name frmMain, %HWND_DESKTOP ' Style and controls loaded from RC file,

                                                ' dialog and control have now automatic frmMain and btnClose pseudo-objects

 

  dialog show modal frmMain.Handle              ' Dialog displayed as modal

 

end function

 

' Event handler for named dialog

callback function frmMain.OnNCHitTest()

 

end function