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 » "Enter" code
Re: "Enter" code [message #37328 is a reply to message #37325] Sat, 22 September 2012 19:48 Go to previous messageGo to previous message
nlneilson is currently offline  nlneilson
Messages: 644
Registered: January 2010
Location: U.S. California. Mojave &...
Contributor
Hi Koldo

SysInfo is a good link.
But that is what info can be obtained.

What I was trying to find is something that was equivalent to pressing "Enter" but with a mouse click.

First I realized there must be something to click on.

A left click gives the EditField scope and places the cursor in the characters.
A right click brings up options.
Without getting into a center click something else needed to be clicked.

Then pressing "Enter" in U++ is:
    	if (key == K_RETURN && Point1.HasFocus()) {
            Point1Action();
	        return true;
    	}

then the action:

    void Point1Action() {    // Point1 is an edit field
		if (~Point1 != ""){
			Ln = ~Point1;
			Ln = parseLatLon(Ln);



So an EditField P1 for one character like < then
    	if (Mouse_LeftClick() && P1.HasFocus()) {
            Point1Action();
	        return true;
    	}


I will try this and see if it will work.

It has been a few years since doing this and then it was in java

Thanks Koldo

[Updated on: Sat, 22 September 2012 20:07]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Skylark Compilation
Next Topic: How do I change the cursor to a wait state?
Goto Forum:
  


Current Time: Fri Jul 18 23:17:04 CEST 2025

Total time taken to generate the page: 0.04048 seconds