Reply To: Brick-Simulator?

HomeForumsMonoBrick EV3 FirmwareBrick-Simulator?Reply To: Brick-Simulator?

#3905
Author Image
Martin Wagner
Participant

Hi Lars,
the characters don’t seem to have a background color. How to you overwrite some text? The space-character seem not to work.

Private Sub KeyReleased() Handles ButtEvs.DownReleased, ButtEvs.EnterReleased, ButtEvs.EscapeReleased, _
ButtEvs.LeftReleased, ButtEvs.RightReleased, ButtEvs.UpReleased
KeyLogger(Nothing)
End Sub

Private Sub EnterPressed() Handles ButtEvs.EnterPressed
KeyLogger(“Enter”)
End Sub

Private Sub KeyLogger(Key As String)
Dim lp As New Point(0, 0)
Const prefix As String = “Key pressed: ”
If Key Is Nothing Then
KeyScreen.WriteText(Font.SmallFont, lp, prefix & ” “, True)
Else
KeyScreen.WriteText(Font.SmallFont, lp, prefix & Key, True)
End If
KeyScreen.Update()
End Sub
=> SimuKey
=> SimuManyKeys

What is the best way to write different texts in the same location?

Best regards,
Martin

Attachments:
You must be logged in to view attached files.
Posted in

Make a donation