DrawItem event

G

Guest

Hi everyone

I'm trying to understand what property or method raises the drawitem event
of a statusbar control. I've been struggling to draw a progressbar, but i
can't make it work.

Thank u all
 
G

Guest

Panos said:
Hi everyone

I'm trying to understand what property or method raises the drawitem event
of a statusbar control. I've been struggling to draw a progressbar, but i
can't make it work.

Thank u all

you have to change the drawmode to userdrawn

Chris
 
G

Guest

That was the first thing i did. I understand the concept of owner drawn
controls, like listboxes or combos. But in my case, i have a For i=... Next
loop and i want to pass the i index to a property (or to a method) in order
to use the graphics class and fill the bar. How can i do it?
 
G

Guest

Panos said:
That was the first thing i did. I understand the concept of owner drawn
controls, like listboxes or combos. But in my case, i have a For i=... Next
loop and i want to pass the i index to a property (or to a method) in order
to use the graphics class and fill the bar. How can i do it?


:


Are you trying to get the graphics object for a particular panel? Is
that your question?

Chris
 
A

Armin Zingler

Panos said:
No.

I want to know what property or method raises the drawitem event in
a statusbar.



Set a breakpoint in the event handler and have a look at the callstack.
Probably it's in the statusbar's OnPaint method.


Armin
 
G

Guest

I'll check it out.Thank u Armin.

Armin Zingler said:
Set a breakpoint in the event handler and have a look at the callstack.
Probably it's in the statusbar's OnPaint method.


Armin
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top