Subversion Repositories f9daq

Compare Revisions

Ignore whitespace Rev 132 → Rev 133

/cvi/instr/MIKRO/MIKRO_uic.c
6,7 → 6,7
//
// Implementation file for UI build functions
//
// Date: 11-29-2014
// Date: 10-17-2015
//
//----------------------------------------------------------------------------------------------------
//----------------------------------------------------------------------------------------------------
1980,7 → 1980,7
// errChk(SetCtrlAttribute (hPanel, P1_PORT, ATTR_SHOW_RADIX, 0));
// ****WARNING**** Skipped ATTR_DISABLE_RADIX = False
// ****WARNING**** Skipped ATTR_INCDEC_WIDTH = 9
errChk(SetCtrlAttribute (hPanel, P1_PORT, ATTR_DFLT_VALUE, 8));
errChk(SetCtrlAttribute (hPanel, P1_PORT, ATTR_DFLT_VALUE, 3));
errChk(DefaultCtrl (hPanel, P1_PORT));
// errChk(SetCtrlAttribute (hPanel, P1_PORT, ATTR_SHOW_INCDEC_ARROWS, 1));
// errChk(SetCtrlAttribute (hPanel, P1_PORT, ATTR_NO_EDIT_TEXT, 0));
2267,7 → 2267,7
errChk(GetMonitorFromPanel (hPanel, &monitorId));
errChk(GetMonitorAttribute (monitorId, ATTR_HEIGHT, &screenHeight));
errChk(GetMonitorAttribute (monitorId, ATTR_WIDTH, &screenWidth));
SFv = (((float)screenHeight/1200)-1)*0.01*resAdjustment+1;
SFv = (((float)screenHeight/1040)-1)*0.01*resAdjustment+1;
errChk(SetPanelAttribute (hPanel, ATTR_HEIGHT, (int)(387*SFv)));
SFh = (((float)screenWidth/1920)-1)*0.01*resAdjustment+1;
errChk(SetPanelAttribute (hPanel, ATTR_WIDTH, (int)(606*SFh)));