2.3.1.38 GETN_HINT_EX


Name

GETN_HINT_EX

Declaration

#define GETN_HINT_EX(_bWrappedText, _bBold)	GETN_READ_ONLY_COLOR GETN_OPTION_DISPLAY_FORMAT(DISPLAY_EDITOR_USE_LABEL | (_bBold ? DISPLAY_EDITOR_BOLD_FONT : 0) | (_bWrappedText? DISPLAY_EDITOR_NEXT_LINE | DISPLAY_EDITOR_WRAPPED : 0))


Remark

Set label of the control as read only style

Parameters

_bWrappedText
[input] Wrap Text
_bBold
[input] Set text bold

Examples

EX1

#include <GetNbox.h>
void GETN_HINT_EX_ex1()
{
    GETN_BOX(trRoot)
    GETN_STR(STR, "Normal String with Bold font", "Editable Value")				//defult    
    GETN_STR(STR, "Normal String with Bold font", "Hidden Value") GETN_HINT 	//Set the label as blue
    GETN_STR(STR, "Normal String", "Hidden Value") GETN_HINT_EX(FALSE, FALSE) 	//Set the label as blue
    GETN_STR(STR, "Normal String with Bold font", "Read-only Value") GETN_INFO	//Set the value as blue
    
    if ( GetNBox(trRoot) )
        out_tree(trRoot);
    return;
}

EX2

This example shows how to add right-arrow button to trigger an OC event
void getn_hint_right_arrow_ex()
{
    GETN_TREE(tr)
		GETN_STR(Hint, "My Hint " UNICODE_OCHAR_RIGHT_TRI, "") //UNICODE_OCHAR_RIGHT_TRI to add a right arrow at the end
			GETN_HINT_EX(TRUE, FALSE)
			GETN_OPTION_EVENT_EX(OnClick)
	GetNBox(tr)
}

bool OnClick(TreeNode& myTree, int nRow, int nCol, TreeNode& trNode, DWORD dwCntrl, int nType, WndContainer& theDlg)
{
	if(GETNEVENT_ON_AUTO_BUTTON_CLICKED != dwCntrl)
		return true;
	printf("clicked row = %d, col=%d, cntrl=%X, type = %d\n", nRow, nCol, dwCntrl, nType);
	return true;
}

See Also

GETN_INFO, GETN_HINT, GETN_OPTION_EVENT_EX

Header to Include

GetNBox.h

Reference