# XML Drop down: Horizontal and color change?

**URL:** <https://forum.kirupa.com/t/xml-drop-down-horizontal-and-color-change/43072>\
**Category:** programming\
**Created:** [February 18, 2004, 3:30pm UTC](https://forum.kirupa.com/t/xml-drop-down-horizontal-and-color-change/43072 "2004-02-18T15:30:19Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![bchalker](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/bchalker/32/441_2.png) [@bchalker](https://forum.kirupa.com/u/bchalker)\
**Post date:** [February 18, 2004, 3:30pm UTC](https://forum.kirupa.com/t/xml-drop-down-horizontal-and-color-change/43072/1 "2004-02-18T15:30:19Z")

</div>

Hi,

Great site, tutorials and forum 🙂

question about the XML Drop Down tutorial:

1. How could this be made to be a horizontal menu with vertical drop downs (or pop-ups)?
2. Can the nav have rollOver colors specified in the XML file - allowing others to modify the colors as well as content?

Thank you.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 18, 2004, 4:23pm UTC](https://forum.kirupa.com/t/xml-drop-down-horizontal-and-color-change/43072/2 "2004-02-18T16:23:49Z")

</div>

1. A simple [search][/search] would lead you to this thread: [http://www.kirupaforum.com/forums/showthread.php?s=&threadid=44812&highlight=horizontal+XML](http://www.kirupaforum.com/forums/showthread.php?s=&threadid=44812&highlight=horizontal+XML) 😉

2. As you might be able to see in the code, the hover color is just a color applied with the Color object and setRGB. This can just as well be done in onPress for a down color as well. All you would need to do is to use a color from the XML file instead of one hardcoded into the script as it is now. Shouldnt be that hard if you understand the basics of the extraction of the properties from the XML file.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 18, 2004, 4:32pm UTC](https://forum.kirupa.com/t/xml-drop-down-horizontal-and-color-change/43072/3 "2004-02-18T16:32:05Z")

</div>

(Ahhhh - the cardinal rule…I’m not new to forums…honest…sorry guys 😊 )

Thanks so much senocular, and will be sure to stick with searching first 😉

Helps tremendously and a huge turn on to XML

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 18, 2004, 4:41pm UTC](https://forum.kirupa.com/t/xml-drop-down-horizontal-and-color-change/43072/4 "2004-02-18T16:41:34Z")

</div>

Don’t worry about it. Some people can pound you for not searching first; I try not to be too harsh though sometimes I can fail at that 😉

Welcome to the forums! 😃
