Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Editbox problems 1

Status
Not open for further replies.

TomasDill

IS-IT--Management
Sep 2, 2000
703
UA
1. When I set editbox property 'AddLineFeeds' to .T., I can observe strange things. Add one or mere lines during text editing. In second line keys 'del'/'backspace'/'any char' cause jump to next character by 1 position, in third line - by 2 positions etc. Looks like line feeds added to text really, but not processed during editing. QUESTION: Does SP4 fix this problem? How can I fix this by another way, or there are no way to fix this? Note that when I try to set 'SelStart' property of such edit box manually, it drops this property to 0 always. HELP!!!
2. Starnge things about behaviour of edit box in grid. When grid column have DynamicBackColor to highlight current row, and column have 'Sparse=.F.' (that is usually used to do not show 'Memo' in grid), entire column with editboxes get highlighting color. Sometimes it fixed when I use certain combination of grid refresh and control back color setting. However, in debugger I see that back color of edit box really set to highlighting color, that is not observed for text boxes. So, even when I get column not highlighted, edit box will always have invalid background when got focus, that is terrible for editing. Setting of back color at GotFocus event does not help. I did not found event that fired after background color change. QUESTION: Des SP4 fixes this? Who know some tricks to fix this?
[sig]<p>Vlad Grynchyshyn<br><a href=mailto:vgryn@softserve.lviv.ua>vgryn@softserve.lviv.ua</a><br>[/sig]
 
2-nd problem solved, just set background of edit box to transparent.
1-st problem still exist... [sig]<p>Vlad Grynchyshyn<br><a href=mailto:vgryn@softserve.lviv.ua>vgryn@softserve.lviv.ua</a><br>[/sig]
 
I have SP4 loaded and do appear to get the strange behavior you talked about in 1. In fact, the Default for AddLineFeeds is .T.

[sig][/sig]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top