Ejemplo n.º 1
0
//----------------------------------------------------
void __fastcall TfrmText::FormShow(TObject *Sender)
{
	ebApply->Visible 	= !!OnApplyClick;
    ebOk->Enabled       = false;
	// check window position
	CheckWindowPos		(this);
}
Ejemplo n.º 2
0
void __fastcall TfrmChoseItem::FormShow(TObject *Sender)
{
    tvItems->ShowCheckboxes 	= m_Flags.is(cfMultiSelect);
	int itm_cnt = _GetItemCount(m_LastSelection.c_str());
	if (m_Flags.is(cfMultiSelect)){
	    string256 T;
        for (int i=0; i<itm_cnt; i++){
            TElTreeItem* itm_node = FHelper.FindObject(tvItems,_GetItem(m_LastSelection.LowerCase().c_str(),i,T,',',"",false),0,0);//,bIgnoreExt);
	        TElTreeItem* fld_node = 0;
            if (itm_node){
				tvMulti->Items->AddObject(0,_GetItem(m_LastSelection.c_str(),i,T,',',"",false),(void*)TYPE_OBJECT);
            	itm_node->Checked = true;
                tvItems->EnsureVisible(itm_node);
                fld_node=itm_node->Parent;
                if (fld_node) fld_node->Expand(false);
            }
        }
    }else{
        TElTreeItem* itm_node = FHelper.FindItem(tvItems,m_LastSelection.LowerCase().c_str(),0,0);//,bIgnoreExt);
        TElTreeItem* fld_node = 0;
        if (itm_node){
            tvItems->Selected = itm_node;
            tvItems->EnsureVisible(itm_node);
            fld_node=itm_node->Parent;
            if (fld_node) fld_node->Expand(false);
        }else if (fld_node){
            tvItems->EnsureVisible(fld_node);
            fld_node->Expand(false);
            tvItems->Selected = fld_node;
        }
    }
    paMulti->Visible = m_Flags.is(cfMultiSelect);
	// check window position
	CheckWindowPos	(this);
}
Ejemplo n.º 3
0
void __fastcall TItemList::FormShow(TObject *Sender)
{
    InplaceEdit->Editor->Color		= TColor(0x00A0A0A0);
    InplaceEdit->Editor->AutoSelect	= true;
	// check window position
	CheckWindowPos					(this);
}
Ejemplo n.º 4
0
//----------------------------------------------------
void __fastcall TfrmNumericVector::FormShow(TObject *Sender)
{
    ebOk->Enabled       = false;
	// check window position
	CheckWindowPos		(this);
}