当前位置: 首页>>代码示例>>C++>>正文


C++ UpdateEnable函数代码示例

本文整理汇总了C++中UpdateEnable函数的典型用法代码示例。如果您正苦于以下问题:C++ UpdateEnable函数的具体用法?C++ UpdateEnable怎么用?C++ UpdateEnable使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了UpdateEnable函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: CreateTitle

// Build the menu
void CMenuJoystick::Build()
{
	// Make sure to call the base class
	CMenuBase::Build();	

//	m_pClientDE->CPrint("CMenuJoystick::Build called!"); // BLB TEMP
	
	CreateTitle("interface\\mainmenus\\options.pcx", IDS_MENU_TITLE_OPTIONS, m_pMainMenus->GetTitlePos());		
	SetOptionPos(m_pMainMenus->GetOptionsPos());
	SetItemSpacing(5);
	SetScrollWrap(DFALSE);	
	UseArrows(DTRUE, 300);

	m_bUseJoystick=g_pBloodClientShell->IsUseJoystick();

	// check if the joystick has been disabled by the advanced menu console variables
	HCONSOLEVAR hVar = m_pClientDE->GetConsoleVar( "joystickdisable");
	if (hVar != NULL) 
	{
		if (m_pClientDE->GetVarValueFloat(hVar) == 1) 
		{
			m_bUseJoystick = DFALSE;
			g_pBloodClientShell->SetUseJoystick(FALSE);
		}
	}

	// read in the JOYSTICK.CFG file
	m_pClientDE->ReadConfigFile ("joystick.cfg");

	UpdateData(DFALSE);
	BuildAxisMenus();	

	// Update the enable/disable status of the controls
	UpdateEnable();
}
开发者ID:Arc0re,项目名称:lithtech,代码行数:36,代码来源:MenuJoystick.cpp

示例2: UpdateEnable

//---------------------------------------------------------------------------
void __fastcall TCmdOptDialog::FormShow(TObject *Sender)
{
    OpenCmd->Text=Cmds[0];
    CloseCmd->Text=Cmds[1];
    ChkOpenCmd->Checked=CmdEna[0];;
    ChkCloseCmd->Checked=CmdEna[1];;
    UpdateEnable();
}
开发者ID:Barala,项目名称:rtklib,代码行数:9,代码来源:cmdoptdlg.cpp

示例3: GetPos

//---------------------------------------------------------------------------
void __fastcall TOptDialog::RefPosTypePChange(TObject *Sender)
{
	TEdit *edit[]={RefPos1,RefPos2,RefPos3};
	double pos[3];
	GetPos(RefPosTypeF,edit,pos);
	SetPos(RefPosTypeP->ItemIndex,edit,pos);
	RefPosTypeF=RefPosTypeP->ItemIndex;
	UpdateEnable();
}
开发者ID:thesamprice,项目名称:RTKLIB,代码行数:10,代码来源:naviopt.cpp

示例4: SetOutFiles

// callback on button-options -----------------------------------------------
void __fastcall TMainWindow::BtnOptionsClick(TObject *Sender)
{
    int rnxfile=RnxFile;
    if (ConvOptDialog->ShowModal()!=mrOk) return;
    if (RnxFile!=rnxfile) {
        SetOutFiles(InFile->Text);
    }
    UpdateEnable();
}
开发者ID:Akehi,项目名称:RTKLIB,代码行数:10,代码来源:convmain.cpp

示例5: trace

// connect to external sources ----------------------------------------------
void __fastcall TPlot::Connect(void)
{
    AnsiString s;
    char *cmd,*path,buff[MAXSTRPATH],*name[2]={"",""},*p;
    int i,mode=STR_MODE_R;
    
    trace(3,"Connect\n");
    
    if (ConnectState) return;
    
    for (i=0;i<2;i++) {
        if      (RtStream[i]==STR_NONE    ) continue;
        else if (RtStream[i]==STR_SERIAL  ) path=StrPaths[i][0].c_str();
        else if (RtStream[i]==STR_FILE    ) path=StrPaths[i][2].c_str();
        else if (RtStream[i]<=STR_NTRIPCLI) path=StrPaths[i][1].c_str();
        else continue;
        
        if (RtStream[i]==STR_FILE||!SolData[i].cyclic||SolData[i].nmax!=RtBuffSize+1) {
            Clear();
            initsolbuf(SolData+i,1,RtBuffSize+1);
        }
        if (RtStream[i]==STR_SERIAL) mode|=STR_MODE_W;
        
        strcpy(buff,path);
        if ((p=strstr(buff,"::"))) *p='\0';
        if ((p=strstr(buff,"/:"))) *p='\0';
        if ((p=strstr(buff,"@"))) name[i]=p+1; else name[i]=buff;
        
        if (!stropen(Stream+i,RtStream[i],mode,path)) {
            ShowMsg(s.sprintf("connect error: %s",name));
            ShowLegend(NULL);
            trace(1,"stream open error: ch=%d type=%d path=%s\n",i+1,RtStream[i],path);
            continue;
        }
        strsettimeout(Stream+i,RtTimeOutTime,RtReConnTime);
        
        if (StrCmdEna[i][0]) {
            cmd=StrCmds[i][0].c_str();
            strwrite(Stream+i,(unsigned char *)cmd,strlen(cmd));
        }
        ConnectState=1;
    }
    if (!ConnectState) return;
    
    if (Title!="") Caption=Title;
    else Caption=s.sprintf("CONNECT %s %s",name[0],name[1]);
    
    BtnConnect->Down=true;
    BtnSol1   ->Down=*name[0];
    BtnSol2   ->Down=*name[1];
    BtnSol12  ->Down=false;
    BtnShowTrack->Down=true;
    BtnFixHoriz->Down=true;
    UpdateEnable();
    UpdateTime();
    UpdatePlot();
}
开发者ID:KatsuhiroMorishita,项目名称:RTKLIB,代码行数:58,代码来源:plotdata.cpp

示例6: UpdateData

// The right key was pressed
void CMenuJoystick::OnRight()
{
	// Call the base class
	CMenuBase::OnRight();

	UpdateData();

	// Update the enable/disable status of the controls
	UpdateEnable();	
}
开发者ID:Arc0re,项目名称:lithtech,代码行数:11,代码来源:MenuJoystick.cpp

示例7: UpdateEnable

//---------------------------------------------------------------------------
void __fastcall TConvDialog::FormShow(TObject *Sender)
{
	AnsiString s;
	Conversion->Checked=ConvEna;
	InFormat ->ItemIndex=ConvInp;
	OutFormat->ItemIndex=ConvOut;
	OutMsgs->Text=ConvMsg;
	Options->Text=ConvOpt;
	UpdateEnable();
}
开发者ID:Andreas-Krimbacher,项目名称:rtklib,代码行数:11,代码来源:convdlg.cpp

示例8: UpdateEnable

//---------------------------------------------------------------------------
void __fastcall TConvOptDialog::FormShow(TObject *Sender)
{
	AnsiString s;
	RnxVer->ItemIndex=MainWindow->RnxVer;
	RnxFile->Checked=MainWindow->RnxFile;
	RnxCode->Text=MainWindow->RnxCode;
	RunBy->Text=MainWindow->RunBy;
	Marker->Text=MainWindow->Marker;
	MarkerNo->Text=MainWindow->MarkerNo;
	MarkerType->Text=MainWindow->MarkerType;
	Name0->Text=MainWindow->Name[0];
	Name1->Text=MainWindow->Name[1];
	Rec0->Text=MainWindow->Rec[0];
	Rec1->Text=MainWindow->Rec[1];
	Rec2->Text=MainWindow->Rec[2];
	Ant0->Text=MainWindow->Ant[0];
	Ant1->Text=MainWindow->Ant[1];
	Ant2->Text=MainWindow->Ant[2];
	AppPos0->Text=s.sprintf("%.4f",MainWindow->AppPos[0]);
	AppPos1->Text=s.sprintf("%.4f",MainWindow->AppPos[1]);
	AppPos2->Text=s.sprintf("%.4f",MainWindow->AppPos[2]);
	AntDel0->Text=s.sprintf("%.4f",MainWindow->AntDel[0]);
	AntDel1->Text=s.sprintf("%.4f",MainWindow->AntDel[1]);
	AntDel2->Text=s.sprintf("%.4f",MainWindow->AntDel[2]);
	Comment0->Text=MainWindow->Comment[0];
	Comment1->Text=MainWindow->Comment[1];
	RcvOption->Text=MainWindow->RcvOption;
	for (int i=0;i<6;i++) CodeMask[i]=MainWindow->CodeMask[i];
	AutoPos->Checked=MainWindow->AutoPos;
	ScanObs->Checked=MainWindow->ScanObs;
	OutIono->Checked=MainWindow->OutIono;
	OutTime->Checked=MainWindow->OutTime;
	OutLeaps->Checked=MainWindow->OutLeaps;

	Nav1->Checked=MainWindow->NavSys&SYS_GPS;
	Nav2->Checked=MainWindow->NavSys&SYS_GLO;
	Nav3->Checked=MainWindow->NavSys&SYS_GAL;
	Nav4->Checked=MainWindow->NavSys&SYS_QZS;
	Nav5->Checked=MainWindow->NavSys&SYS_SBS;
	Nav6->Checked=MainWindow->NavSys&SYS_CMP;
	Obs1->Checked=MainWindow->ObsType&OBSTYPE_PR;
	Obs2->Checked=MainWindow->ObsType&OBSTYPE_CP;
	Obs3->Checked=MainWindow->ObsType&OBSTYPE_DOP;
	Obs4->Checked=MainWindow->ObsType&OBSTYPE_SNR;
	Freq1->Checked=MainWindow->FreqType&FREQTYPE_L1;
	Freq2->Checked=MainWindow->FreqType&FREQTYPE_L2;
	Freq3->Checked=MainWindow->FreqType&FREQTYPE_L5;
	Freq4->Checked=MainWindow->FreqType&FREQTYPE_L6;
	Freq5->Checked=MainWindow->FreqType&FREQTYPE_L7;
	Freq6->Checked=MainWindow->FreqType&FREQTYPE_L8;
	ExSats->Text=MainWindow->ExSats;
	TraceLevel->ItemIndex=MainWindow->TraceLevel;
	
	UpdateEnable();
}
开发者ID:Andreas-Krimbacher,项目名称:rtklib,代码行数:56,代码来源:convopt.cpp

示例9: TForm

//---------------------------------------------------------------------------
__fastcall TConvOptDialog::TConvOptDialog(TComponent* Owner)
	: TForm(Owner)
{
	AnsiString s;
	int glo=MAXPRNGLO,gal=MAXPRNGAL,qzs=MAXPRNQZS,cmp=MAXPRNCMP;
	if (glo<=0) Nav2->Enabled=false;
	if (gal<=0) Nav3->Enabled=false;
	if (qzs<=0) Nav4->Enabled=false;
	if (cmp<=0) Nav6->Enabled=false;
	
	UpdateEnable();
}
开发者ID:Andreas-Krimbacher,项目名称:rtklib,代码行数:13,代码来源:convopt.cpp

示例10: TForm

//---------------------------------------------------------------------------
__fastcall TOptDialog::TOptDialog(TComponent* Owner)
	: TForm(Owner)
{
	AnsiString label,s;
	int freq[]={1,2,5,6,7,8},nglo=MAXPRNGLO,ngal=MAXPRNGAL,nqzs=MAXPRNQZS;
	int ncmp=MAXPRNCMP;
	PrcOpt=prcopt_default;
	SolOpt=solopt_default;
	UpdateEnable();
	PosFont=new TFont;
	
	Freq->Items->Clear();
	for (int i=0;i<NFREQ;i++) {
		label=label+(i>0?"+":"")+s.sprintf("L%d",freq[i]);
		Freq->Items->Add(label);
	}
	if (nglo<=0) NavSys2->Enabled=false;
	if (ngal<=0) NavSys3->Enabled=false;
	if (nqzs<=0) NavSys4->Enabled=false;
	if (ncmp<=0) NavSys6->Enabled=false;
	UpdateEnable();
}
开发者ID:thesamprice,项目名称:RTKLIB,代码行数:23,代码来源:naviopt.cpp

示例11: UpdateEnable

//---------------------------------------------------------------------------
void __fastcall TLogStrDialog::FormShow(TObject *Sender)
{
	Stream1C ->Checked  =StreamC[0];
	Stream2C ->Checked  =StreamC[1];
	Stream3C ->Checked  =StreamC[2];
	Stream1  ->ItemIndex=Stream[0];
	Stream2  ->ItemIndex=Stream[1];
	Stream3  ->ItemIndex=Stream[2];
	FilePath1->Text     =GetFilePath(Paths[0][2]);
	FilePath2->Text     =GetFilePath(Paths[1][2]);
	FilePath3->Text     =GetFilePath(Paths[2][2]);
	SwapIntv ->Text     =SwapInterval;
	TimeTagC ->Checked  =LogTimeTag;
	UpdateEnable();
}
开发者ID:brNX,项目名称:rtklibros,代码行数:16,代码来源:logstrdlg.cpp

示例12: time2str

//---------------------------------------------------------------------------
void __fastcall TSpanDialog::FormShow(TObject *Sender)
{
	char ts[64],te[64];
	AnsiString s;
	TimeStartF->Checked=TimeEna[0];
	TimeEndF  ->Checked=TimeEna[1];
	TimeIntF  ->Checked=TimeEna[2];
	time2str(TimeStart,ts,0); ts[10]='\0';
	time2str(TimeEnd,  te,0); te[10]='\0';
	TimeY1->Text=ts;
	TimeH1->Text=ts+11;
	TimeY2->Text=te;
	TimeH2->Text=te+11;
	EditTimeInt->Text=s.sprintf("%g",TimeInt);
	UpdateEnable();
}
开发者ID:aamalik,项目名称:gnss-master,代码行数:17,代码来源:tspandlg.cpp

示例13: strcpy

//---------------------------------------------------------------------------
void __fastcall TFileOptDialog::FormShow(TObject *Sender)
{
    AnsiString s;
    double speed=1.0,start=0.0,intv=0.0;
    char buff[1024];
    char *p;
    strcpy(buff,Path.c_str());

    ChkTimeTag->Caption=Opt?"TimeTag":"Time";
    TimeSpeed->Visible=!Opt;
    TimeStart->Visible=!Opt;
    Label1   ->Caption=Opt?"Output File Path":"Input File Path";
    Label2   ->Visible=!Opt;
    Label3   ->Visible=!Opt;
    Label4   ->Visible=Opt;
    Label5   ->Visible=Opt;
    SwapIntv ->Visible=Opt;
    BtnKey   ->Visible=Opt;
    ChkTimeTag->Checked=false;
    SwapIntv ->Text="";
    if (!Opt) {
        for (p=buff; p=strstr(p,"::"); p+=2) {
            if      (*(p+2)=='T') ChkTimeTag->Checked=true;
            else if (*(p+2)=='+') sscanf(p+2,"+%lf",&start);
            else if (*(p+2)=='x') sscanf(p+2,"x%lf",&speed);
        }
        if (start<=0.0) start=0.0;
        if (speed<=0.0) speed=1.0;
        TimeSpeed->Text=s.sprintf("x%g",speed);
        TimeStart->Text=s.sprintf("%g", start);
        if ((p=strstr(buff,"::"))) *p='\0';
        FilePath->Text=buff;
    }
    else {
        for (p=buff; p=strstr(p,"::"); p+=2) {
            if      (*(p+2)=='T') ChkTimeTag->Checked=true;
            else if (*(p+2)=='S') sscanf(p+2,"S=%lf",&intv);
        }
        if (intv>0.0) SwapIntv->Text=s.sprintf("%.3g",intv);
        if ((p=strstr(buff,"::"))) *p='\0';
        FilePath->Text=buff;
    }
    UpdateEnable();
}
开发者ID:Barala,项目名称:rtklib,代码行数:45,代码来源:fileoptdlg.cpp

示例14: strcpy

//---------------------------------------------------------------------------
void __fastcall TFtpOptDialog::FormShow(TObject *Sender)
{
	AnsiString s,cap[]={"FTP Option","HTTP Option"};
	char buff[2048],*p,*q;
	char *addr,*file="",*user="",*passwd="";
	int topts[4]={0,3600,0,0};
	
	Caption=cap[Opt];
	
	strcpy(buff,Path.c_str());
    
    if ((p=strchr(buff,'/'))) {
        if ((q=strstr(p+1,"::"))) {
            *q='\0';
            sscanf(q+2,"T=%d,%d,%d,%d",topts,topts+1,topts+2,topts+3);
        }
        file=p+1;
        *p='\0';
    }
    if ((p=strrchr(buff,'@'))) {
        *p++='\0';
        if ((q=strchr(buff,':'))) {
             *q='\0'; passwd=q+1;
        }
        *q='\0'; user=buff;
    }
    else p=buff;
    addr=p;	
	
	Addr->Text=s.sprintf("%s/%s",addr,file);
	User->Text=user;
	Passwd->Text=passwd;
	PathOffset   ->Text=s.sprintf("%.2g",topts[0]/3600.0);
	Interval     ->Text=s.sprintf("%.2g",topts[1]/3600.0);
	Offset       ->Text=s.sprintf("%.2g",topts[2]/3600.0);
	RetryInterval->Text=s.sprintf("%d",topts[3]);
	Addr->Items->Clear();
	for (int i=0;i<MAXHIST;i++) {
		if (History[i]!="") Addr->Items->Add(History[i]);
	}
	UpdateEnable();
}
开发者ID:Andreas-Krimbacher,项目名称:rtklib,代码行数:43,代码来源:ftpoptdlg.cpp

示例15: UpdateEnable

//---------------------------------------------------------------------------
void __fastcall TInputStrDialog::FormShow(TObject *Sender)
{
	AnsiString s;
	StreamC1  ->Checked  =StreamC[0];
	StreamC2  ->Checked  =StreamC[1];
	StreamC3  ->Checked  =StreamC[2];
	Stream1   ->ItemIndex=Stream[0];
	Stream2   ->ItemIndex=Stream[1];
	Stream3   ->ItemIndex=Stream[2];
	Format1   ->ItemIndex=Format[0];
	Format2   ->ItemIndex=Format[1]<NRcv?Format[1]:NRcv+Format[1]-STRFMT_SP3;
	Format3   ->ItemIndex=Format[2]<NRcv?Format[2]:NRcv+Format[2]-STRFMT_SP3;
	FilePath1 ->Text     =GetFilePath(Paths[0][2]);
	FilePath2 ->Text     =GetFilePath(Paths[1][2]);
	FilePath3 ->Text     =GetFilePath(Paths[2][2]);
	NmeaReqL  ->ItemIndex=NmeaReq;
	TimeTagC  ->Checked  =TimeTag;
	TimeSpeedL->Text     =TimeSpeed;
	TimeStartE->Text     =TimeStart;
	NmeaPos1  ->Text     =s.sprintf("%.9f",NmeaPos[0]);
	NmeaPos2  ->Text     =s.sprintf("%.9f",NmeaPos[1]);
	UpdateEnable();
}
开发者ID:aamalik,项目名称:gnss-master,代码行数:24,代码来源:instrdlg.cpp


注:本文中的UpdateEnable函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。