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 » Extra libraries, Code snippets, applications etc. » U++ users applications in progress and useful code snippets, including reference examples! » Using value from EditInt
Re: Using value from EditInt [message #2936 is a reply to message #2935] Mon, 01 May 2006 00:05 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 14265
Registered: November 2005
Ultimate Member
forlano wrote on Sun, 30 April 2006 17:52

BenP wrote on Sun, 30 April 2006 21:15

Hi,
I have tried the following but with no success
d.TicketLookupBtn <<= THISBACK1(EditTicket, d.TicketLookupBox);


How do I use what is in the edit box and pass it to my function?


To get the data associated with the widget myWidget you can use the operator '~'. For example a = ~myWidget as showed above.
When you need to set some value use the operator '<<='. For example:
myWidget <<= data;
In your case I think you can use
d.TicketLookupBtn <<= THISBACK1(EditTicket,  ~d.TicketLookupBox);

Let us know if you resolved the problem.
Luigi


No, this is wrong - you would call EditTicket with TicketLookupBox value extracted at the moment of THISBACK1 creation, not the current value!

Mirek
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Batch processing images using U++ (new Image code)
Next Topic: mechatronic transmission project [was -Please, help me!]
Goto Forum:
  


Current Time: Mon Jul 07 10:40:25 CEST 2025

Total time taken to generate the page: 0.03356 seconds