[Mono-bugs] [Bug 410709] New: System.Windows.Forms. LinkLabel LinkArea behaves different compared to .Net
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Sun Jul 20 04:16:53 EDT 2008
https://bugzilla.novell.com/show_bug.cgi?id=410709
Summary: System.Windows.Forms.LinkLabel LinkArea behaves
different compared to .Net
Product: Mono: Class Libraries
Version: SVN
Platform: All
URL: http://www.zonefivesoftware.com/SportTracks/Forums/viewt
opic.php?t=2557&start=0&postdays=0&postorder=asc&highlig
ht=&sid=6fc5a3a2db4c29830fe88d755b3ee5e4
OS/Version: Other
Status: NEW
Severity: Normal
Priority: P5 - None
Component: Windows.Forms
AssignedTo: mono-bugs at lists.ximian.com
ReportedBy: offer at zingo.org
QAContact: mono-bugs at lists.ximian.com
Found By: Third Party Developer/Partner
System.Windows.Forms.LinkLabel LinkArea behaves different compared to .Net
In one program I tried in mono called SportTracks
( avalible on [1] )
It uses
System.Windows.Forms.LinkLabel.set_LinkArea()
two times and the second time the first set is still avalible.
e.g.
It calls
System.Windows.Forms.LinkLabel.set_LinkArea()
fragment1: with start 3 lenght 3
fragment2: with start 3 lenght 19
later it CheckLinks() mono detect this and bails out, the same code
works under .Net After some investigation (with the help of the author of
SportTrack)
it was found out that
System.Windows.Forms.LinkLabel.set_LinkArea()
should delete the previus entered set but in mono every set is put into the
list of fragments. If one reads M$ info at [2] it is kind of non spesific of
what it means here:
<qoute>
If you only need to add a single hyperlink to the text of the control, you can
use the LinkArea property of the LinkLabel. This property accepts a LinkArea
that defines the location of the hyperlink within the control's text. When a
hyperlink is specified using the LinkArea property, the link area is then added
to the LinkLabel..::.LinkCollection in the same manner as adding the link using
the Add method of the LinkLabel..::.LinkCollection.
</qoute>
The term of single hyperlink but set two times is not defined in a clear way,
anyway mono and .Net behaves differently if this is that .Net do not detect the
overlapping or if .Net deletes the first fragment when it is set again I do not
know.
If anyone want to check to start SporTrack you get the problem during startup
so it is easy to verify. Some anylysis is also avalible in the sporttrack
mailing list [3]
References
[1] http://www.zonefivesoftware.com/SportTracks
[2] http://msdn.microsoft.com/en-us/library/system.windows.forms.linkarea.aspx
[3]
http://www.zonefivesoftware.com/SportTracks/Forums/viewtopic.php?t=2557&start=0&postdays=0&postorder=asc&highlight=&sid=6fc5a3a2db4c29830fe88d755b3ee5e4
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
More information about the mono-bugs
mailing list