nrsi_Rao
(nrsi Rao)
August 21, 2021, 7:21pm
1
hi All,
when I was doing 32 bit List Label ocx control i used SetMetric api for setting the metric but now i want to use cmLL21.lib for that there is no api for Setting to metric , Could you please help me in setting to mm or inches
Previous code
m_cDevList. SetMetric(CXCtrlDevList::METRIC_1_10_MM) //where DevList (List label ocx control)
m_cDevList.SetMetric((m_bMetric ? METRIC_1_10_MM : METRIC_1_100_INCH))
please let me know how to do the same logic by using cmLL21.lib API.
jbartlau
(combit - Jochen Bartlau)
August 22, 2021, 4:46am
2
You can set the units via LL_OPTION_UNITS when using the API.
nrsi_Rao
(nrsi Rao)
August 22, 2021, 6:37am
3
Thanks for the reply . How to set Metric 1/10 or different metric 1/100 could you please let me know any Api for that.
LLoptions_units only sets metric or inches but the metric 1/10 or 1/100 .
Please let me know ur thoughts on the same.
nrsi_Rao
(nrsi Rao)
August 22, 2021, 6:40am
4
Could you please give one example for that …like for metric 1/100
jbartlau
(combit - Jochen Bartlau)
August 22, 2021, 6:48am
5
The available values are documented here .
nrsi_Rao
(nrsi Rao)
August 22, 2021, 12:56pm
6
hi,
Thanks for the reply. I replaced from
//Old Code
m_cOCx.SetMetric(CXCtrlDevList::METRIC_1_10_MM) to
//New Code
LlPrintSetOption(m_hJob, LL_PRNOPT_UNITS, LL_UNITS_MM_DIV_10);
Please let me know if it is ok ?
1 Like
jbartlau
(combit - Jochen Bartlau)
August 23, 2021, 4:24am
7
Looks good to me . You can easily verify if it is working as expected.