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 #2954 is a reply to message #2931] Mon, 01 May 2006 12:19 Go to previous messageGo to previous message
BenP is currently offline  BenP
Messages: 2
Registered: April 2006
Junior Member
Neither of the above examples worked Sad I will give snippets of my code in the hope it may help.
LookupTicket() is the function which shows the lookup dialog(see first post) and EditTicket(int ticket_id) will give me a dialog to update the ticket. The ticket_id parameter must be passed to the EditTicket function so it can get data for the correct ticket.
void Helpdesk::LookupTicket()
{
	WithLookupTicket<TopWindow> d;
	CtrlLayout(d, "Lookup Ticket");
	
	//This is the problem code
	d.TicketLookupBtn <<= THISBACK1(EditTicket, d.TicketLookupBox);
	//========================
	
	d.Run();
}

void Helpdesk::EditTicket(int ticket_id)
{
	WithEditTicket<TopWindow> d;
	CtrlLayout(d, "Edit Ticket");
	
	//Edit Ticket Code
	
	d.Run();
}
 
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: Fri May 10 19:19:12 CEST 2024

Total time taken to generate the page: 0.02815 seconds