|
From: Michael K. <mi...@mu...> - 2005-02-04 14:01:27
|
I've applied a fix in CVS. It doesn't fix all the XDrawLine issues, but=20
using XFillRectangle works instead for the cursor. If you're building=20
from sources, in case the non-dev CVS doesn't have it yet, try this patch=
=20
to generic/entry.c:
1374,1378c1374,1377
< while (insertWidth--) {
< XDrawLine(Tk_Display(tkwin), d, gc,
< x,y, x,y + entryPtr->entry.layoutHeight);
< ++x;
< }
---
> XFillRectangle(Tk_Display(tkwin), d, gc, x, y, insertWidth,
> entryPtr->entry.layoutHeight);
>
> Tk_FreeGC(Tk_Display(tkwin), gc);
I've tested it on Aqua, Windows 98 and FreeBSD and it seems to work fine.
On Fri, 4 Feb 2005, Kevin Walzer wrote:
> Date: Fri, 04 Feb 2005 08:15:31 -0500
> From: Kevin Walzer <sw...@wo...>
> To: tkt...@li...
> Subject: Re: [Tile-dev] Re: [ tktable-Bugs-1115785 ] TEntry missing curso=
r OS
> X Aqua
>=20
> I get this behavior consistently in my Mac Tile application (VuMan) as we=
ll. I am considering aliasing ttk::entry to a normal tk entry widget and se=
eing if that solves the problem. Users have complained about the lack of a =
cursor.
>
>
> On 2005-02-04 02:57:27 -0500 Alexander Sch=F6pe <sc...@us...=
e.net> wrote:
>
>> Just my results:
>>
>> () 1 % package require tile
>> 0.6
>> () 2 % ttk::entry .e
>> ..e
>> () 3 % pack .e
>> () 4 % .e configure -insertcolor
>> -insertcolor insertColor Foreground {} {}
>> () 5 % .e configure -insertcolor #FF0000 -insertwidth 5
>> () 6 %
>>
>> The cursor doesn't apper while typing into the widget.
>> I can't see a red cursor.
>>
>> Regards,
>> Alex
>>
>> Am 04.02.2005 um 04:51 schrieb SourceForge.net:
>>
>>> Bugs item #1115785, was opened at 2005-02-03 14:02
>>> Message generated for change (Comment added) made by jenglish
>>> You can respond by visiting:
>>> https://sourceforge.net/tracker/?
>>> func=3Ddetail&atid=3D111464&aid=3D1115785&group_id=3D11464
>>>
>>> Category: tile
>>> Group: None
>>> Status: Open
>>> Resolution: None
>>> Priority: 5
>>> Submitted By: Alexander Schoepe (schoepe)
>>>> Assigned to: Michael Kirkham (muonics)
>>> Summary: TEntry missing cursor OS X Aqua
>>>
>>> Initial Comment:
>>> I have installed Tcl/Tk BI 8.4.9 on Mac OS X 10.3.7
>>> Check this out:
>>>
>>> () 1 % package require tile
>>> 0.6
>>> () 2 % ttk::entry .e
>>> .e
>>> () 3 % pack .e
>>>
>>> There will be no insert cursor in the TEntry widget.
>>>
>>> You can "focus -force .e" or click in the widget the fuzzy blue
>>> highglight border will be display but no cursor
>>>
>>> ----------------------------------------------------------------------
>>>
>>>> Comment By: Joe English (jenglish)
>>> Date: 2005-02-03 19:51
>>>
>>> Message:
>>> Logged In: YES
>>> user_id=3D68433
>>>
>>> Does the cursor appear if you type stuff into the entry?
>>> *Can* you type stuff into the entry? What does [.e
>>> configure -insertcolor] return? If you use [.e configure
>>> -insertcolor #FF0000 -insertwidth 5], does anything appear?
>>> (Should see a very thick blinking red cursor).
>>>
>>> It's possible that when the insert cursor is at the left
>>> edge of the field, it's overwritten by the entry border.
>>> That's all I can think of ...
>>>
>>> Lastly, Michael, could you investigate this? I'm presently
>>> Macless....
>>>
>>> ----------------------------------------------------------------------
>>>
>>> You can respond by visiting:
>>> https://sourceforge.net/tracker/?
>>> func=3Ddetail&atid=3D111464&aid=3D1115785&group_id=3D11464
>>>
>>
>>
>>
>> -------------------------------------------------------
>> This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
>> Tool for open source databases. Create drag-&-drop reports. Save time
>> by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
>> Download a FREE copy at http://www.intelliview.com/go/osdn_nl
>> _______________________________________________
>> Tktable-tile-dev mailing list
>> Tkt...@li...
>> https://lists.sourceforge.net/lists/listinfo/tktable-tile-dev
>>
>>
>>
>
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
> Tool for open source databases. Create drag-&-drop reports. Save time
> by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
> Download a FREE copy at http://www.intelliview.com/go/osdn_nl
> _______________________________________________
> Tktable-tile-dev mailing list
> Tkt...@li...
> https://lists.sourceforge.net/lists/listinfo/tktable-tile-dev
>
--
Michael Kirkham
www.muonics.com |