GET works different in 2.0 than 1.9

Xbase++ 2.0 Build 554 or later
Post Reply
Message
Author
danielF
Posts: 5
Joined: Tue Feb 12, 2019 7:58 am

GET works different in 2.0 than 1.9

#1 Post 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 ;)

Wolfgang Ciriack
Posts: 481
Joined: Wed Jan 27, 2010 10:25 pm
Location: Berlin Germany

Re: GET works different in 2.0 than 1.9

#2 Post 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} )
_______________________
Best Regards
Wolfgang

danielF
Posts: 5
Joined: Tue Feb 12, 2019 7:58 am

Re: GET works different in 2.0 than 1.9

#3 Post 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...

Post Reply