Questions tagged [paintevent]

An event that is triggered when a GUI component needs to be repainted

A PaintEvent is an event that is triggered when a GUI component needs to be repainted. This is usually a result of a change to the underlying data behind the GUI component, so the GUI display needs to be repainted to reflect the change.

154 questions
-1
votes
1 answer

Perform Paint in top of multiple controls

I have a short problem. How can i paint this kind of image in top of any controls like textbox etc. This is my code: Private Sub GroupBox6_Paint(sender As Object, e As PaintEventArgs) Handles GroupBox6.Paint If txtStatus.Text = "Cancelled" Then …
Muj
  • 146
  • 2
  • 21
-1
votes
4 answers

How to add scrolling to Panel

Basically, I've created an extension of the panel class that adds draws multiple bitmaps onto itself In order to create multiple musical staves. I've tried adding a vertical scroll bar onto the panel but that hasn't worked. My Paint procedure is…
Sophie Coyne
  • 1,018
  • 7
  • 16
-1
votes
1 answer

How can I make paintEvent triggered only when update is called?

It is known that QWidget::paintEvent is triggered automatically the moment widget becomes visible or any event from the basic window happens. What should I do if I only want the paintEvent to be issued in response to update()?
May
  • 1
  • 2
  • 6
-1
votes
2 answers

Qt 4.7 - Drawing a 2 point line with dynamic feedback using paintEvent

so I am trying to draw a line between two points. Left mouse click starts the line then I would like the line to by dynamically drawn as the mouse moves (almost like a preview of the line). Left mouse click again and the line will be permanently…
Josh O'Hara
  • 33
  • 1
  • 3
1 2 3
10
11