FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour TOutlook Problem
Posts: 363
Joined: Wed Feb 15, 2006 02:06 PM
TOutlook Problem
Posted: Wed Jan 23, 2008 02:41 PM

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

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
TOutlook Problem
Posted: Wed Jan 23, 2008 10:03 PM

Pete,

Could you please post a screenshot ? thanks

(use www.imageshack.us)

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 363
Joined: Wed Feb 15, 2006 02:06 PM
TOutlook Problem
Posted: Thu Jan 24, 2008 11:36 AM
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

Posts: 244
Joined: Mon Jun 05, 2006 09:39 PM
TOutlook Problem
Posted: Thu Jan 24, 2008 12:38 PM

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

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
TOutlook Problem
Posted: Thu Jan 24, 2008 04:55 PM

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
Posts: 363
Joined: Wed Feb 15, 2006 02:06 PM
TOutlook Problem
Posted: Fri Jan 25, 2008 08:51 AM

Thanks Giovany & Antonio, both solutions work

Pete

Continue the discussion