Hi Cetin,
I tried several ways to workaround this problem, but I always had this Error message: 'Record is out of range'. Seems to be a real problem :(((((((
So, I think, I should leave it to be the whole Height of Width. I don't like it this way :(, because now the only way to leave this field is to hit Tab.
The problem is when I go outside the editbox and click, I execute click event of another control (may be grid itself, may be column, may be textbox in a column)...
Do you think there is no workaround?
>>>>> Sorry, I have unrelated, but very important question for you: in your Expanded EditBox if I go to another field with Tab, it works fine, but if I try Mouse Click, it shows me an Error message: "Record outside the range". What should I do?
>>>>
>>>>
Nadya,
>>>>There is updated code somewhere on my disk and it's 10Gb :( I honestly even don't remember which one has the fix. I'm afraid you should wait. I'm quite busy with a brain killer project.
>>>>Cetin
>>>
>>>Cetin,
>>>
>>> The problem is that I already put it into our class library and into our Grid class. Sorry, I haven't tested it thoroughly. My colleague, who is a 'guardian' of our classes and who is responsible for class changes (I even have no rights to change our classes, but I did anyway) took my changes and wanted to incorporate them. She did a quick test and found this problem. Then, of course, I found it too. Actually, it may be not the problem of your classes itself. I did some code modification: where you used full Grid Height or Grid Width, I decided to use half of it and changed your code appopriately. Now I have the problem, I've described.
>>>
>>> Anyway, I can wait your update or try to investigate this problem by myself.
>>>
>>> Thanks in advance.
>>
>>
Nadya,
>>If forcing to full height&width is there than it should be the fixed version. As I remember I've added some comment about it :) And if I do remember well I couldn't find a workaround for it other than that.
>>Cetin
>
> Honestly, I haven't studied your code well enough, because I consider you as a very reliable source :) So, I assumed, that it should behave properly by default.
>But this is the code in Click() method:
>
>* relativerow=1 fix till understanding the mystery (or a bug ?)
>* nothing is perfect I know
>WITH this
> if .parent.baseclass="Column"
> thisform.lockscreen = .t.
> nodefault
> keyboard "{BACKTAB}"+"{TAB}"
> endif
>ENDWITH
>
>Can not understand this: it locks screen and that's it? I tried to comment this code and see, if it improves situation.
>
> Is it the newest version or the old one?
If it's not broken, fix it until it is.
My Blog