How do I control the labeling of a segment?

Bug #1796560 reported by hilaire on 2018-10-07
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Dr. Geo II
Wishlist
Hannes Hirzel

Bug Description

How to control it programmatically in Smalltalk sketch?

Full request:
http://forum.drgeo.eu/How-do-I-control-the-labeling-of-a-segment-tp4025436.html

Related branches

Changed in drgeo:
status: Confirmed → Fix Committed
hilaire (hilaire-fernandes) wrote :

See how to move the label position with a delta from the reference point.

| c ptA|
c := DrGeoCanvas new.
ptA := c point: 0@0.
ptA costume computeTextPositionDelta: 25@ -25.

Use the #constraintTextPosition: message to provide coordinates position, but it is tricky to use at it requires pixel position.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers