Search found 38 matches: idcancel

Return to advanced search

Re: check on get

... variable and not to change all the dialogs that I have already done for many years it is possible to use ( oDlg:end( IDOK ) ) and ( oDlg:end( IDCANCEL ) ) ? and use IF oDlg:nresult == IDOK orec:save() ENDIF if I have to change all the insertion dialogs to check the get controls with the lsave ...
by Silvio.Falconi
Sat Dec 02, 2023 11:58 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: check on get
Replies: 27
Views: 3937

Re: Problem on a Dialog (btnbmp are disabled)

... oBtnClose ; PROMPT "Chiudi" SIZE 130,60 PIXEL OF oDlg; RESOURCE "INVOICE_EXIT" FLAT RIGHT; FONT oFontBold ; ACTION ( oDlg:end( IDCANCEL ) ) you can move the mouse over therse buttons but you cannot execute the command of each buttons If you press "Save" buttons the ...
by Silvio.Falconi
Wed Jan 08, 2020 9:54 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Problem on a Dialog, btns are disabled RESOLVED
Replies: 7
Views: 1205

Re: Valores de dialogos en recursos y en codigo

... { CONTROL "&Aceptar [F5]", IDOK, "Button", WS_TABSTOP, 396, 306, 50, 14 CONTROL "&Cancelar", IDCANCEL, "Button", WS_TABSTOP, 452, 306, 50, 14 }
by Compuin
Wed Nov 27, 2019 7:16 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Valores de dialogos en recursos y en codigo
Replies: 10
Views: 959

Re: bAction of IDCANCEL Button

Hello, I compared the version where bAction of IDCANCEL works and the version where don't. I found this piece of code inside dialog.prg on method command:      case nID == IDCANCEL .and. ! ::lModal           if ::lValid()              ::bValid ...
by AntoninoP
Wed Nov 29, 2017 1:57 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: bAction of IDCANCEL Button
Replies: 4
Views: 714

Re: bAction of IDCANCEL Button

Try using the CANCEL clause of the @ BUTTON command.

EMG
by Enrico Maria Giordano
Fri Nov 24, 2017 11:34 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: bAction of IDCANCEL Button
Replies: 4
Views: 714

Re: bAction of IDCANCEL Button

You are right, the bValid block is called, the problem is that is called even when the program closes the dialog with End.

The problem using bValid is that is called even when I close the dialog from the code with :End .
So I need to intercept the click of CANCEL button...
by AntoninoP
Fri Nov 24, 2017 11:15 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: bAction of IDCANCEL Button
Replies: 4
Views: 714

Re: bAction of IDCANCEL Button

Try replacing WQOut() with MsgInfo().

EMG
by Enrico Maria Giordano
Thu Nov 23, 2017 2:38 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: bAction of IDCANCEL Button
Replies: 4
Views: 714

bAction of IDCANCEL Button

... FUNCTION TEST()    LOCAL oDlg, nID, oBtn    DEFINE DIALOG oDlg    nID := TControl():nInitID    TControl():nInitID := IDCANCEL-1    @ 1, 20 BUTTON oBtn PROMPT "Cancel"    TControl():nInitID := nID    oBtn:bAction := {|| WQout("never happends") ...
by AntoninoP
Thu Nov 23, 2017 9:44 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: bAction of IDCANCEL Button
Replies: 4
Views: 714

Re: Autoget desde Recursos

... 12, 8, 84, 12 CONTROL "OK", IDOK, "Button", WS_TABSTOP, 160, 5, 45, 15 CONTROL "Cancel", IDCANCEL, "Button", WS_TABSTOP, 160, 23, 45, 15 } Y el .prg sería este: #include "FiveWin.ch" #include "AutoGet.ch" static ...
by nanoespinoza
Wed Jul 26, 2017 4:23 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Autoget desde Recursos
Replies: 18
Views: 3532

Scripts y recursos

... ) DEFINE DIALOG oDialog RESOURCE "GETSERIE" REDEFINE BUTTON ; ID IDOK ; OF oDialog ; ACTION ( oDialog:End( IDOK ) ) REDEFINE BUTTON ; ID IDCANCEL ; OF oDialog ; ACTION ( oDialog:End() ) CANCEL ACTIVATE DIALOG oDialog FreeResources() return nil Saludos.
by manuelcalerosolis
Thu Mar 30, 2017 7:36 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Scripts y recursos
Replies: 3
Views: 481

Re: FiveODBC Error Message

... ID 102 OF oDlg MEMO REDEFINE GET cPass ID 103 OF oDlg MEMO REDEFINE BUTTON ID IDOK OF oDlg ACTION OpenOdbc(cDsn, cName, cPass) REDEFINE BUTTON ID IDCANCEL OF oDlg ACTION oDlg:End() ACTIVATE DIALOG oDlg return nil STATIC FUNCTION OpenOdbc(cDsn, cName, cPass) Local oOdbc, oDlg local aFiles local ...
by Compuin
Mon Dec 26, 2016 4:50 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: FiveODBC Error Message
Replies: 27
Views: 4205

PROBLEM ON BTNBMP

... OF oDlgPsw ; SIZE 45,12 PIXEL 2007 ; BORDER LEFT ROUND ; PROMPT i18n("&Annulla") RESOURCE "DLG_NO" ; ACTION (oDlgPsw:end( IDCANCEL ) ) oBtnCon:bClrGrad = bClrGrad_2010 oBtnCon:oCursor := oCursorBtn oBtnCon:cTooltip := i18n("Conferma la copia di salvataggio archivi") ...
by Silvio.Falconi
Sat Feb 06, 2016 9:12 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: PROBLEM ON BTNBMP
Replies: 3
Views: 788

Re: Nuevo FWH 15.09 Error picture

... 135, 14 CONTROL "&Ok", 120, "BUTTON", WS_CHILD | WS_VISIBLE | WS_TABSTOP, 46, 37, 31, 14 CONTROL "&Cancel", IDCANCEL, "BUTTON", WS_CHILD | WS_VISIBLE | WS_TABSTOP, 88, 37, 31, 14 END
by Patricio Avalos Aguirre
Tue Nov 24, 2015 2:33 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Nuevo FWH 15.09
Replies: 10
Views: 1812

Re: btnbmp error on 15.01

... @ 235, 182 BTNBMP oBtnCan PROMPT "&Annulla" RESOURCE "DLG_NO" SIZE 55, 12 ; LEFT 2007 ROUND ACTION ( oDlg:end( IDCANCEL ) ) oBtnCan:bClrGrad = bClrGrad oBtnCan:oCursor := oCursorBtn oBtnCan:cTooltip := i18n("Annulla la registrazione del movimento") ...
by Silvio.Falconi
Fri Jan 23, 2015 10:36 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: btnbmp error on 15.01
Replies: 12
Views: 3314

Re: to use xbrowse in dialog

... FONT 8, "Tahoma", 0, 0, 1 { CONTROL "OK", IDOK, "Button", WS_TABSTOP, 160, 5, 45, 15 CONTROL "Cancel", IDCANCEL, "Button", WS_TABSTOP, 160, 23, 45, 15 CONTROL "This is a label:", 4001, "Static", WS_GROUP, 4, 20, 40, 8 CONTROL ...
by damianodec
Sun Jan 19, 2014 11:12 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: to use xbrowse in dialog
Replies: 12
Views: 2068
Next

Return to advanced search