FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour xbrowse in truepixel and not Truepixel dialog
Posts: 7318
Joined: Thu Oct 18, 2012 07:17 PM
xbrowse in truepixel and not Truepixel dialog
Posted: Fri Mar 14, 2025 09:58 AM
I have problems with dialog truepixel and no truepixel to place btnbmp buttons above or below an xbrowse .
the problem occurs when we use negative relative dimensions i.e. -10,-140 or size 300,-180
that is, I can't calculate the right position to place a button at the bottom of the xbrowse

For TRUEPIXEL, the correction ::nHeight := ::oWnd:nHeight - ::nTop - ::nBottomMargin works only if nBottomMargin is positive. With negative relative dimensions (eg. -140), it is not applied correctly.

For !TRUEPIXEL, nHeight is not corrected for negative relative dimensions (eg. -180).

I need to make the class to position the buttons so as not to rewrite the same lines in each procedure also because the procedures are more than 130

and they all use xbrowse with almost the same buttons

I used chagpt and grok3 without solving



Test 1: "Menu" button not beyond scroll, nRight: 617 (641 - 15 - 10).

Test 2: Buttons above browse, nTop: 0 correct, right aligned.

Test 3: Buttons below browse, nTop: 304 (60 + 241 + 3).

Test 4: Buttons below browse, nTop: 264 (20 + 241 + 3), visible.

Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)

I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
Posts: 6755
Joined: Wed Feb 15, 2012 08:25 PM
Re: xbrowse in truepixel and not Truepixel dialog
Posted: Fri Mar 14, 2025 02:11 PM

Dear Silvio

Please post basic sample

Cristobal Navarro

Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo

El secreto de la felicidad no está en hacer lo que te gusta, sino en que te guste lo que haces

Continue the discussion