FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Folderex on Folderex Coordinate
Posts: 85
Joined: Mon Apr 18, 2011 02:32 AM
Folderex on Folderex Coordinate
Posted: Fri Mar 30, 2018 04:50 PM
Hi All,
how to make coordinate folder A1,A2 balance..?
look my sample code:
Code (fw): Select all Collapse
#include "fivewin.ch"

Function main()

   local oDlg, oFld, oFld1

   DEFINE DIALOG oDlg TITLE "Test ( coordinat folder 2 to large )" size 500, 300  TRUEPIXEL

   @ 1, 10 FOLDEREX oFld OF oDlg  SIZE oDlg:nWidth-20, oDlg:nHeight-10 PIXEL ;
     PROMPT "Folder A", "Folder B" 
     
   @10, 1 FOLDEREX oFld1 OF oFld:aDialogs[1]  SIZE oFld:aDialogs[1]:nWidth, oFld:aDialogs[1]:nHeight PIXEL ;
     PROMPT "Folder A1", "Folder A2" 

     
   ACTIVATE DIALOG oDlg CENTERED 

return nil


if just one folderex on a dialog, the coordinate can be balance.

thanks.
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: Folderex on Folderex Coordinate
Posted: Fri Mar 30, 2018 11:14 PM
Code (fw): Select all Collapse
   local oDlg, oFld, oFld1

   DEFINE DIALOG oDlg SIZE 500,300 PIXEL TRUEPIXEL

   @ 1,10 FOLDEREX oFld OF oDlg SIZE oDlg:nWidth-20, oDlg:nHeight-10 PIXEL PROMPT "Prompt-A", "Prompt-B"

   oFld:aDialogs[ 1 ]:lTruePixel := .t.

   @ 0,0 FOLDEREX oFld1 OF oFld:aDialogs[ 1 ] ;
      SIZE oFld:aDialogs[ 1 ]:nWidth-4, oFld:aDialogs[ 1 ]:nHeight-30 PIXEL ;
      PROMPT "Prompt-A1", "Prompt-A2"

   ACTIVATE DIALOG oDlg CENTERED
Regards



G. N. Rao.

Hyderabad, India
Posts: 85
Joined: Mon Apr 18, 2011 02:32 AM
Re: Folderex on Folderex Coordinate
Posted: Sat Mar 31, 2018 04:32 AM
Thanks mr Rao.

especially in the case of lTruePixel, please explain it to me differences in calculations in the case of size x, y pixels.
example:
Code (fw): Select all Collapse
// in case lTruePixel := .F.
@ x,y say "test" of oDlg size 30, 12 pixel
// next row
@ x+12, y say "another row" of oDlg size 50, 12 pixel
//the result of the distance between rows is balanced

but in then case lTruePixel := .T.
@ x,y say "test" of oDlg size 30, 12 pixel
// next row
@ x+12, y say "another row" of oDlg size 50, 12 pixel
// the result of the distance between rows overlaps
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: Folderex on Folderex Coordinate
Posted: Tue Apr 03, 2018 06:26 AM

@ r,c .... SIZE w,h PIXEL when oDlg:lTruePixel == .T.

is the same as

@ r/2, c/2 .... SIZE w/2, h/2 PIXEL when oDlg:lTruePixel == .F.

Regards



G. N. Rao.

Hyderabad, India
Posts: 85
Joined: Mon Apr 18, 2011 02:32 AM
Re: Folderex on Folderex Coordinate
Posted: Tue Apr 03, 2018 02:13 PM

Thanks Mr. Rao

Regards

Continue the discussion