TOutlook Problem

Post Reply
PeterHarmes
Posts: 363
Joined: Wed Feb 15, 2006 2:06 pm
Location: Oxford, England

TOutlook Problem

Post by PeterHarmes »

Hi,

I have just found a problem with the outlook style button bar - if there are too many buttons to fit on one screen the whole button display is wiped (when the bar is started the buttons will flash up on the screen and then instantly disappear) - I have noticed in the past that a little arrow would appear and the buttons would scroll - this no longer appears. The buttons are still there because if you click the blank space, the action associated with the buttons kicks in!

I'm using FWH 7.12 & xHarbour Commercial

Let me know if you need any more info

Thanks

Pete
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

Pete,

Could you please post a screenshot ? thanks

(use www.imageshack.us)
regards, saludos

Antonio Linares
www.fivetechsoft.com
PeterHarmes
Posts: 363
Joined: Wed Feb 15, 2006 2:06 pm
Location: Oxford, England

Post by PeterHarmes »

Antonio,

I've uploaded an image - on the left is how the outlook bar looks if i add enough buttons to cause a scroll - on the right is how it should look

Image
User avatar
Giovany Vecchi
Posts: 129
Joined: Mon Jun 05, 2006 9:39 pm
Location: Brasil

Post by Giovany Vecchi »

I solved like this

in OUTLOOK.PRG

METHOD Display() INLINE ::BeginPaint(), ::Paint(), ::EndPaintOld()

in WINDOW.PRG

METHOD EndPaint() INLINE ::nPaintCount--,;
EndPaint( ::hWnd, ::cPS ), ::cPS := nil, ::hDC := nil, 0 // keep this zero here!

METHOD EndPaintOld() INLINE ::nPaintCount--,;
EndPaint( ::hWnd, ::cPS ), ::cPS := nil, ::hDC := nil
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

Pete,

Have you tried Giovany's suggestion ?

It would be enough to add this method to Class TOutLook:

METHOD EndPaint() INLINE ::nPaintCount--,;
EndPaint( ::hWnd, ::cPS ), ::cPS := nil, ::hDC := nil
regards, saludos

Antonio Linares
www.fivetechsoft.com
PeterHarmes
Posts: 363
Joined: Wed Feb 15, 2006 2:06 pm
Location: Oxford, England

Post by PeterHarmes »

Thanks Giovany & Antonio, both solutions work

Pete
Post Reply