Export Gui Problem - Pls Help

Hi all.
I'm working on a GUI which I make using MEL for my Maya Plugin.
Currently I'm doing quite ok I guess (although sometimes I get pretty mad at MEL ^^; )

The problem I'm facing now is I don't know how to find out (using MEL) whether the user has selected "Export All" or "Export Selection" for the scene.
Because the plugin-specifc UI that I created is put under the "File Specific Options" section in both Export window, but I want to have a different UI display for each "Export All" and "Export Selection".

Can anyone advice me on this? It might be a simple problem, I don't know

first up,
i assume that you're talking about the "export all/selected" -optionBox GUI??
the layouts involved have different names, you know?

so,
my approach would be to query, if a certain layout is visible/present, that only exists in one case, but not in the other; here's what i found:

CODE
{

  string $allLayouts[] = lsUI -typ "controlLayout";
  if(stringArrayContains "exportActiveIncludeLayout" $allLayouts == 1)
    print ("\n\/\/ ++++++++++++++++++++++++++++++++++++++++++++++++++++\n\ncase: Export Selected!!\n\n\/\/ ++++++++++++++++++++++++++++++++++++++++++++++++++++\n");
  else
    print ("\n\/\/ ++++++++++++++++++++++++++++++++++++++++++++++++++++\n\ncase: Export All!!\n\n\/\/ ++++++++++++++++++++++++++++++++++++++++++++++++++++\n");
}

HIH
s.

Yes! That is exactly what I need! Thank you so much ^^

I initially thought I could get something from the $parent (which points to the fileOptionScroll) but it was the same for both when I printed it out..

So yeah, this newbie just learned something big, thank you