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 » [solved] Widget events - any other than WhenAction ? (Trying to find equivalents of OnEnter, OnExit - in an Edit widget)
Re: Widget events - any other than WhenAction ? [message #52738 is a reply to message #52737] Fri, 15 November 2019 21:17 Go to previous messageGo to previous message
Oblivion is currently offline  Oblivion
Messages: 1094
Registered: August 2007
Senior Contributor
Hello Frank,

Quote:

Do I understand correctly that the Edit widgets (or any U++ widget, for that matter?) have just a single "hookable event", called the WhenAction ?


No, not really. WhenAction is the common event for all (well, almost all) widgets. Edit widgets, for example, have their own events too.

EditDouble (or other Editxxx variants) has:


Callback1<Bar&> WhenBar

This callback represents the context menu of EditField. The default is StdBar.


Callback WhenEnter

This callback is invoked if user presses Enter key while in EditField. If not empty, EditField also consumes Enter key (so that it is not passed up in Ctrl hierarchy). Default is empty.


Callback1<WString&> WhenPasteFilter

This callback is invoked when Paste operation is performed and can be used to alter the text to be pasted. Default is no change to the text.


Callback1<Vector<Highlight>&> WhenHighlight

Called by default implementation of HighlightText. Provides a chance to change the text color and background for individual characters.




Api docs page usually list them, but there might be some missing. IF you are using TheIDE, just type "When" into the navigator and it'll list all the events that are part of the classes in your project:

index.php?t=getfile&id=5939&private=0

Best regards,
Oblivion


[Updated on: Fri, 15 November 2019 21:21]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: App "swallowing" mouseclicks
Next Topic: no variables in debug mode
Goto Forum:
  


Current Time: Sun May 12 03:04:19 CEST 2024

Total time taken to generate the page: 0.02073 seconds