Re: [Fxruby-users] FXMenuCommands as options
Status: Inactive
Brought to you by:
lyle
From: Sander J. <sa...@kn...> - 2004-03-19 04:48:36
|
Although they don't use datatargets its a similar concept. The MenuCommand sends a SEL_UPDATE to its target, in this case the table and the table responds by sending a message back to the sender (the menucommand) to either check or uncheck himself. Sander On Thursday 18 March 2004 10:03 pm, Daniel Sheppard wrote: > I've been looking at the code for the sample program table.rbw, and the > following section is confusing me: > > # Options Menu > tablemenu = FXMenuPane.new(self) > FXMenuCommand.new(tablemenu, "Horizontal grid", nil, > @table, FXTable::ID_HORZ_GRID) > FXMenuCommand.new(tablemenu, "Vertical grid", nil, > @table, FXTable::ID_VERT_GRID) > FXMenuTitle.new(menubar, "&Options", nil, tablemenu) > > This creates the Options menu pane, and creates two buttons in it that > send the "ID_HORZ_GRID" and "ID_VERT_GRID" events to @table when they > are clicked. > > When the application is run, these two menu items have check-boxes next > to them. What is making these checkboxes appear? There's no events with > the menu items as targets. There's no calls to the "check" method. How > does this hang together? > ########################################################################### >########## This email has been scanned by MailMarshal, an email content > filter. > ########################################################################### >########## > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=Click > _______________________________________________ > Fxruby-users mailing list > Fxr...@li... > https://lists.sourceforge.net/lists/listinfo/fxruby-users -- "Nervous hands grip tight the knife In the darkness, till the cake is cut" - Peter Gabriel |