diff --git a/Picture-box.md b/Picture-box.md index 98c4d58..ac4cd4f 100644 --- a/Picture-box.md +++ b/Picture-box.md @@ -1 +1,22 @@ -A PictureBox control can be used to display a static image file on a form. Alternatively, you can use a PictureBox control as a drawing surface. \ No newline at end of file +A PictureBox control can be used to display a static image file on a form. Alternatively, you can use a PictureBox control as a drawing surface. + +#####Using PictureBox as a drawing surface +You can draw directly onto a PictureBox's surface using QB64's drawing commands: + + _DEST Control(ControlID).HelperCanvas + 'Drawing code here + _DEST 0 + Control(ControlID).PreviousValue = 0 'This line will trigger an update/refresh to the control + +###[[Events]] +* [[Click|Mouse events#click]] +* [[MouseDown/MouseUp|Mouse events#mousedownmouseup]] +* [[MouseEnter/MouseLeave|Mouse events#mouseentermouseleave]] + +###[[Methods]] +* [[LoadImage]] + +###[[Properties]] editable at runtime +* [[Top/Left/Width/Height|Position and size]] +* [[Tool tip]] +* [[Hidden]] \ No newline at end of file