Hi Ken Sorry, I forgot. Mac OS 9.2.1 right now. Perhaps I'm doing something wrong with the enable/disable routines? A menuitem will not work if it disabled right? Perhaps I'm sending the cmdkey to a disabled menu? Maybe I should be asking how one goes about correctly enabling/disabling various edit menu menuitems depending on the state of the cursor. Is it in a fld? is there text selected? is the clipboard text? etc. I've tried to cover these cases correctly, but perhaps I have them called in the wrong place, the menu's script?
Thanks Ron > > Ron, what platform(s) are you trying this on? > >> Hi All, >> >> I've worked on this all day and can't find the problem so I bring it to > you. >> I can't get the cut,copy,paste menuitems to work via cmd keys in my app. > I >> made a simple app with just those menus to make sure I was able to make > some >> app work and that worked okay, but my original app is still uncooperative. >> >> Here are my symptoms: >> Works when the items are chosen from the menubar with the mouse >> Works when the menubar is clicked so that the menu drops down (don't hold >> down the mousekey) and then the cmd key combo is chosen. >> It does not work when the cmd key combo is chosen. In fact, apparently, > the >> menupick message is not sent. I have a 'beep' command in the menupick >> message before the switch/case starts and another for the particular case >> and neither beeps. However, the menubar flickers at the 'Edit' menu. >> >> This is true for standalone and in UI suspended mode. >> >> I enable/disable these items in the mousedown handler for the menu > depending >> on whether there is text selected. The menu belongs to the mainstack which >> is a palette. Other substacks with textflds set their menubar to this >> menubar (it is also called as the default menubar when the mainstack is >> opened). >> >> A 'select all' menuitem in the same menu as cut,copy,paste does not have a >> problem activating with the cmd key. >> >> Any suggestions on what the problem might be or how I can look for it? >> >> Thanks >> Ron >> >> _______________________________________________ >> use-revolution mailing list >> [EMAIL PROTECTED] >> http://lists.runrev.com/mailman/listinfo/use-revolution >> > > _______________________________________________ > use-revolution mailing list > [EMAIL PROTECTED] > http://lists.runrev.com/mailman/listinfo/use-revolution > _______________________________________________ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
