... ) to not use the lsave 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 ...
... problema era realmente una estupidez, igualmente no entiendo porque, pero es así. En .rc tenia definido el botón de Aceptar como "IDOK", cosa que utilizo en todos mis programas, cambiando el mismo por un numero al azar, en mi caso "4101" todo funciona perfectamente. ...
hi Antonio, it doesn't work in any way. Return key go on to the next GET field but not active BTNBMP
in others PGM I use REDEFINE DIALOG from resource and it works because obtnbmp has ID = IDOK (I use Pelles C) but in this case I don't want to use REDEFINE.
... VAR lLandscape PROMPT "Stampa in Orizzontale"; SIZE 120,26 of oDlgStampa ACTIVATE DIALOG oDlgStampa CENTER IF oDlgStampa:nresult == IDOK ?llandscape // here is .t. bSetUp := {|oRep, oBrw, n, llandscape| MyRepSetup( oRep, oBrw, n,llandscape )} oBrw:Report("Elenco Categorie",.T.,,bSetUp ...
... acolumns ACTION ( aCols := {}, ; AEval( oBrw:aArrayData, { |a| If( a[ 3 ], AAdd( aCols, oBrowse:aCols[ a[ 2 ] ] ), nil ) } ), ; oDlgOptions:end( IDOK ) ) ... IF oDlgOptions:nresult == IDOK return aCols ENDIF return NIL everything works fine but my concern is that if the user does not click on ...
... Gracias Antonio, finalmente he tocado un poco la función a ver que tal. Sobre todo en cuanto a la llamada al método End() del DIALOG ( :End( IDOK ) ), al cual si no se le pasa valor aplica por defecto :nResult = 2. También le he añadido que pueda recibir un oFont definido por el usuario. ...
... 36 GET aGet[1] VAR cCli OF oDlg SIZE 25, 10 PIXEL READONLY then when I must save I check if cCli is the same of the last code IF oDlg:nresult == IDOK IF nMode == 1 cCodeCliente:=CreaCodiceClienti(oClienti) If cCodeCliente==cCli Else Msginfo("The customer was saved with the account number ...
... "&Salva" ; SIZE 60,18 PIXEL ; OF oDlgMod ; RESOURCE ".\bitmaps\SAVE.png" ; TEXTRIGHT FONT oBold ; ACTION ( oDlgMod:end( IDOK ) ) I must addd many space on Prompt to move the text but On Windows Seven it run ok and it is good to see https://i.postimg.cc/23p7MwL3/jjjjjjjjjjjjjj.png ...