Board index » cppbuilder » Scrollbars partly disappearing.

Scrollbars partly disappearing.


2005-12-10 04:32:47 PM
cppbuilder99
I've noticed on and off that part of the scrollbars in a TListBox seem to
disappear every now and then. Especially in the corners over the little
arrow. But also some distance out from the corner. They will reappear
immediately if I click around with the mouse. However reluctantly. I have to
click at both ends of both scrollbars or scroll some ways with the up/down
keys. I haven't set any properties at all. Just add strings to the listbox
on runtime.
I have another Listbox on an adjacent tab that does not have this behavior
at all. They are both on a PageControl with about 8 tabs on it.
--
Perre
Sorry my site is only in Swedish as of now
www.kostforum.se
 
 

Re:Scrollbars partly disappearing.

Per Elmsäter wrote:
Quote
I've noticed on and off that part of the scrollbars in a TListBox
seem to disappear every now and then. Especially in the corners over
the little arrow. But also some distance out from the corner. They
will reappear immediately if I click around with the mouse. However
reluctantly. I have to click at both ends of both scrollbars or
scroll some ways with the up/down keys. I haven't set any properties
at all. Just add strings to the listbox on runtime.
I have another Listbox on an adjacent tab that does not have this
behavior at all. They are both on a PageControl with about 8 tabs on
it.
Whoops. Sorry. It's a TListView I'm talking about not a TListBox.
--
Perre
Sorry my site is only in Swedish as of now
www.kostforum.se
 

Re:Scrollbars partly disappearing.

"Per Elmsäter" < XXXX@XXXXX.COM >wrote:
Quote

[...] I haven't set any properties at all.
Are you doing any custom painting with it or any of the
controls in it's Parent hierarchy?
~ JD
 

{smallsort}

Re:Scrollbars partly disappearing.

JD wrote:
Quote
"Per Elmsäter" < XXXX@XXXXX.COM >wrote:
>
>[...] I haven't set any properties at all.

Are you doing any custom painting with it or any of the
controls in it's Parent hierarchy?

~ JD
Yes, I'm painting on a TPanel positioned on the same TabSheet. This is the
CopyRect() paintjob from a TBitmap we discussed in another thread. The
symptoms were the same earlier when I was painting on a TImage.
The copycall looks like this
pCanvas is the TPanel canvas.
pCanvas->CopyRect( MyRect, MybitmapCanvas, MyRect);
--
Perre
Sorry my site is only in Swedish as of now
www.kostforum.se
 

Re:Scrollbars partly disappearing.

JD wrote:
Quote
"Per Elmsäter" < XXXX@XXXXX.COM >wrote:
>
>[...] I haven't set any properties at all.

Are you doing any custom painting with it or any of the
controls in it's Parent hierarchy?

~ JD
Actually neither the scrollbars nor the paintjob I do on the adjacent Tpanel
gets properly repainted when moving another Window across or moving the
window partly outside the screen and back.
--
Perre
Sorry my site is only in Swedish as of now
www.kostforum.se
 

Re:Scrollbars partly disappearing.

"Per Elmsäter" < XXXX@XXXXX.COM >wrote:
Quote

Actually neither the scrollbars nor the paintjob I do on the adjacent Tpanel
gets properly repainted when moving another Window across or moving the
window partly outside the screen and back.
Then you need to post your code.
~ JD
 

Re:Scrollbars partly disappearing.

JD wrote:
Quote
"Per Elmsäter" < XXXX@XXXXX.COM >wrote:
>
>Actually neither the scrollbars nor the paintjob I do on the
>adjacent Tpanel gets properly repainted when moving another Window
>across or moving the window partly outside the screen and back.

Then you need to post your code.

~ JD
I suppose so. I'll let this slide for a while, while finishing everything
else up. In the meantime maybe I can figure out what code will be relevant
to post. But you're probably right. It may have to do with how I update my
drawings.
I'll be back on this later on.
--
Perre
Sorry my site is only in Swedish as of now
www.kostforum.se