text edit box not painting text ( on form startup )
Huw D M Davies
h.davies1 at physics.ox.ac.uk
Fri Sep 19 04:31:13 CDT 2003
On Thu, Sep 18, 2003 at 08:41:19PM -0700, Doug Herbert wrote:
> ( I have posted a similiar question in wine-users,
> don't flame me for doing so, just thinking about this
> some more, perhaps it may be more a developer question
> )
>
>
> Ok, I have a windows app, that runs under wine fine -
> not quite. This app has a form, with many text field
> edit boxes on. Quite often these edit boxes already
> have text values, ie. they are not empty - there is a
> database behind the form.
>
> Anyway, the form shows on the screen, but the text
> within the edit fields is invisible, until you
> activate each edit box component. When you leave one
> edit box to the next, the text remains visible.
Hi Doug,
It's possible that this might help.
Huw.
--
Huw Davies
huw at codeweavers.com
-------------- next part --------------
Index: controls/edit.c
===================================================================
RCS file: /home/wine/wine/controls/edit.c,v
retrieving revision 1.121
diff -u -r1.121 edit.c
--- controls/edit.c 17 Sep 2003 04:28:29 -0000 1.121
+++ controls/edit.c 19 Sep 2003 09:29:39 -0000
@@ -890,13 +890,6 @@
break;
case WM_MOUSEACTIVATE:
- /*
- * FIXME: maybe DefWindowProc() screws up, but it seems that
- * modeless dialog boxes need this. If we don't do this, the focus
- * will _not_ be set by DefWindowProc() for edit controls in a
- * modeless dialog box ???
- */
- SetFocus(hwnd);
result = MA_ACTIVATE;
break;
@@ -4238,6 +4231,7 @@
INT e;
BOOL after_wrap;
+ SetFocus(es->hwndSelf);
if (!(es->flags & EF_FOCUSED))
return 0;
More information about the wine-devel
mailing list