Resolved! Otto, no strtran !!! Cesar, No bgotfocus and blostfocus Jimmy, No "@9" picture Resolved !!! Only in my initial test was the statement missing: FWNumFormat( "E", .t. ) and the picture to put is "@E ###.##" ...
oGet[1]:bGotFocus := {|| (oGet[1]:cText := STR(VAL(oGet[1]:cText) *100,6), oGet[1]:Refresh(),oGet[1]:SelectAll()) } Cesar, changed the GETs to character that you get the inputstyle you wanted.
Yes but nvar Is text array but i have numbers no texts
oGet[1]:bGotFocus := {|| (oGet[1]:cText := STR(VAL(oGet[1]:cText) *100,6), oGet[1]:Refresh(),oGet[1]:SelectAll()) } Cesar, changed the GETs to character that you get the inputstyle you wanted.
Robert, Please modify this line this way: oSegment:bGotFocus := { |oClp| ColToString() } // We don't provide oClp as a param, which it is a TGet object to function ColToString() that way, oClp will arrive as a nil to function ColToString() and there ...
... : Ribbon2 that I used as start sample Maybe not needed )) //-------------------------------------------------------------- // oFld:aDialogs[ 1 ]:bGotfocus := {|| msginfo( "Hier Folder" ) } Testing rule to see if anything would happen when I click on folder1 (but is didn't) //-------------------------------------------------------------- ...
... persons, orders, ...) folders AND Xbrowse for each. These are the line I'm not sure off that I use or place them at the right position :bgotfocus := { || oBrw[5]:maketotals(),set_factdet()} // Set_factdet = calling the filterfunction oBrw[5]:bChange := { |oBrw, uOlddata | set_factdet() ...
... y quiero actualizar la barra de botones de la ventana que recibe el foco, no sé que se ejecuta. He probado con llamar la función asi : oWnd:bGotFocus:= { || DbSelectArea(xAreaProveedor), Actualiza_barra_2020() } Desgraciadamente no se ejecuta cuando la ventana ...
Yes, I'm sure of that because the aliases are generated by the program. So, what do you suggest for switching the workarea on focus change? Please note that bGotFocus seems not to be enough.
Sorry, it doesn't solve the problem. There are some codeblocks in XBrowse that are evaluated before bPainted and bGotFocus, so before workarea setting.