FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin para Harbour/xHarbour como saltar un bValid de un get al presionar sobre un boton?
Posts: 1956
Joined: Fri Oct 07, 2005 07:08 PM
como saltar un bValid de un get al presionar sobre un boton?
Posted: Tue Nov 23, 2010 11:11 AM

Hola.

Tengo varios Get y 2 botones, uno de ellos es para cerrar el formulario,
necesito hacer que el bValid de los botones no sean tomados en cuenta
cuando hago click en el boton ¨Cerrar¨. como lo hago¨?

gracias.

FWH 21.02
Harbour 3.2.0dev (r2104281802)
Copyright (c) 1999-2021, https://harbour.github.io/
Posts: 1710
Joined: Tue Oct 28, 2008 06:26 PM
Re: como saltar un bValid de un get al presionar sobre un boton?
Posted: Tue Nov 23, 2010 12:36 PM
goosfancito

colocando la clausular CANCEL en el GET
Code (fw): Select all Collapse
 @2.5,15 BUTTON "Cancelar" OF oDlg SIZE 40,10 ACTION (oDlg:End()) CANCEL UPDATE


Saludos,


Adhemar
Saludos,



Adhemar C.
Posts: 1956
Joined: Fri Oct 07, 2005 07:08 PM
Re: como saltar un bValid de un get al presionar sobre un boton?
Posted: Tue Nov 23, 2010 12:41 PM

gracias

FWH 21.02
Harbour 3.2.0dev (r2104281802)
Copyright (c) 1999-2021, https://harbour.github.io/
Posts: 1710
Joined: Tue Oct 28, 2008 06:26 PM
Re: como saltar un bValid de un get al presionar sobre un boton?
Posted: Tue Nov 23, 2010 12:45 PM

Perfecto

Saludos,



Adhemar C.
Posts: 115
Joined: Fri Oct 14, 2005 07:10 PM
Re: como saltar un bValid de un get al presionar sobre un boton?
Posted: Tue Nov 23, 2010 02:21 PM
Con ButtonBar, la claúsula CANCEL no funciona, tienes que usarlo de este modo:

@ 00, 10 BUTTONBAR oBarList ;
               3DLOOK;
               BUTTONSIZE 25,25;
               SIZE 257, 27;
               OF oDlg

      DEFINE   BUTTON   oBtnFin   ;
               FILE     "..\bitmaps\EXIT2.BMP" OF oBarList NOBORDER;
               MESSAGE  "Salir Lista Productos"    ;
               ACTION   oDlg:End();
               TOOLTIP  "Terminar"

      oBtnFin:lCancel := .T.
Saludos,

Gonzalo

Puerto Montt - CHILE

FWH 22.12 - Harbour 3.2.0dev (r2008190002) - Borland/Embarcadero C++ 7.0(32-bit)

Continue the discussion