Get con clausula WHEN .F.

Get con clausula WHEN .F.

Postby RuFer » Sat May 27, 2006 6:51 am

Amigos:

Un get deshabilitado con WHEN .F. al actualizarlo
se ve feo y diferente.
cVAr:="Ruben"

Redefine Get oGet VAR cVar ID 120 of oDlg WHEN .F. UPDATE
Redefine Button oBoton BLA,BLA,;
Action(......, cVar:="Pepe", oGet:Refresh())

Al refrescarse el GET deshabilitado se pinta mas grande,
si le saco el WHEN funciona bien

Muchas gracias

FWH2.7 Abril y Harbour.

Saludos

Ruben Fernandez
User avatar
RuFer
 
Posts: 140
Joined: Sat Oct 08, 2005 5:16 pm
Location: Uruguay

Postby Antonio Linares » Sat Jun 10, 2006 8:58 am

Ruben,

En este ejemplo se ven igual:
Code: Select all  Expand view
#include "FiveWin.ch"

function Main()

   local oDlg, oSay, oGet, cValue := "Hola   ", cValue2 := "Mundo  "
   
   DEFINE DIALOG oDlg TITLE "Test"
   
   @ 1, 1 SAY oSay PROMPT "Contents       "
   
   @ 3, 1 GET oGet VAR cValue ;
      ON CHANGE ( oGet:Assign(), oSay:SetText( cValue ) )

   @ 4, 1 GET cValue2 WHEN .f.
   
   ACTIVATE DIALOG oDlg CENTERED
   
return nil   

Image
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 41314
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby RuFer » Sat Jun 10, 2006 2:33 pm

Antonio:

Cuando el get es de recursos y ya tiene asignado
una variable al abrirse el dialogo Ej.: "0001" (numero de cliente)
al pintarse se me pinta mal.

Igualmente lo arregle asi:
En recursos lo defino como get y en el
programa lo redefino como say.

Muchas gracias.

Ruben Fernandez.

BCC55, Harbour y FWH 2.7 Abril
Windows xp con temas modificados.
User avatar
RuFer
 
Posts: 140
Joined: Sat Oct 08, 2005 5:16 pm
Location: Uruguay


Return to FiveWin para Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 88 guests