This is the gdl scrip i need to edit / add to. some how i can not seem to get it in there.
my gdl knowledge are not to great, i know the basics.
100:
! ==============================================================================
! Drawing title marker symbol
! ==============================================================================
! in:
! titleWidth:
! titleHeight:
! out:
! upperLineDx:
! middleLineDx:
! bottomLineDx
! ==============================================================================
if not(gs_show_symbol) then ! Off
bHaveMarkerData = 0
if iTitleConfig = 1 & (gs_show_drawing_number | gs_show_layout_number) then bHaveMarkerData = 1
if bHaveMarkerData then
if gs_symbol_style = mSymbolStyle[1] then ! Circle
middleLineDx = titleHeight
endif
if gs_symbol_style = mSymbolStyle[2] then ! Elliptoid
ovalRatio = 1.5
middleLineDx = ovalRatio * titleHeight
endif
if gs_symbol_style = mSymbolStyle[3] then ! Rectangular
middleLineDx = titleHeight
endif
if gs_symbol_style = mSymbolStyle[4] then ! Pentagonal
middleLineDx = pentX1 + pentX2
endif
upperLineDx = middleLineDx
bottomLineDx = middleLineDx
else
upperLineDx = 0
bottomLineDx = 0
middleLineDx = 0
endif
else
pen gs_symbol_pen
fill gs_symbol_fill
if gs_symbol_style = mSymbolStyle[1] then ! Circle
hotarc2 titleHeight / 2, -titleHeight / 2, titleHeight / 2, 0, 180
hotarc2 titleHeight / 2, -titleHeight / 2, titleHeight / 2, 180, 0
poly2_b 2, 7, gs_symbol_fill_fg, gs_symbol_fill_bg,
titleHeight / 2, -titleHeight / 2, 901,
titleHeight / 2, 360, 4001
upperLineDx = titleHeight / 2
middleLineDx = titleHeight
bottomLineDx = titleHeight / 2
endif
if gs_symbol_style = mSymbolStyle[2] then ! Elliptoid
ovalRatio = 1.5
mul2 ovalRatio, 1
hotarc2 titleHeight / 2, -titleHeight / 2, titleHeight / 2, 0, 180
hotarc2 titleHeight / 2, -titleHeight / 2, titleHeight / 2, 180, 0
poly2_b 2, 7, gs_symbol_fill_fg, gs_symbol_fill_bg,
titleHeight / 2, -titleHeight / 2, 901,
titleHeight / 2, 360, 4001
del 1
upperLineDx = ovalRatio * titleHeight / 2
middleLineDx = ovalRatio * titleHeight
bottomLineDx = ovalRatio * titleHeight / 2
endif
if gs_symbol_style = mSymbolStyle[3] then ! Rectangular
hotline2 0, 0, 0, -titleHeight
hotline2 titleHeight,0, titleHeight, -titleHeight
hotline2 0, 0, titleHeight, 0
hotline2 0, -titleHeight,titleHeight, -titleHeight
poly2_b 4, 7, gs_symbol_fill_fg, gs_symbol_fill_bg,
titleHeight, -titleHeight, 1,
titleHeight, 0, 1,
0, 0, 1,
0, -titleHeight, 1
upperLineDx = titleHeight
middleLineDx = titleHeight
bottomLineDx = titleHeight
endif
if gs_symbol_style = mSymbolStyle[4] then ! Pentagonal
alpha = ((5 - 2) * 180) / 5
pentSideL = titleHeight / 2 / sin(alpha / 2)
pentX1 = titleHeight / 2/ tan(alpha / 2)
pentX2 = pentSideL * cos(alpha - 90)
add2 pentX1 + pentX2, -titleHeight / 2
hotline2 0, 0, -pentX1, titleHeight / 2
hotline2 -pentX1, titleHeight / 2, -pentX1 - pentX2, pentSideL / 2
hotline2 -pentX1 - pentX2, pentSideL / 2, -pentX1 - pentX2, -pentSideL / 2
hotline2 -pentX1 - pentX2, -pentSideL / 2, -pentX1, -titleHeight / 2
hotline2 -pentX1, -titleHeight / 2, 0, 0
poly2_b 5, 7, gs_symbol_fill_fg, gs_symbol_fill_bg,
0, 0, 1,
-pentX1, titleHeight / 2, 1,
-pentX1 - pentX2, pentSideL / 2, 1,
-pentX1 - pentX2,-pentSideL / 2, 1,
-pentX1, -titleHeight / 2, 1
del 1
upperLineDx = pentX2
middleLineDx = pentX1 + pentX2
bottomLineDx = pentX2
endif
endif
return
I know i have to add it here and then again i have to add it in the Master Script.
".........dim mSymbolStyle[4]
mSymbolStyle[1] = `Circle`
mSymbolStyle[2] = `Elliptoid`
mSymbolStyle[3] = `Rectangular`
mSymbolStyle[4] = `Pentagonal` ......"
Somehow i always get stuck.