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 » LineEdit event on click on scrollbar
Re: LineEdit event on click on scrollbar [message #38966 is a reply to message #38965] Thu, 31 January 2013 02:04 Go to previous messageGo to previous message
navi is currently offline  navi
Messages: 107
Registered: February 2012
Location: Sydney, Australia
Experienced Member
There is Virtual Method NewScrollPos() can be overloaded and which can then be used to call a callback WhenScrollChange. setting WhenScrollChange from main app can be used to trace scrollchange.

scrollclick can be implemented probably with a more elaborate derived class forwarding leftclick event of sb object member of LineEdit class.

#include <CtrlLib/CtrlLib.h>

using namespace Upp;

class LineEditExtended : public LineEdit{
	public:
		virtual void NewScrollPos(){ WhenScrollChange();}
		Callback WhenScrollChange;
		
};




regards
navi
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: How to use StringStream?
Next Topic: Do I still need the SVO_VALUE flag the use small value optimization?
Goto Forum:
  


Current Time: Sun May 12 14:15:06 CEST 2024

Total time taken to generate the page: 0.02375 seconds