Page 1 of 1

xbrowse in truepixel and not Truepixel dialog

Posted: Fri Mar 14, 2025 9:58 am
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

Re: xbrowse in truepixel and not Truepixel dialog

Posted: Fri Mar 14, 2025 2:11 pm
by cnavarro
Dear Silvio
Please post basic sample