john
this is the script that i used the label works fine in its calculation but
remains fixed on the home story
IF GLOB_CH_STORY_DIST <=3 THEN GOSUB 10
END
10:
IF glob_context=1 THEN
label_font_name="Arial"
label_text_size=2.5
label_font_style=0
label_text_pen=3
anch=1
ENDIF
DEFINE STYLE "textstyle" label_font_name,
label_text_size, anch, label_font_style
SET STYLE "textstyle"
height=J_
brkht=(600/7)*.001
Course=height/brkht
Brk=INT (Course+0.5)
h=INPUT_HT+ffl
DEFINE STYLE 'TXT' 'ARIAL NARROW WESTERN',2.5,4,0
SET STYLE 'TXT'
h=STR((height+ffl),5,3)
Brkh = str(brk,5,0)
stringLength=stw( " FFL" +Brkh +'c ' +'( ' +h +' ) ')/1000*A_
add2 0,0.25/2
add2 -stringLength/2,0
TEXT2 0.1,0, "FFL"+Brkh +'c ' +'( ' +h +' )'
PEN 15
del 1
RECT2 -stringLength/2,-0.3,stringLength/2,0.3
HOTSPOT2 -stringLength/2,-0.3
HOTSPOT2 -stringLength/2,0.3
HOTSPOT2 stringLength/2,-0.3
HOTSPOT2 stringLength/2,0.3
RETURN