-
Oct 11th, 2017, 10:26 AM
#1
Testing code copy from vb tagged code
Testing vb code tag copy.
vb Code:
Private Sub Command3_Click()
Set Picture1.Picture = Picture1.Image
End Sub
Private Sub Form_Load()
ScaleMode = vbPixels
Picture1.ScaleMode = vbPixels
End Sub
Private Sub Picture1_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
If Check1.Value = Checked Then 'AutoRedraw True, so drawing in .Image layer
Picture1.Circle (X, Y), 30, vbRed
Else
Picture1.Circle (X, Y), 35, vbBlue
End If
End Sub
-
Oct 11th, 2017, 12:00 PM
#2
Re: Testing code copy from vb tagged code
Originally Posted by passel
Testing vb code tag copy.
vb Code:
Private Sub Command3_Click() Set Picture1.Picture = Picture1.Image End Sub Private Sub Form_Load() ScaleMode = vbPixels Picture1.ScaleMode = vbPixels End Sub Private Sub Picture1_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single) If Check1.Value = Checked Then 'AutoRedraw True, so drawing in .Image layer Picture1.Circle (X, Y), 30, vbRed Else Picture1.Circle (X, Y), 35, vbBlue End If End Sub
Code:
Private Sub Command3_Click()
Set Picture1.Picture = Picture1.Image
End Sub
Private Sub Form_Load()
ScaleMode = vbPixels
Picture1.ScaleMode = vbPixels
End Sub
Private Sub Picture1_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
If Check1.Value = Checked Then 'AutoRedraw True, so drawing in .Image layer
Picture1.Circle (X, Y), 30, vbRed
Else
Picture1.Circle (X, Y), 35, vbBlue
End If
End Sub
vb Code:
Private Sub Command3_Click() [COLOR="#FF0000"]Set Picture1.Picture = Picture1.Image[/COLOR] End Sub Private Sub Form_Load() ScaleMode = vbPixels Picture1.ScaleMode = vbPixels End Sub Private Sub Picture1_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single) If Check1.Value = Checked Then 'AutoRedraw True, so drawing in .Image layer Picture1.Circle (X, Y), 30, vbRed Else Picture1.Circle (X, Y), 35, vbBlue End If End Sub
My usual boring signature: Nothing
-
Oct 11th, 2017, 03:13 PM
#3
Re: Testing code copy from vb tagged code
Firefox had no problem copying text from a [HIGHLIGHT ] tagged window but Internet explorer made a mess of it, copying the line numbers as well as the lines and inserting a blank line between all the original lines.
I usually just use the [code ] tags and will probably continue to do so.
-
Oct 12th, 2017, 04:48 PM
#4
Re: Testing code copy from vb tagged code
My copies were made using Chrome. Copied and pasted from the original, so the line numbers didn't come over. The highlighting is messed up, though, as the COLOR tags are not being parsed in the second copy.
My usual boring signature: Nothing
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|