xbrowse in truepixel and not Truepixel dialog

Post Reply
User avatar
Silvio.Falconi
Posts: 7232
Joined: Thu Oct 18, 2012 7:17 pm
Been thanked: 16 times

xbrowse in truepixel and not Truepixel dialog

Post by Silvio.Falconi »

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.

Image
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
User avatar
cnavarro
Posts: 6601
Joined: Wed Feb 15, 2012 8:25 pm
Location: España
Has thanked: 6 times
Been thanked: 8 times

Re: xbrowse in truepixel and not Truepixel dialog

Post by cnavarro »

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
Post Reply