Access functionality of up/down buttons at runtime

I read DDemon comment and got distracted. I think this is not about zOrder at all! ;p The pic does look somewhat relevant, though.