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 » U++ Library support » U++ Widgets - General questions or Mixed problems » WhenSelected callback to DropList
WhenSelected callback to DropList [message #26319] Sat, 24 April 2010 09:42 Go to previous message
Sc0rch is currently offline  Sc0rch
Messages: 99
Registered: February 2008
Location: Russia, Rubtsovsk
Member

Hello all!

I think, it will be good idea to add WhenSelected-callback to DropList.

My variant:
DropChoise.h
class DropList ...
...
Callback WhenSelected;
...


DropList.cpp
void DropList::Select() {
	int c = list.GetCursor();
	if(c >= 0)
		value = key[c];
	if(dropfocus)
		SetFocus();
	Sync();
	UpdateAction();
	WhenSelected.Execute();
}


Best regards,
Anton
 
Read Message
Read Message
Previous Topic: Images for disabled button in "Classic" style
Next Topic: QTF with QtfRichObject as Button label causes crash
Goto Forum:
  


Current Time: Sun May 05 23:12:33 CEST 2024

Total time taken to generate the page: 0.03054 seconds