New topic: How can I display the menuitems of a BevelButton programatic
<http://forums.realsoftware.com/viewtopic.php?t=30506> Page 1 of 1 [ 2 posts ] Previous topic | Next topic Author Message lenpartico Post subject: How can I display the menuitems of a BevelButton programaticPosted: Thu Oct 15, 2009 5:44 pm Joined: Fri Sep 30, 2005 10:49 pm Posts: 149 Hello, I have an editfield and when a mousedown is done in that editfield, it checks for myBevelButton.caption and if myBevelButton.caption = "Select" a messagebox would come up "Please make the appropriate selection in the Select button then try again". How could I drop down the menu in addition to showing the message? Thanks. Lennox. Top Phil M Post subject: Re: How can I display the menuitems of a BevelButton programaticPosted: Fri Oct 16, 2009 2:04 am Joined: Fri Sep 30, 2005 12:18 pm Posts: 108 Any type of window or dialog box will close the Menu. I have not had a chance to try it yet, but REALbasic 2009r4 introduced a new thing called a Tooltip class... it might work for what you want. Another idea... One of the things I do in my form based windows, if some data is required, I check for it when the user clicks OK or Next (depending on the form). Then I bold and stylize the StaticText label for the control to be red, and put a message on the bottom of the window (next to the OK button), "Please fill out the required items." In a way it performs similar to the way web-based forms are validated before being accepted by the server. Just keep in mind that you don't necessarily want to invent some new behavior when existing techniques can work as well. Not only does it save you headaches getting it implemented, but users are more likely to accept your application if it behaves as expected compared to other applications. While you COULD, what you do not want to do is use your LostFocus event to set the Focus to the control that you want to force the user to make a selection... this is obtrusive behavior and may give a bad impression about your application and your company. Just saying that just because we CAN do something doesn't mean that we should. Best thing to do if you aren't sure if a customer would like something... get your friends / neighbors etc to look at it and give their opinion... and the less computer experienced they are, the better the feedback they can give. For example, I know that if my mom can figure out my application and understand what its useful for, then almost anyone can. Top Display posts from previous: All posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost timeSubject AscendingDescending Page 1 of 1 [ 2 posts ] -- Over 1500 classes with 29000 functions in one REALbasic plug-in collection. The Monkeybread Software Realbasic Plugin v9.3. http://www.monkeybreadsoftware.de/realbasic/plugins.shtml [email protected]
