Page 1 of 1

problema con get en folder

PostPosted: Thu Sep 18, 2014 4:13 pm
by horacio
Colegas, Tengo el siguiente problema, en un folder, en una de sus pestañas me muevo entre los gets presionando enter, pero si el campo está vacío y lo completo, el enter deja de funcionar. Para que cambie al siguiente control tengo que utilizar la tecla tab, después puedo seguir con la tecla enter. El folder es
desde recursos. Alguien le ha pasado ??? Gracias de antemano

Saludos.

Re: problema con get en folder

PostPosted: Thu Sep 18, 2014 5:12 pm
by FranciscoA
Horacio:
Prueba activando el WANT RETURN en el editor de recursos.

Re: problema con get en folder

PostPosted: Thu Sep 18, 2014 5:17 pm
by FranciscoA
Tambien puedes probar con: (me lo suministro Daniel)
If( Len( RTrim( o:oGet:Buffer ) ) == Len( o:oGet:Buffer ),; //saltar a sig ctrl sin necesidad de enter, all llenar totalmente el get
( o:SendMsg( WM_KEYDOWN, VK_RETURN ) ), )

Re: problema con get en folder

PostPosted: Thu Sep 18, 2014 9:22 pm
by horacio
Gracias Francisco por responder. Want Return lo tengo activado en todos los gets. Lo extraño es que tengo otra aplicación con esa misma configuración ( un folder con tres pestañas ) y esto no sucede. Con respecto a tu solución, me gustaría conservar el comportamiento por defecto de los gets ( pasar de un control a otro con enter ), de todas maneras gracias por el tip. Seguiré investigando. Gracias nuevamente

Re: problema con get en folder

PostPosted: Fri Sep 19, 2014 1:17 am
by Antonio Linares
Que control tienes a continuación de ese GET ?

Re: problema con get en folder

PostPosted: Fri Sep 19, 2014 11:25 am
by horacio
Antonio, a otro gets. Aquí una imagen de la pestaña

Image

Gracias

Re: problema con get en folder

PostPosted: Fri Sep 19, 2014 1:16 pm
by Antonio Linares
Horacio,

Puedes copiar aqui el contenido del recurso de esa página del folder ? gracias

Re: problema con get en folder

PostPosted: Wed Sep 24, 2014 7:58 pm
by horacio
Perdón Antonio, tuve que viajar. Aquí te mando el archivo de recursos.

Code: Select all  Expand view

// RESOURCE SCRIPT generated by "Pelles C for Windows, version 7.00".

#include <windows.h>
#include <commctrl.h>
#include <richedit.h>

LANGUAGE LANG_ENGLISH,SUBLANG_ENGLISH_US

FOLDER_ALUMNOS DIALOG DISCARDABLE 98, 10, 370, 222
STYLE DS_MODALFRAME|WS_CAPTION|WS_SYSMENU|WS_CLIPSIBLINGS|WS_VISIBLE
CAPTION "Preferencias"
FONT 8, "MS Sans Serif"
{
  CONTROL "&Guardar", 101, "Button", WS_TABSTOP, 320, 188, 50, 14
  CONTROL "&Cerrar", 102, "Button", WS_TABSTOP, 320, 204, 50, 14
  CONTROL "", 100, "SysTabControl32", 0x00000000, 3, 3, 315, 216
}

DIALOGO_ALUMNOS1 DIALOG DISCARDABLE 119, 71, 314, 200
STYLE WS_CHILD
FONT 6, "MS Sans Serif"
{
  CONTROL "", 4201, "Edit", ES_WANTRETURN|WS_BORDER|WS_TABSTOP, 59, 23, 243, 13
  CONTROL "", 102, "Edit", WS_BORDER|WS_TABSTOP, 59, 46, 55, 13
  CONTROL "", 103, "ComboBox", WS_BORDER|CBS_DROPDOWN|WS_TABSTOP, 227, 46, 75, 40
  CONTROL "", 104, "ComboBox", WS_BORDER|CBS_DROPDOWN|WS_VSCROLL|WS_TABSTOP, 59, 62, 89, 40
  CONTROL "", 105, "Edit", ES_RIGHT|WS_BORDER|WS_TABSTOP, 227, 62, 74, 13
  CONTROL "", 112, "Edit", WS_BORDER|WS_TABSTOP, 59, 78, 133, 13
  CONTROL "", 106, "Edit", WS_BORDER|WS_TABSTOP, 59, 103, 243, 13
  CONTROL "", 107, "Edit", WS_BORDER|WS_TABSTOP, 59, 119, 93, 13
  CONTROL "", 108, "Edit", WS_BORDER|WS_TABSTOP, 221, 119, 80, 13
  CONTROL "", 109, "Edit", WS_BORDER|WS_TABSTOP, 59, 135, 55, 13
  CONTROL "", 111, "ComboBox", WS_BORDER|CBS_DROPDOWN|CBS_NOINTEGRALHEIGHT|WS_VSCROLL|WS_TABSTOP, 59, 161, 156, 80
  CONTROL "", 114, "ComboBox", WS_BORDER|CBS_DROPDOWN|WS_VSCROLL|WS_TABSTOP, 59, 177, 156, 40
  CONTROL "Alumno", 500, "Static", SS_RIGHT|WS_GROUP, 11, 25, 40, 8
  CONTROL "Código Nº", 116, "Static", SS_RIGHT|WS_GROUP, 11, 10, 40, 8
  CONTROL "F. Nacim.", 501, "Static", SS_RIGHT|WS_GROUP, 11, 48, 40, 8
  CONTROL "T. Doc.", 502, "Static", SS_RIGHT|WS_GROUP, 11, 64, 40, 8
  CONTROL "Nro. Doc.", 503, "Static", SS_RIGHT|WS_GROUP, 188, 64, 32, 8
  CONTROL "_", 504, "Static", SS_RIGHT|WS_GROUP, 186, 48, 32, 8
  CONTROL "Domicilio", 505, "Static", SS_RIGHT|WS_GROUP, 14, 105, 35, 8
  CONTROL "Teléfono", 506, "Static", SS_RIGHT|WS_GROUP, 14, 121, 35, 8
  CONTROL "C. Postal", 507, "Static", SS_RIGHT|WS_GROUP, 14, 137, 35, 8
  CONTROL "Curso", 508, "Static", SS_RIGHT|WS_GROUP, 14, 163, 35, 8
  CONTROL "Sección", 110, "Static", SS_RIGHT|WS_GROUP, 14, 178, 35, 8
  CONTROL "Localidad", 509, "Static", SS_RIGHT|WS_GROUP, 180, 121, 33, 8
  CONTROL "Nacionalid.", 113, "Static", SS_RIGHT|WS_GROUP, 11, 80, 40, 8
  CONTROL "", 4001, "Button", BS_GROUPBOX, 3, 0, 305, 40
  CONTROL "", 4002, "Button", BS_GROUPBOX, 3, 38, 305, 57
  CONTROL "", 4003, "Button", BS_GROUPBOX, 3, 93, 305, 60
  CONTROL "", 4004, "Button", BS_GROUPBOX, 3, 152, 305, 43
  CONTROL "   Subvencionado", 4005, "Button", BS_AUTOCHECKBOX|WS_TABSTOP, 227, 9, 76, 10
  CONTROL "\r\n", 405, "Static", WS_GROUP, 60, 9, 60, 13
}

DIALOGO_ALUMNOS2 DIALOG DISCARDABLE 100, 107, 314, 200
STYLE WS_CHILD
FONT 6, "MS Sans Serif"
{
  CONTROL "", 301, "Edit", ES_WANTRETURN|WS_BORDER|WS_TABSTOP, 62, 10, 243, 13
  CONTROL "", 302, "Edit", WS_BORDER|WS_TABSTOP, 62, 26, 93, 13
  CONTROL "", 303, "Edit", WS_BORDER|WS_TABSTOP, 200, 26, 105, 13
  CONTROL "", 304, "ComboBox", WS_BORDER|CBS_DROPDOWN|WS_VSCROLL|WS_TABSTOP, 62, 42, 89, 40
  CONTROL "", 305, "Edit", WS_BORDER|WS_TABSTOP, 200, 42, 74, 13
  CONTROL "", 311, "Edit", ES_AUTOHSCROLL|WS_BORDER|WS_TABSTOP, 62, 58, 243, 12
  CONTROL "", 306, "Edit", WS_BORDER|WS_TABSTOP, 62, 88, 243, 13
  CONTROL "", 307, "Edit", WS_BORDER|WS_TABSTOP, 62, 104, 93, 13
  CONTROL "", 308, "Edit", WS_BORDER|WS_TABSTOP, 200, 104, 105, 13
  CONTROL "", 309, "ComboBox", WS_BORDER|CBS_DROPDOWN|WS_VSCROLL|WS_TABSTOP, 62, 120, 89, 40
  CONTROL "", 310, "Edit", WS_BORDER|WS_TABSTOP, 199, 120, 74, 13
  CONTROL "Nombre", 510, "Static", SS_RIGHT|WS_GROUP, 11, 12, 40, 8
  CONTROL "Teléfono", 511, "Static", SS_RIGHT|WS_GROUP, 11, 28, 40, 8
  CONTROL "Profesión", 512, "Static", SS_RIGHT|WS_GROUP, 162, 28, 33, 8
  CONTROL "T. Doc.", 513, "Static", SS_RIGHT|WS_GROUP, 11, 44, 40, 8
  CONTROL "Nro. Doc", 514, "Static", SS_RIGHT|WS_GROUP, 161, 44, 34, 8
  CONTROL "Nombre", 515, "Static", SS_RIGHT|WS_GROUP, 11, 90, 40, 8
  CONTROL "e-mail", 520, "Static", SS_RIGHT|WS_GROUP, 11, 59, 40, 8
  CONTROL "Teléfono", 516, "Static", SS_RIGHT|WS_GROUP, 11, 106, 40, 8
  CONTROL "Profesión", 517, "Static", SS_RIGHT|WS_GROUP, 160, 106, 33, 8
  CONTROL "T. Doc.", 518, "Static", SS_RIGHT|WS_GROUP, 11, 122, 40, 8
  CONTROL "Nro. Doc", 519, "Static", SS_RIGHT|WS_GROUP, 158, 122, 34, 8
  CONTROL "Padre", -1, "Button", BS_GROUPBOX, 3, 0, 305, 77
  CONTROL "Madre", -1, "Button", BS_GROUPBOX, 3, 77, 305, 77
  CONTROL "", 312, "Edit", ES_AUTOHSCROLL|WS_BORDER|WS_TABSTOP, 62, 136, 243, 12
  CONTROL "e-mail", 4002, "Static", SS_RIGHT|WS_GROUP, 11, 137, 40, 8
}

LANGUAGE LANG_SPANISH,SUBLANG_SPANISH_MODERN

1 MANIFEST "res1.xml"

LANGUAGE LANG_ENGLISH,SUBLANG_ENGLISH_US

DIALOGO_ALUMNOS3 DIALOG DISCARDABLE 100, 107, 314, 200
STYLE WS_CHILD
FONT 6, "MS Sans Serif"
{
  CONTROL "", 401, "Edit", ES_WANTRETURN|WS_BORDER|WS_TABSTOP, 62, 7, 240, 13
  CONTROL "", 402, "Edit", ES_WANTRETURN|WS_BORDER|WS_TABSTOP, 62, 40, 240, 13
  CONTROL "", 403, "Edit", ES_WANTRETURN|WS_BORDER|WS_TABSTOP, 62, 56, 93, 13
  CONTROL "", 404, "Edit", ES_AUTOHSCROLL|ES_WANTRETURN|WS_BORDER|WS_TABSTOP, 183, 56, 40, 13
  CONTROL "", 405, "Edit", ES_WANTRETURN|WS_BORDER|WS_TABSTOP, 262, 56, 40, 13
  CONTROL "", 406, "Edit", ES_WANTRETURN|WS_BORDER|WS_TABSTOP, 62, 72, 40, 13
  CONTROL "", 407, "Edit", ES_WANTRETURN|WS_BORDER|WS_TABSTOP, 148, 73, 80, 13
  CONTROL "", 408, "Edit", ES_WANTRETURN|WS_BORDER|WS_TABSTOP, 262, 73, 40, 13
  CONTROL "", 409, "Edit", ES_WANTRETURN|WS_BORDER|WS_TABSTOP, 62, 88, 93, 13
  CONTROL "", 410, "Edit", ES_WANTRETURN|WS_BORDER|WS_TABSTOP, 228, 88, 74, 13
  CONTROL "", 411, "ComboBox", WS_BORDER|CBS_DROPDOWN|WS_VSCROLL|WS_TABSTOP, 62, 104, 93, 40
  CONTROL "", 412, "Edit", ES_WANTRETURN|WS_BORDER|WS_TABSTOP, 228, 104, 74, 13
  CONTROL "G. Familiar", -1, "Static", SS_RIGHT|WS_GROUP, 11, 9, 40, 8
  CONTROL "Calle", -1, "Static", SS_RIGHT|WS_GROUP, 11, 58, 40, 8
  CONTROL "Nro.", -1, "Static", SS_RIGHT|WS_GROUP, 162, 58, 15, 8
  CONTROL "T. Doc.", 513, "Static", SS_RIGHT|WS_GROUP, 11, 106, 40, 8
  CONTROL "Nro. Doc", 514, "Static", SS_RIGHT|WS_GROUP, 189, 106, 34, 8
  CONTROL "Teléfono", 516, "Static", SS_RIGHT|WS_GROUP, 11, 90, 40, 8
  CONTROL "Cuit", -1, "Static", SS_RIGHT|WS_GROUP, 187, 90, 34, 8
  CONTROL "", -1, "Button", BS_GROUPBOX, 3, 0, 305, 26
  CONTROL "", -1, "Button", BS_GROUPBOX, 3, 31, 305, 95
  CONTROL "Responsable", -1, "Static", SS_RIGHT|WS_GROUP, 9, 42, 42, 8
  CONTROL "Piso", -1, "Static", SS_RIGHT|WS_GROUP, 233, 58, 22, 8
  CONTROL "Observaciones", -1, "Button", BS_GROUPBOX, 4, 147, 305, 49
  CONTROL "Dpto", -1, "Static", SS_RIGHT|WS_GROUP, 11, 74, 40, 8
  CONTROL "Localidad", -1, "Static", SS_RIGHT|WS_GROUP, 108, 75, 34, 8
  CONTROL "C.P.", -1, "Static", SS_RIGHT|WS_GROUP, 233, 75, 22, 8
  CONTROL "Facturar este registro", 413, "Button", BS_AUTOCHECKBOX|WS_TABSTOP, 5, 132, 80, 10
}

DIALOGO_GRUPOS DIALOGEX DISCARDABLE 6, 18, 329, 209
STYLE WS_POPUP|DS_MODALFRAME|DS_3DLOOK|WS_CAPTION|WS_SYSMENU|WS_VISIBLE
CAPTION "Dialog"
FONT 8, "MS Sans Serif", 0, 0, 1
{
  CONTROL "", 101, "TXBrowse", WS_TABSTOP, 5, 94, 319, 92
  CONTROL "Miembros del grupo familiar", -1, "Button", BS_GROUPBOX, 1, 82, 326, 108
  CONTROL "Responsable", -1, "Static", SS_RIGHT|WS_GROUP, 7, 13, 41, 8
  CONTROL "Text", 202, "Static", WS_GROUP, 55, 14, 110, 8
  CONTROL "Domicilio", -1, "Static", SS_RIGHT|WS_GROUP, 13, 25, 35, 8
  CONTROL "Text", 203, "Static", WS_GROUP, 55, 26, 92, 8
  CONTROL "Nº", -1, "Static", SS_RIGHT|WS_GROUP, 151, 25, 15, 8
  CONTROL "Text", 204, "Static", WS_GROUP, 172, 26, 30, 8
  CONTROL "Piso", -1, "Static", SS_RIGHT|WS_GROUP, 207, 25, 17, 8
  CONTROL "Text", 205, "Static", WS_GROUP, 229, 26, 30, 8
  CONTROL "Dpto", -1, "Static", SS_RIGHT|WS_GROUP, 264, 25, 17, 8
  CONTROL "Text", 206, "Static", WS_GROUP, 286, 26, 30, 8
  CONTROL "Localidad", -1, "Static", SS_RIGHT|WS_GROUP, 13, 38, 35, 8
  CONTROL "Text", 207, "Static", WS_GROUP, 55, 39, 92, 8
  CONTROL "Cod. postal", -1, "Static", SS_RIGHT|WS_GROUP, 243, 38, 37, 8
  CONTROL "Text", 208, "Static", WS_GROUP, 285, 39, 30, 8
  CONTROL "Responsable ante la administración", -1, "Button", BS_GROUPBOX, 1, 0, 326, 55
  CONTROL "T. Doc.", -1, "Static", SS_RIGHT|WS_GROUP, 13, 67, 35, 8
  CONTROL "Text", 209, "Static", WS_GROUP, 55, 68, 40, 8
  CONTROL "Nº Doc.", -1, "Static", SS_RIGHT|WS_GROUP, 103, 67, 35, 8
  CONTROL "Text", 210, "Static", WS_GROUP, 144, 68, 60, 8
  CONTROL "CUIT", -1, "Static", SS_RIGHT|WS_GROUP, 214, 67, 35, 8
  CONTROL "Text", 211, "Static", WS_GROUP, 255, 68, 60, 8
  CONTROL "Documentos", 4002, "Button", BS_GROUPBOX, 1, 56, 326, 25
  CONTROL "&Cerrar", 301, "Button", WS_TABSTOP, 275, 192, 50, 14
  CONTROL "Cantidad", -1, "Static", SS_RIGHT|WS_GROUP, 2, 194, 29, 8
  CONTROL "Text", 212, "Static", WS_GROUP, 36, 195, 40, 8
}
 


Muchísimas gracias

Saludos

Re: problema con get en folder

PostPosted: Thu Sep 25, 2014 10:42 am
by Antonio Linares
Te falla en todos los GETs de todos esos diálogos ?

Que versión de FWH usas ?

Re: problema con get en folder

PostPosted: Thu Sep 25, 2014 8:21 pm
by horacio
Antonio, falla en todos los gets. Mi version de FWH es la 12.04, Harbour 3.1 y BCC 5.82. Gracias.

Saludos