Folderex on Folderex Coordinate

Folderex on Folderex Coordinate

Postby Mulyadi » Fri Mar 30, 2018 4:50 pm

Hi All,
how to make coordinate folder A1,A2 balance..?
look my sample code:
Code: Select all  Expand view

#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.
User avatar
Mulyadi
 
Posts: 82
Joined: Mon Apr 18, 2011 2:32 am

Re: Folderex on Folderex Coordinate

Postby nageswaragunupudi » Fri Mar 30, 2018 11:14 pm

Code: Select all  Expand view
  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
User avatar
nageswaragunupudi
 
Posts: 10308
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: Folderex on Folderex Coordinate

Postby Mulyadi » Sat Mar 31, 2018 4: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: Select all  Expand view
// 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
User avatar
Mulyadi
 
Posts: 82
Joined: Mon Apr 18, 2011 2:32 am

Re: Folderex on Folderex Coordinate

Postby nageswaragunupudi » Tue Apr 03, 2018 6: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
User avatar
nageswaragunupudi
 
Posts: 10308
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: Folderex on Folderex Coordinate

Postby Mulyadi » Tue Apr 03, 2018 2:13 pm

Thanks Mr. Rao

Regards
User avatar
Mulyadi
 
Posts: 82
Joined: Mon Apr 18, 2011 2:32 am


Return to FiveWin for Harbour/xHarbour

Who is online

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

cron