Zum Inhalt springen

GMENU_LAYER

Erstellt am 28. April 2005 · 3 Antworten · letzte Antwort am 4. Mai 2005

Tags: Frage

Suse ·

Hallo,
Mein Menü funktioniert soweit.
Was stört, ist , dass die Untermenüs nicht immer an der selben Stelle aufklappen, also direkt daneben.
Wenn ich mit der Maus weiter links rüber fahre, öffnet das 2. Menü auch weiter links. Es soll sich aber fest daneben öffnen, egal wo ich mit der Maus das erste Menü berühre.
Hier mal mein TS

#################
# MENU_OBEN EBENE 1 #
#################

MENU_OBEN = HMENU
MENU_OBEN.special = directory
MENU_OBEN.special.value = 29
MENU_OBEN.1 = GMENU_LAYERS
MENU_OBEN.1 {

useLargestItemY=1
layerStyle = position:absolute;left:30px;top:230px;width:10px; VISIBILITY:hidden;
xPosOffset = -200
yPosOffset = -15
lockPosition = x
dontFollowMouse = true
dontHideOnMouseUp = 0
expAll=1
relativeToParentLayer=1

NO {
backColor = #CC0000
XY = [10.w]+50, 20
wrap =   |
10 = TEXT
10.text.field = title
10.offset = 1,15
10.fontSize = 13
10.fontColor = #000000
10.fontFile = fileadmin/fonts/arialbi.ttf
10.niceText = 1
}
RO < .NO
RO = 1
RO {
10.fontColor = #FFFFFF
}
ACT < .RO
}

#################
# MENU_OBEN EBENE 2 #
#################

MENU_OBEN.2 = GMENU_LAYERS
MENU_OBEN.2 {
layerStyle = position:absolute;width:10px; VISIBILITY:hidden;
xPosOffset = -60
yPosOffset = -200

lockPosition = y
dontFollowMouse=true
displayActiveOnLoad = 0
expAll = 1
NO {
backColor = |*| #C9C7C7 || #C9C7C7 |*|
XY = 140, 20
10 = TEXT
10.text.field = title
10.fontFile = fileadmin/fonts/arial.ttf
10.niceText = 1
10.fontSize = 14
10.offset = 5,13

20 = BOX
20.dimensions = 0,0,1,20
20.color = #000000

30 < .20
30.align = r

40 = BOX ||
40.dimensions = 0,0,140,1
40.color = #000000

50 = |*||*| || BOX
50.dimensions = 0,0,140,1

50.color = #000000
50.align = ,b

}

RO < .NO
RO = 1
RO {
backColor = #CC0000
}

}
#################
# MENU_OBEN EBENE 3 #
#################

MENU_OBEN.3 = GMENU
MENU_OBEN.3 {

NO {
backColor = |*| #C9C7C7 || #C9C7C7 |*|
XY = 140, 20
10 = TEXT
10.text.field = title
10.fontFile = fileadmin/fonts/arial.ttf
10.niceText = 1
10.fontSize = 14
10.offset = 5,13

20 = BOX
20.dimensions = 0,0,1,20
20.color = #000000

30 < .20
30.align = r

40 = BOX ||
40.dimensions = 0,0,140,1
40.color = #000000

50 = |*||*| || BOX
50.dimensions = 0,0,140,1
50.color = #000000
50.align = ,b
}
RO < .NO
RO = 1
RO {
backColor = #CC0000
}
}

Kann doch nur ein ganz einfacher Befehl sein.
Im Voraus DANKE

Suse ·

Hallo, bin endlich wieder zu Hause. Habe dein Tipp umgesetzt. Die Höhe des 2. Menü passt jetzt. Dafür wandert das 2. Menü solange mit der Maus nach rechts mit, bis ich aus dem Feld des 1. Menü raus bin. #evil#
Bekomme es nicht als festen Punkt hin.
Kann mir noch jemand einen Tipp geben ?

Moeffz ·

Schau mal in der TSRef nach lockPosition, dontFollowMouse und displayActiveOnLoad. Überlies nicht die Warnings.