Phil, I tested on Win2K and XP and I could not make it break, but I found some problems:
1. With the Delete key [Asc(127)], when NO chars are selected (highlighted): Note: the exclamation char on the examples represents the insertion point. The Delete key should delete the char after the insertion point and not the previous one. Examples: - 1234!5, it should delete 5 - it's deleting 4 - 12345!, it should not delete anything - it's deleting 5 When there's one or more chars selected it deletes correctly. The Backspace key [Asc(8)] is working fine as it deletes the previous character. 2. The highlight color you are using (when selecting the chars) is wrong on Windows. You should use the system's highlight color (HighlightColor Function). But then you will have the problem with the text color on Windows XP as text can be black or white, depending on the XP theme. On Win2K (and previous versions) you can use white for text color and also white on XP for the default (blue) theme. On XP with the Silver theme the text should be black. How do you know what theme on XP is being used? I don't know :( Maybe Aaron has some APIs on his WFS. 3. Edit Menus: - The Edit->Delete menu is deleting all chars instead of only the selected chars. It deletes also everything even if no text is selected. - The Edit->Delete menu is enabled when no chars are selected or no text is present. - The Edit->Select All menu is enabled when no text is present. 4. Moving fields with the tab key: On Windows when you use the tab key to move to the next/previous control, any text that is selected on an EditField does not have any visual effect once it loses focus - you are showing a different highlight color (grey) and on Windows there's no highlight color once an editfield loses focus. BUT when you use the tab to move to an EditField any text on the field gets selected even if it was not previously selected. When using the mouse to select an EditField, the text is never highlighted even if it was before losing focus. If I was not clear with this, just let me know and I'll try to explain it in a different way. 5. There's also some problems when trying to select the text with the mouse: - If the insertion point is at beginning of text and you start selecting char by char with the mouse, when it reaches the last char all text gets unselected, but continuing to move the mouse to the right (after the last char) all text gets again selected. - If the insertion point is at the end of text and you position the mouse pointer at the end and start moving the mouse to the left, all text gets selected when the mouse pointer is next (but not over) the last char - once the mouse pointer is over the last char everything starts working fine and chars are selected correctly while continuing to move the mouse to the left. 6. I also fond that the following is not working on Windows - don't know if you already implemented it or not: Home [Asc(1)] and PageUp [Asc(11)]: - It should move the insertion point to the beginning of the text. Shift + Home [ShiftKey + Asc(1)] and Shift + PageUp [ShiftKey + Asc(11)]: - It should select all chars before the insertion point End [Asc(4)] and PageDown [Asc(12)]: - It should move the insertion point to the end of the text. Shift + End [ShiftKey + Asc(4)] and Shift + PageDown [ShiftKey + Asc(12)]: - It should select all chars after the insertion point Shift + DownArrow [ShiftKey + Asc(31)]: it should select all chars after the insertion point Shift + UpArrow [ShiftKey + Asc(30)]: it should select all chars before the insertion point --- Just one question. Why aren't you using a normal editfield without a border over a canvas? I think you will have a lot of work to get it working correctly just for Windows :-) Carlos On Sep 28, 2006 4:22 AM, Phil M wrote: > I have been slaving over a new control... 8 hours today, > and my brain is fried. I would really appreciate it > if you could try out this application I would really > appreciate it. > > Basically, I built the SearchField control from scratch using a > canvas. It emulates an single-line EditField control (not > styled). > It should work with all Edit menu items except for "Undo". It > accepts a text drop, but does not provide text drops yet. > > As far as I know there are only three unsupported issues: > > - Undo support > - text drags from SearchField control > - insertion point does not blink > - No focus ring (I would have to custom draw it and I > don't know how) > > What I need is for a bit of behavior testing... please try > to make it break and then report steps. > > I included a Windows version, but I do not have a Windows computer > available to me right now. This control should automatically > double-buffer on Windows computers, but if it does not please let > me know. > In fact let me know if you see any visual glitches at all. > > The way the test application works is for each TextChange() event, > the text in the large EditField is searched and only results which > contain the search string will be displayed. To display > all strings, just set the SearchField to empty. > > ---------------- > > Macintosh: > > http://developer.dreystone.com/files/SearchField.pef.zip > > Windows: > > http://developer.dreystone.com/files/SearchField.exe.zip _______________________________________________ Unsubscribe or switch delivery mode: <http://www.realsoftware.com/support/listmanager/> Search the archives of this list here: <http://support.realsoftware.com/listarchives/lists.html>
