How to disable the number box without disabling the drop down list selection linked to the number box?

Hello,

How to disable the number box without disabling the drop down list selection linked to the number box?

Thanks

Chiheb

SolidworksApi macros
Answers 2
DM
DM 2011-11-04 Best Answer

????

SF
SF 2011-11-04

Hello Dan,

I have a number box with style set to accept a drop down combo box selection:

 

m_pMeshSize->Init(pControl, VISIBLE_TRUE, ENABLE_TRUE,

swNumberBox_Length, TheMeshSize , 0.0, 1e34, m_DefaultSize/100.0, TRUE);

 

m_pMeshSize->SetStyle(swPropMgrPageNumberBoxStyle_ComboEditBox | swPropMgrPageNumberBoxStyle_AvoidSelectionText| swPropMgrPageNumberBoxStyle_Thumbwheel);



When user select an item from the dropdown list linked to the number box I need to disable the number box without disabling the section from the drop down list.









Thanks for helping

Chiheb

comment imagecomment image