When double click the component,how to prevent show textbox?

image

These days i am doing customize attribute things,i add some button and other UI elements in ghcomponent,and i would like to prevent the “double click textbox”. how to prevent,thank you very much.