Page 1 of 1

Wrong behavior in the get cursor

Posted: Wed Feb 05, 2020 10:35 am
by PedroAlex
hello,

Wrong behavior in the get cursor

I am having problems with cursor behavior in gets.
The problem occurs when I need to use colors in gets
This little program demonstrates the situation.
What am I doing wrong?
I have this type of configuration in many applications and after compiling with release 267 I started having these problems.

For example, the hilteget clause is not working properly.
Someone could compile and confirm that the problem occurs.

Xbase 2.0.1176 and eXpress 267.

Many thanks

Re: Wrong behavior in the get cursor

Posted: Wed Feb 05, 2020 12:10 pm
by rdonnay
Your Kill Focus block is wrong.
There is a mistake in the README.TXT file. That will be corrected.

This is correct:

Code: Select all

DC_XbpGetKillInputFocusBlock(;
    {|x,y,o| o:savePos := o:get:pos, ;
        o:DateFlag := .T., ;
        IIF(o:isGetDataOnLostFocus,o:getData(),nil), ;
        IIF(o:isGetDataOnLostFocus,o:setData(),nil), ;
        o:Home(), ;
        DC_HiliteGets(o,2,o:getList:getOptions[nGETOPT_HILITECOLOR]), ;
        DC_ColorGets(o,2,o:getList:getOptions[aGETOPT_COLORGETS]), ;
        DC_PopupButtonShow(o,.f.)})

Re: Wrong behavior in the get cursor

Posted: Thu Feb 06, 2020 12:56 pm
by PedroAlex
Roger.

Now it is OK.

Thanks