473,583 Members | 2,858 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

menus and submenus

N002199B
41 New Member
Hie Guru's

I am trying to write code that can be re-used by simple calls to build menus and submenus on mobile devices.

I have heard about the cascading menus design pattern, but do not understand it. I hear it can be a solution and read this document at Big Designs for small devises .

It seems good, but i still cannot start building menus and submenus in j2me.

Can anyone shed some light as to how to best go about this

Regards
Jan 27 '08 #1
2 3061
markmcgookin
648 Recognized Expert Contributor
Hie Guru's

I am trying to write code that can be re-used by simple calls to build menus and submenus on mobile devices.

I have heard about the cascading menus design pattern, but do not understand it. I hear it can be a solution and read this document at Big Designs for small devises .

It seems good, but i still cannot start building menus and submenus in j2me.

Can anyone shed some light as to how to best go about this

Regards

In .Net you can create a menu item with the following code, and add it to the main menu, MainMenu1

Expand|Select|Wrap|Line Numbers
  1. MenuItem menuItemx = new MenuItem();
  2. menuItemx.Text = "123";
  3. mainMenu1.MenuItems.Add(menuItemx);
  4.  
Jan 28 '08 #2
N002199B
41 New Member
In .Net you can create a menu item with the following code, and add it to the main menu, MainMenu1

Expand|Select|Wrap|Line Numbers
  1. MenuItem menuItemx = new MenuItem();
  2. menuItemx.Text = "123";
  3. mainMenu1.MenuItems.Add(menuItemx);
  4.  
that may be true in .Net, but I wonder if it works in j2me. I am trying to do it in J2ME, and I am thinkinking of actually handling the drawing code myself instead of using the list and other such lcdui classes.

I hope I am clear, and am willing to be corrected
Jan 28 '08 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

1
11320
by: Venkatesh | last post by:
Hi Everybody, This is the first timw I am entering into this Group. I am developing a VB Project with an MDI form. I want to display IE Favorites into my application. For this I need to create Submenus and Menuitems dynamically. It is possible to create menus using array index. But if I have multiple folders and files in Favorites then...
7
2712
by: Marci | last post by:
I found this script for cascading menus, however, I cannot reach the author to solve the bug I am having when I add a second menu to it. My problem is this: If I click on the first link, the menu displays well. If I then click on the second link, the first menu from the first link still displays. How do I get make the first menu...
1
2330
by: paula | last post by:
I've got a problem with asp.net i am trying to make a menu control. and have searched the web for serveral controls but they don't work correctly. I am pretty new to asp.net building. What am i looking for. i am looking for code to make a dynamical menu with submenus The menu items are stored in a MS SQL Table and when by loading the page...
4
1450
by: Bratislav Jevtic | last post by:
hi, we developed an application having server-side menus. however, I'm interested for: 1. some nice client side drop down menus. ideal solution would be something like windows menus in desktop applications (menus, submenus, check box items, etc) but working in JavaScript. 2. if I select something on client side menu (JavaScript), how...
1
3210
by: paulakeijzers | last post by:
I've got a problem with asp.net i am trying to make a menu control. and have searched the web for serveral controls but they don't work correctly. I am pretty new to asp.net building. What am i looking for. i am looking for code to make a dynamical menu with submenus The menu items are stored in a MS SQL Table and when by loading the page the...
14
3974
by: axlq | last post by:
I am trying to figure out what is the minimal simplest CSS I can have to accomplish a row of tabs, with one or more tabs having a drop-down menu when you hover over it -- AND the whole tab+menu markup must consist of only nested unordered lists. I don't care if the hover-dropdown part fails to works in IE -- if not, the tabs are still...
4
5210
by: DDmUSA | last post by:
I am using a CSS-based glossy menu that I found on Dynamic Drive. Using Internet Explorer 7, the sub-menus appear towards the right once the mouse is pointing over the top level. Using Firefox, all of the sub-menus appear all at once as a bulleted and indented list. Is there any way to have Firefox appear identical to Internet Explorer 7? ...
2
1645
by: bnashenas1984 | last post by:
Hi everyone I have a table in MySQL which contains menus and submenus. Table : + ID + Parent ID + Name + | 1 | 0 | Computer | | 2 | 0 | furniture | | 3 | 1 | Software | | 4 | 1 | Hardware |
0
8159
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8185
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6571
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5689
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5366
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3811
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3836
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2317
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
1147
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.