forums.silverfrost.com Forum Index forums.silverfrost.com
Welcome to the Silverfrost forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

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

 
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> ClearWin+
View previous topic :: View next topic  
Author Message
Rainer



Joined: 13 Mar 2006
Posts: 43

PostPosted: Wed Oct 25, 2006 5:15 am    Post subject: Different file selection commands in one "%mn" men Reply with quote

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
Back to top
View user's profile Send private message
Rainer



Joined: 13 Mar 2006
Posts: 43

PostPosted: Wed Oct 25, 2006 7:51 am    Post subject: Different file selection commands in one "%mn" men Reply with quote

Never mind, I figured it out. Smile

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
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> ClearWin+ All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group