FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Why is SAY_CHARPIX_H != GET_CHARPIX_H
Posts: 14
Joined: Fri Mar 02, 2012 11:08 AM
Why is SAY_CHARPIX_H != GET_CHARPIX_H
Posted: Mon Sep 03, 2012 12:52 PM
The problem I have is that simple code like this

Code (fw): Select all Collapse
DEFINE DIALOG oDlg TITLE "REPLACE" SIZE 300, 250
   @ 1, 1 SAY "REPLACE :"
   @ 1, 5 GET cField OF oDlg
   @ 2, 1 SAY "WITH    :"
   @ 2, 5 GET cWith OF oDlg
   ...


misplace positions of labels and textedit boxes, like this:



I don't use pixels, as I need to port existing text based app to fwh frontend.
How can this misplacement be avoided? Is there a way of SAY/GET usage that I'm missing?
Posts: 117
Joined: Tue Jan 03, 2006 06:18 PM
Re: Why is SAY_CHARPIX_H != GET_CHARPIX_H
Posted: Mon Sep 03, 2012 06:57 PM
Dear dmajkic,

try this one :

Code (fw): Select all Collapse
#include "FiveWin.ch"

function Main()
    local odlg
    local cField :=space(20)
    local cWith  :=space(20)
    local ofont  
    
    define font ofont name 'courier' size 0,10
    
    DEFINE DIALOG oDlg TITLE "REPLACE" SIZE 300, 250
        @ 1  ,1 SAY "REPLACE :"  font ofont
        @ 1  ,6 GET cField OF oDlg
        @ 1.8,1 SAY "WITH    :" font ofont
        @ 2  ,6 GET cWith OF oDlg
        
    activate dialog odlg center
    
    ofont:end()

return nil


regards,

kok
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Why is SAY_CHARPIX_H != GET_CHARPIX_H
Posted: Mon Sep 03, 2012 07:12 PM

Because SAYs and GETs heights are differents...

regards, saludos

Antonio Linares
www.fivetechsoft.com

Continue the discussion