[v8i MDL] Hiding a ComboBox

Hi,

I am hiding an unnecessary ComboBox in an accept event of a command using the function below. It works fine and ComboBox became hidden. But when you navigate mouse over ComboBox, it becomes visible. Is there a solution to this?

int	akDialog_itemShowHide
(
	DialogBox	*dbP ,
	long		type ,
	long		id ,
	boolean		state
)
{
	DialogItem	*diP;

	diP = mdlDialog_itemGetByTypeAndId(dbP, type, id, 0);

	if(diP != NULL)
	{
		if( state )
		{
			mdlDialog_itemShow(dbP, diP->itemIndex);        // Show item
		}
		else
		{
			mdlDialog_itemHide(dbP, diP->itemIndex, TRUE);  // Hide item
		}
		// Disable item
		mdlDialog_itemSetEnabledState((DialogBox *)diP->rawItemP->ownerDialogP, diP->itemIndex, state, TRUE);
	}

	return SUCCESS;
}

Kind regards,

Sedat Alis
AEC Technology Inc.

Parents Reply Children
No Data