Silverfrost Forums

Welcome to our forums

Different file selection commands in one "%mn" menu ?

25 Oct 2006 4:15 #1166

Is there a way to have different file selection commands for two menu items in the same '%mn' structure ?

E.g.

integer :: wint integer, external :: load_file_type_a, load_file_type_b

wint = winio@('%mn[Load files[Load file type a, Load file type b]]', load_file_type_a, load_file_type b)

Where to fit in the '%fs' and '%ft' commands here ? I can't insert them into the '%mn' command to apply separately to file types a and b. But if I write them both before the above line, the second one will just replace the first one and then apply to both menu items.

Thanks Rainer

25 Oct 2006 6:51 #1167

Never mind, I figured it out. 😃

For reference to other users: You can continue an (otherwise closed) menu by leaving away the headline in the continuation command, like

wint = winio@('%mn[Load files[Load file type a]]&', load_file_type_a) wint = winio@('%mn[[Load file type b]]&', load_file_type_b)

Note the missing headline label in the second line !

This way you can fit in the needed '%fs' and '%ft' commands between these lines, as the two '%mn' are now separate commands, yet constitute only one submenu.

Rainer

Please login to reply.