사용자 도구

사이트 도구

English

jcontrols_cf35:custom_controls

차이

문서의 선택한 두 판 사이의 차이를 보여줍니다.

차이 보기로 링크

양쪽 이전 판 이전 판
다음 판
이전 판
jcontrols_cf35:custom_controls [2016/03/15 16:56]
Comfile Technology [Canvas Property]
jcontrols_cf35:custom_controls [2016/04/14 09:46] (현재)
줄 7: 줄 7:
 To create a custom control, use the //​Project//​–>//​Add New Item...// menu, and choose the //​jCustomControl//​ template. ​ To create a custom control, use the //​Project//​–>//​Add New Item...// menu, and choose the //​jCustomControl//​ template. ​
  
-{{ :jcontrols:​customcontroltemplate.png }}+{{ .:​customcontroltemplate.png }}
  
 A new custom control will be created with the following default source code. A new custom control will be created with the following default source code.
줄 32: 줄 32:
 ''​Canvas''​ is a ''​protected''​ property that serves as the control'​s back buffer. ​ For example, to draw a yellow circle inscribed in the area of the control, one might use the following code. ''​Canvas''​ is a ''​protected''​ property that serves as the control'​s back buffer. ​ For example, to draw a yellow circle inscribed in the area of the control, one might use the following code.
  
-{{:jcontrols:​customcontrolyellowcircle.png}}+{{.:​customcontrolyellowcircle.png}}
  
 <code csharp> <code csharp>
줄 62: 줄 62:
 The InvalidateDraw method is analogous with the [[https://​msdn.microsoft.com/​en-us/​library/​598t492a%28v=vs.90%29.aspx|.Net Compact Framework controls'​ Invalidate method]], and will initiate the control'​s drawing routines. ​ It is typically used in response to a change to one of the control'​s properties. ​ For example, if to extend the example given for the [[.:​custom_controls#​canvas_property|Canvas property]] allowing the stroke thickness to be customized, the following code could be used. The InvalidateDraw method is analogous with the [[https://​msdn.microsoft.com/​en-us/​library/​598t492a%28v=vs.90%29.aspx|.Net Compact Framework controls'​ Invalidate method]], and will initiate the control'​s drawing routines. ​ It is typically used in response to a change to one of the control'​s properties. ​ For example, if to extend the example given for the [[.:​custom_controls#​canvas_property|Canvas property]] allowing the stroke thickness to be customized, the following code could be used.
  
-|{{:jcontrols:​customcontrolyellowcirclecustomthickness.png|}}|{{:jcontrols:​customcontrolyellowcircle3properties.png|}}|+|{{.:​customcontrolyellowcirclecustomthickness.png|}}|{{.:​customcontrolyellowcircle3properties.png|}}|
  
 <code csharp> <code csharp>
jcontrols_cf35/custom_controls.txt · 마지막으로 수정됨: 2016/04/14 09:46 (바깥 편집)