Page 1 of 1

GET works different in 2.0 than 1.9

Posted: Sat May 04, 2019 10:51 am
by danielF
Hi everyone...
My customers said me that the gets works diferent in this new compilation from 2.0 than they was usin in 1.9 version...
I noticed that this new version has mor memory than 1.9, when I fill the gets and finish this gets, If I want to use the same gets, but without data, I can clean the data, but Alaska remember the last position in this gets, and this is very rare to the customers when you work with keyboard only.
For example, if I'm fillin numeric gets like this
Code: 1229191
Price: 12,20
Qty: 1,2
When I clean the data and star to collect new data, without destroying the gets, when I go to the Price the cursos reamin in the last decimal position, and when I start to write, only decimal number can I write if I don't move manuali with cursor to the begining of the get.
I can go to the beginning with oGetPrice:home() but 1.9 version this woks to home allways.
There are anything to put all the gets reset to the origin parameters, like when I create the new dialog with the gets for the first time?
Thank you all ;)

Re: GET works different in 2.0 than 1.9

Posted: Sun May 05, 2019 9:02 am
by Wolfgang Ciriack
This is related to a change in one of the last eXPress versions.
Put this in the beginning of your program:

Code: Select all

DC_XbpGetSetInputFocusBlock( {|x,y,o|nil, ;
                IIF(!Empty(o:get:buffer),o:get:pos := o:savePos,nil), ;
                o:DateFlag := .T., ;
                o:Home(), ;
                DC_HiliteGets(o,1,o:getList:getOptions[nGETOPT_HILITECOLOR]), ;
                DC_ColorGets(o,1,o:getList:getOptions[aGETOPT_COLORGETS]), ;
                nil} )

Re: GET works different in 2.0 than 1.9

Posted: Mon May 13, 2019 10:06 am
by danielF
Thank you Wolfgang Ciriack, I didn't kew that...

But I put this code and it doen't work like 1.9... it is difficult to explain... the PICT is more important now...