GEt multiline y cPicture no anda.

GEt multiline y cPicture no anda.

Postby goosfancito » Fri Feb 21, 2014 2:32 am

Hola.

Tengo:
Code: Select all  Expand view
REDEFINE GET ::oGets[ 7] VAR ::vGets[ 7] ID 145 OF oDlg  MULTILINE
 ::oGets[ 7]:cPicture:= "@!"


Y Cuando lo ejecuto me sale el error:
Error description: Warning BASE/1005 Message not found: TMULTIGET:_CPICTURE


que hago mal?

gracias.
FWH 21.02
Harbour 3.2.0dev (r2104281802)
Copyright (c) 1999-2021, https://harbour.github.io/
User avatar
goosfancito
 
Posts: 1954
Joined: Fri Oct 07, 2005 7:08 pm

Re: GEt multiline y cPicture no anda.

Postby FranciscoA » Fri Feb 21, 2014 3:41 am

Hola, revisé la classe TMultiGet y no encontré esa propiedad. En TGet si se encuentra.
Saludos.
Francisco J. Alegría P.
Chinandega, Nicaragua.

Fwxh-MySql-TMySql
User avatar
FranciscoA
 
Posts: 2114
Joined: Fri Jul 18, 2008 1:24 am
Location: Chinandega, Nicaragua, C.A.

Re: GEt multiline y cPicture no anda.

Postby goosfancito » Fri Feb 21, 2014 10:55 am

y entonces?
porque me tira ese error?

gracias.
FWH 21.02
Harbour 3.2.0dev (r2104281802)
Copyright (c) 1999-2021, https://harbour.github.io/
User avatar
goosfancito
 
Posts: 1954
Joined: Fri Oct 07, 2005 7:08 pm

Re: GEt multiline y cPicture no anda.

Postby karinha » Fri Feb 21, 2014 12:58 pm

¿Qué hace usted? Usted desea controlar el tamaño del texto?

No Ejiste el comando PICTURE en GET MULTILINE.

Salu2.
João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
User avatar
karinha
 
Posts: 7339
Joined: Tue Dec 20, 2005 7:36 pm
Location: São Paulo - Brasil

Re: GEt multiline y cPicture no anda.

Postby goosfancito » Fri Feb 21, 2014 1:15 pm

karinha wrote:¿Qué hace usted? Usted desea controlar el tamaño del texto?

No Ejiste el comando PICTURE en GET MULTILINE.

Salu2.


Eu quero que o "se" implementar "várias linhas" e de usar "cPicture". Obrigado.
FWH 21.02
Harbour 3.2.0dev (r2104281802)
Copyright (c) 1999-2021, https://harbour.github.io/
User avatar
goosfancito
 
Posts: 1954
Joined: Fri Oct 07, 2005 7:08 pm

Re: GEt multiline y cPicture no anda.

Postby karinha » Fri Feb 21, 2014 1:35 pm

No comprendo(problemas del idioma).

Puedes hablar en español que és mejor. Gracias.

Porque quieres usar cPicture en um GET MULTILINE? Mismo en un GET CON MEMO(no tengo certezca), no funciona.

Salu2.
João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
User avatar
karinha
 
Posts: 7339
Joined: Tue Dec 20, 2005 7:36 pm
Location: São Paulo - Brasil

Re: GEt multiline y cPicture no anda.

Postby goosfancito » Fri Feb 21, 2014 1:41 pm

necesito que se ingrese en un TGET solo letras en mayúsculas, por lo que uso el cPicture "@!", pero al poner la clausula MULTILINE
me tira error al ejecutar el programa.
necesito que el GET sea:
multilinea
y que solo ingrese mayusculas.

gracias.
FWH 21.02
Harbour 3.2.0dev (r2104281802)
Copyright (c) 1999-2021, https://harbour.github.io/
User avatar
goosfancito
 
Posts: 1954
Joined: Fri Oct 07, 2005 7:08 pm

Re: GEt multiline y cPicture no anda.

Postby karinha » Fri Feb 21, 2014 2:34 pm

// Testing GETs \samples\testget.prg

Code: Select all  Expand view

#include "FiveWin.ch"

#define CLR_MENTA          RGB(221,255,238)
#define CLR_HMENTA         RGB(000,128,000)
#define CLR_SOFTYELLOW     RGB(255,251,225)

function Main()

   LOCAL oDlg, oGet
   LOCAL cCad := "Testing Upper    " // pad("Testing Gets",40)
   LOCAL nNum := 0
   LOCAL dDat := Date()

   Set century On
   Set Date Ansi
   Set Date format "mm/dd/yyyy"

   SET _3DLOOK ON

   SetGetColorFocus( CLR_MENTA )

   tGet():lDisColors  := .F. //FALSE
   tGet():nClrTextDis := CLR_BLUE
   tGet():nClrPaneDis := CLR_SOFTYELLOW

   DEFINE DIALOG oDlg TITLE "TGet from " + FWDESCRIPTION

   @ 1,    2 SAY "Text..:" OF oDlg

   //@ 1,    6 GET oGet VAR cCad OF oDlg SIZE 60, 10 COLOR "W/G" PICTURE "@K"

   @ 1,    6 Get oGet var cCad multiline of oDlg ;
             COLORS CLR_HRED, CLR_WHITE          ; //READONLY
             ON CHANGE( CONVERT( oGet, cCad ) )

   @ 1.8,  2 SAY "Number:" OF oDlg

   //@ 2,    6 GET oGet VAR nNum OF oDlg SIZE 60, 10 PICTURE "9999999.99"

   @ 2.6,  2 SAY "Date:" OF oDlg

   //@ 3,    6 GET oGet VAR dDat PICTURE "@E" OF oDlg SIZE 60, 10  // "@D"

   @ 3,    7 BUTTON "&Ok" OF oDlg SIZE 30, 12 ACTION oDlg:End()
   @ 3,   16 BUTTON "&Cancel" SIZE 30, 12 OF oDlg ACTION oDlg:End() CANCEL
   
   // TGet():SetColorFocus( nRGB( 200, 120, 120 ) )

   ACTIVATE DIALOG oDlg CENTERED

return nil

Function CONVERT( oGet, cTexto )

   LOCAL cText

   // remove branco
   cTexto := StrTran( cTexto, " ", " " )
   // acento agudo
   cTexto := StrTran( cTexto, "Á", "A" )
   cTexto := StrTran( cTexto, "É", "E" )
   cTexto := StrTran( cTexto, "Í", "I" )
   cTexto := StrTran( cTexto, "Ó", "O" )
   cTexto := StrTran( cTexto, "Ú", "U" )
   // acento circunflexo
   cTexto := StrTran( cTexto, "Â", "A" )
   cTexto := StrTran( cTexto, "Ê", "E" )
   cTexto := StrTran( cTexto, "Î", "I" )
   cTexto := StrTran( cTexto, "Ô", "O" )
   cTexto := StrTran( cTexto, "Û", "U" )
   // til
   cTexto := StrTran( cTexto, "Ã", "A" )
   cTexto := StrTran( cTexto, "Õ", "O" )
   // ce-cedilha
   cTexto := StrTran( cTexto, "Ç", "C" )
   // trema
   cTexto := StrTran( cTexto, "Ü", "U" )
   // crase
   cTexto := StrTran( cTexto, "À", "A" )
   cTexto := StrTran( cTexto, "È", "E" )
   cTexto := StrTran( cTexto, "Ì", "I" )
   cTexto := StrTran( cTexto, "Ò", "O" )
   cTexto := StrTran( cTexto, "Ù", "U" )

   cText := UPPER( cTexto )

   oGet:VarPut( cText )
   oGet:Refresh()

Return( cText )
 


João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
User avatar
karinha
 
Posts: 7339
Joined: Tue Dec 20, 2005 7:36 pm
Location: São Paulo - Brasil

Re: GEt multiline y cPicture no anda.

Postby goosfancito » Fri Feb 21, 2014 2:39 pm

mmm ok.
gracias.
FWH 21.02
Harbour 3.2.0dev (r2104281802)
Copyright (c) 1999-2021, https://harbour.github.io/
User avatar
goosfancito
 
Posts: 1954
Joined: Fri Oct 07, 2005 7:08 pm

Re: GEt multiline y cPicture no anda.

Postby karinha » Fri Feb 21, 2014 2:47 pm

goosfancito wrote:mmm ok.
gracias.



kkkkkkkkkkkkk, Resuelto?? Parabiéns!!

Salu2.
João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
User avatar
karinha
 
Posts: 7339
Joined: Tue Dec 20, 2005 7:36 pm
Location: São Paulo - Brasil

Re: GEt multiline y cPicture no anda.

Postby goosfancito » Fri Feb 21, 2014 2:59 pm

pensé que al utilizar las dos cláusulas directamente en el GET
ya lo hacia, y no que debería de hacer una función a parte.

gracias.
FWH 21.02
Harbour 3.2.0dev (r2104281802)
Copyright (c) 1999-2021, https://harbour.github.io/
User avatar
goosfancito
 
Posts: 1954
Joined: Fri Oct 07, 2005 7:08 pm

Re: GEt multiline y cPicture no anda.

Postby Sebastián Almirón » Fri Feb 21, 2014 3:52 pm

Aunque ya te ha contestado Joao, prueba con:

@ 1, 6 Get oGet var cCad multiline of oDlg ;
COLORS CLR_HRED, CLR_WHITE //READONLY
oget:bchange := {|nkey| cCad := strtran( cCad, chr(nkey), upper(chr(nkey)) ), oCad:Refresh() }

Saludos
User avatar
Sebastián Almirón
 
Posts: 155
Joined: Mon Dec 12, 2005 9:56 am
Location: Moralzarzal - Spain

Re: GEt multiline y cPicture no anda.

Postby goosfancito » Fri Feb 21, 2014 4:52 pm

gracias
FWH 21.02
Harbour 3.2.0dev (r2104281802)
Copyright (c) 1999-2021, https://harbour.github.io/
User avatar
goosfancito
 
Posts: 1954
Joined: Fri Oct 07, 2005 7:08 pm

Re: GEt multiline y cPicture no anda.

Postby FranciscoA » Fri Feb 21, 2014 9:52 pm

Sebastian... Funciona!
Saludos.
Francisco J. Alegría P.
Chinandega, Nicaragua.

Fwxh-MySql-TMySql
User avatar
FranciscoA
 
Posts: 2114
Joined: Fri Jul 18, 2008 1:24 am
Location: Chinandega, Nicaragua, C.A.


Return to FiveWin para Harbour/xHarbour

Who is online

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