Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Community » Newbie corner » menu Tree
Re: menu Tree [message #32378 is a reply to message #32377] Sat, 14 May 2011 10:41 Go to previous messageGo to previous message
nlneilson is currently offline  nlneilson
Messages: 644
Registered: January 2010
Location: U.S. California. Mojave &...
Contributor
I can't figure out how it can be done in Upp.

In Java
// This makes the menu item on a list

		clearMenuItem = new JRadioButtonMenuItem("Clear");
		clearCtrl.add(clearMenuItem);

// This concerns the action taken when clicked.
// If these lines are not included then there is just a line of text ("Clear")

		clearMenuItem.addActionListener(new java.awt.event.ActionListener() {
			public void actionPerformed(java.awt.event.ActionEvent evt) {
	    		try {
	    			ConnSock.sock("clear96");
				} catch (IOException e1) {}
			}
		});

This is what I am trying to do in Upp.
Just informative lines of text with no action, THISBACK, or Callback.


Maybe overloading bar.Add() to accept just one argument, the text, without the THISBACK.

[Updated on: Sat, 14 May 2011 11:00]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: [Printing] How to retrieve DPI, page size, etc
Next Topic: dll example errors when trying
Goto Forum:
  


Current Time: Sun Jun 08 22:36:08 CEST 2025

Total time taken to generate the page: 0.03900 seconds