Some Problems using < TScrWnd():New(.. >

Some Problems using < TScrWnd():New(.. >

Postby ukoenig » Mon May 09, 2011 9:31 am

Hello,

I found some Problems using => TScrWnd():New(...

1. On Image-end ( bottom and right ) the Thumbs are not related to the Image.
2. Using a Brush on a transparent Image, there is a wrong painting scrolling the Image.

Without using => oScroll:SetScroll( 1, 9, 1, 12) with Range-define

Image

I'm looking for a Calculation, to adjust the Thumbpos of TScrWnd():New(... related to the Image-size.

The original Image
Image

Image zoomed inside a defined Dialog-size
Image

oScroll := TScrWnd():New(oDlg, 1, nDlgH, 1, nDlgW) // Dialog-size

In Relation to the Image-size, I used a Factor to adjust the Thumb-pos like :

If nNewHeight >= 760 .or. nNewWidth >= 760 // image-size
oScroll:SetScroll( 1, 9, 1, 12)
Endif

This sample shows the Thumb on Image-bottom.

Because I couldn't find any Logic, Is there maybe a Formula ?

Best Regards
Uwe :?:
Since 1995 ( the first release of FW 1.9 )
i work with FW.
If you have any questions about special functions, maybe i can help.
User avatar
ukoenig
 
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany

Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 110 guests