Search found 53 matches: idok

Return to advanced search

Re: Create a Panel width a text

If I made IF oDlgBacheca:nresult == IDOK aDim = GetLabelDim( oPanel2:hWnd, cMessage , oFont:hFont ) oPanel:setsize(aDim[ 1 ] + 60, aDim[ 2 ] + 50) oPanel:SetColor( "N/W*" ) oPanel:bPainted = { | hDC | DrawTextTransparent( hDC, cMessage ...
by Silvio.Falconi
Sat Jan 06, 2024 6:02 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Create a Panel width a text
Replies: 29
Views: 3187

Re: check on get

... ) 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 ...
by Silvio.Falconi
Sat Dec 02, 2023 11:58 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: check on get
Replies: 27
Views: 3939

Re: Desaparecen controles en Folder - SOLUCIONADO

... 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. ...
by El Loco
Thu Jul 20, 2023 5:29 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Desaparecen controles en Folder - SOLUCIONADO
Replies: 65
Views: 2285

Re: BTNBMP default button

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.
by damianodec
Thu May 26, 2022 10:36 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: BTNBMP default button
Replies: 9
Views: 619

Re: set Report Orientation

... 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 ...
by Silvio.Falconi
Tue Jan 04, 2022 12:21 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: set Report Orientation
Replies: 17
Views: 1686

set column

... 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 ...
by Silvio.Falconi
Tue Nov 16, 2021 12:12 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: set column
Replies: 0
Views: 233

Re: Capturar pulsación de tecla ESC en DIALOG

... 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. ...
by FiveWiDi
Sat Jul 17, 2021 9:44 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Capturar pulsación de tecla ESC en DIALOG
Replies: 8
Views: 905

Re: To Nages Problem with Tdatabase and new DAtepick

... RIGHT FONT oFont UPDATE ... ACTIVATE DIALOG oDlgMod ; ON INIT (DlgCenter( oDlgMod, oGrid ), aGet[5]:aItems[2]:disable()) If oDlgMod:nresult == IDOK if msgYesNo( i18n("¿ save ?") ) oTariffa:costo := nCosto oTariffa:sconto := nSconto oTariffa:totale := nTotale oTariffa:save() endif ...
by Silvio.Falconi
Tue May 11, 2021 10:04 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: To Nages Problem with Tdatabase and new DAtepick
Replies: 13
Views: 1747

Re: Problem on a Dialog (btnbmp are disabled)

... oBtnSave ; PROMPT "Save" SIZE 130,60 PIXEL OF oDlg; RESOURCE "INVOICE_SAVE" FLAT RIGHT; FONT oFontBold ; ACTION ( oDlg:end( IDOK ) ) @ 520,780 BTNBMP oBtnClose ; PROMPT "Chiudi" SIZE 130,60 PIXEL OF oDlg; RESOURCE "INVOICE_EXIT" FLAT RIGHT; FONT oFontBold ...
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: 1206

Re: Valores de dialogos en recursos y en codigo

... CAPTION "Nuevo Clientes" FONT 10, "Arial" { 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: 960

Re: XBrowse & Edit Dialogs: Writing Portable code (Recommended)

... 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 ...
by Silvio.Falconi
Sun Mar 31, 2019 4:24 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: XBrowse & Edit Dialogs: Writing Portable code (Recommended)
Replies: 17
Views: 3658

Re: Simulate btnbmp Window 10

... "&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 ...
by Silvio.Falconi
Tue Feb 19, 2019 9:23 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Simulate btnbmp Window 10
Replies: 5
Views: 793

Re: btnbmp style win10

... FLAT SIZE 45,15 LEFT PIXEL OF oDlg ;      COLOR CLR_BLACK,CLR_WHITE   GRADIENT bGrad2015  NOROUND;      ACTION ( oDlg:end( IDOK ) )       @ 233, 182 BTNBMP  oBtnCan  RESOURCE "DLG_NO" ;      PROMPT "&Annulla" FLAT SIZE 45,15 LEFT PIXEL OF ...
by Silvio.Falconi
Tue Feb 06, 2018 11:15 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: btnbmp style win10
Replies: 17
Views: 3784

Re: bAction of IDCANCEL Button

... |o| o:nID == nID } ) > 0                         SendMessage( hWndCtl, FM_CLICK, 0, 0 )                      elseif nID == IDOK                         ::End( IDOK )                      endif                   else                      if nID == IDOK            ...
by AntoninoP
Wed Nov 29, 2017 1:57 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: bAction of IDCANCEL Button
Replies: 4
Views: 714

Re: Autoget desde Recursos

... 0, 0, 1 { CONTROL "", 101, "Edit", ES_AUTOHSCROLL|WS_BORDER|WS_TABSTOP, 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 ...
by nanoespinoza
Wed Jul 26, 2017 4:23 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Autoget desde Recursos
Replies: 18
Views: 3533
Next

Return to advanced search