2006-01-25 05:00 PM
2006-01-25 05:04 PM
2006-01-25 06:08 PM
2006-01-25 06:49 PM
2006-01-25 07:05 PM
Weston wrote:Try this:
yeah, I agree - but I have yet to be able to get a graphical hotspot to work, even following the GDL manual. I'll try grabbing code from another part, perhaps.
Wouldn't I still want to get the text in the right spot (using gdl) to begin with? I'm trying to reduce the work people have to do - if they have to enter text and then drag it around everytime, they might as well just use an actual text element. I agree that having it movable is good so one could account for oddities in the plan - it just has to start in the "right" place by default.
HOTSPOT2 txtA, 0, 4, txtB, 1+128 HOTSPOT2 txtA, -1, 5, txtB, 3 HOTSPOT2 txtA, txtB, 6, txtB, 2 HOTSPOT2 0, txtB, 7, txtA, 1+128 HOTSPOT2 -1, txtB, 8, txtA, 3 HOTSPOT2 txtA, txtB, 9, txtA, 2 TEXT2 txtA, txtB, subTextI am the Hotspot King... I have graphic hotspots in so many places my staff complains about anything that does not have them....
2006-01-25 07:21 PM
F. wrote:DUH... Thanks, FB.
Without testing it, but the DEFINE defines the style. The STYLE sets the style. If you want to measure the text, you have to set the style before!
2006-01-25 08:39 PM
TomWaltz wrote:so how does this work? check script gives me "txtA isn't a valid parameter name". Do I have to define those variables somewhere first?
Try this:HOTSPOT2 txtA, 0, 4, txtB, 1+128 HOTSPOT2 txtA, -1, 5, txtB, 3 HOTSPOT2 txtA, txtB, 6, txtB, 2 HOTSPOT2 0, txtB, 7, txtA, 1+128 HOTSPOT2 -1, txtB, 8, txtA, 3 HOTSPOT2 txtA, txtB, 9, txtA, 2 TEXT2 txtA, txtB, subText
2006-01-25 10:26 PM
DEFINE Style txt "Arial", txt_sz, 5, 0 SET STYLE txt txt_adj=.5*STW(mkr_ID)/1000*A_ Pen txt_pen ADD2 0, 12"+txt_adj !!!!12" moves the origin to the outside of the receptacle rot2 90 ! Y-direction HOTSPOT2 txtA, 0, 4, txtB, 1+128 HOTSPOT2 txtA, -1, 5, txtB, 3 HOTSPOT2 txtA, txtB, 6, txtB, 2 ! X-direction HOTSPOT2 0, txtB, 7, txtA, 1+128 HOTSPOT2 -1, txtB, 8, txtA, 3 HOTSPOT2 txtA, txtB, 9, txtA, 2 TEXT2 txtA, txtB, mkr_idThis should work and give you a hint.
2006-01-26 03:15 PM
2006-01-26 04:28 PM