Partial redraw of the tool.
Syntax
void Adjust(
void
) ;
Parameters
This method does not have a parameter.
Return value
This method does not return a value.
Remarks
The method does a partial re-draw of the tool. It is used when some part of the tool have been modified (usually the value of the Cur_Value" variable) and we need to reflect these changes in the tool's graphic.
Requirements
Header:
TomoVision_Util.hpp
TomoVision_Tools.hpp
Library:
TomoVision_Util.lib
TomoVision_Tools.lib
Example
|
static Buttons demo ;
extern "C" __declspec(dllexport) int Ctrl_Click( HWND wnd, int up_down, short x, short y )
{
// --- We only refresh the image when we release the button ---
if ( ! up_down ) {
return( 0 ) ;
}
// ------------------------------------------------
// We received a mouse click, now we try to find in
// which button the click was. For this we use the
// "select" method. If will tell us if the mouse
// is inside the button.
// ------------------------------------------------
if ( demo.Select( up_down ) ) {
// --- change the state of the button ---
demo_1.Cur_Value = ! demo_1.Cur_Value ;
// update the graphic for the new state ---
demo_1.Adjust() ;
return( 1 ) ;
}
return( 0 ) ;
}
|
|
See also