I have noticed some issues with event names that I am trying to get a handle on. The main problem that I am having is that events that get fired have a different name then what is documented in the doxygen. For instance in Listbox it mentions that it has EventSelectionChanged, so based on previous experience I should register for a call back on SelectionChanged. But that does not work because looking at the code I noticed the real event name being called is ItemSelectionChanged. Also EventListContentsChanged maps to ListItemsChanged. Is this an oversight or designed to be that way?
Is there any documentation say in the wiki that might show what the real event names will be when running?
Judd
Event Naming issues.
Moderators: CEGUI MVP, CEGUI Team
Here is a list of events that are inconsistent with there names. I know it would break backwards compatiblity to fix them all, but it has been a major pain in my ass trying to figure out why some events don't seem to work and I am sure others will have the same problems in the future. I hope this helps.
Judd
----Renderer----
EventDisplaySizeChanged - DisplayModeChanged
----Window----
EventClippedByParentChanged - ClippingChanged
EventInputCaptureGained - CaptureGained
EventInputCaptureLost - CaptureLost
EventRenderingStarted - StartRender
EventRenderingEnded - EndRender
EventChildAdded - AddedChild
EventChildRemoved - RemovedChild
EventDestructionStarted - DestructStart
EventZOrderChanged - ZChanged
EventMouseEnters - MouseEnter
EventMouseLeaves - MouseLeave
----ComboDropList----
EventListSelectionAccepted - ListSelectionAccepted
----Combobox----
EventReadOnlyModeChanged - ReadOnlyChanged
EventTextInvalidated - TextInvalidatedEvent
EventEditboxFull - EditboxFullEvent
EventTextAccepted - TextAcceptedEvent
----Editbox----
EventReadOnlyModeChanged - ReadOnlyChanged
EventMaskedRenderingModeChanged - MaskRenderChanged
EventMaskCodePointChanged - MaskCPChanged
EventValidationStringChanged - ValidatorChanged
EventMaximumTextLengthChanged - MaxTextLenChanged
EventInvalidEntryAttempted - InvalidInputAttempt
EventCaratMoved - TextCaratMoved
EventTextSelectionChanged - TextSelectChanged
----ItemListBase----
EventListContentsChanged - ListItemsChanged
----ListHeader----
EventSegmentRenderOffsetChanged - SegmentOffsetChanged
----Listbox----
EventListContentsChanged - ListItemsChanged
EventSelectionChanged - ItemSelectionChanged
----MultiColumnList----
EventNominatedSelectColumnChanged - NomSelColChanged
EventNominatedSelectRowChanged - NomSelRowChanged
EventVertScrollbarModeChanged - VertBarModeChanged
EventHorzScrollbarModeChanged - HorzBarModeChanged
EventListContentsChanged - ContentsChanged
EventSortColumnChanged - SortColChanged
EventSortDirectionChanged - SortDirChanged
EventListColumnSized - ColSized
EventListColumnMoved - ColMoved
----MultiLineEditbox----
EventReadOnlyModeChanged - ReadOnlyChanged
EventEditboxFull - EditboxFullEvent
----Scrollbar----
EventScrollPositionChanged - ScrollPosChanged
----TabControl----
EventSelectionChanged - TabSelectionChanged
----Thumb----
EventThumbPositionChanged - ThumbPosChanged
Judd
----Renderer----
EventDisplaySizeChanged - DisplayModeChanged
----Window----
EventClippedByParentChanged - ClippingChanged
EventInputCaptureGained - CaptureGained
EventInputCaptureLost - CaptureLost
EventRenderingStarted - StartRender
EventRenderingEnded - EndRender
EventChildAdded - AddedChild
EventChildRemoved - RemovedChild
EventDestructionStarted - DestructStart
EventZOrderChanged - ZChanged
EventMouseEnters - MouseEnter
EventMouseLeaves - MouseLeave
----ComboDropList----
EventListSelectionAccepted - ListSelectionAccepted
----Combobox----
EventReadOnlyModeChanged - ReadOnlyChanged
EventTextInvalidated - TextInvalidatedEvent
EventEditboxFull - EditboxFullEvent
EventTextAccepted - TextAcceptedEvent
----Editbox----
EventReadOnlyModeChanged - ReadOnlyChanged
EventMaskedRenderingModeChanged - MaskRenderChanged
EventMaskCodePointChanged - MaskCPChanged
EventValidationStringChanged - ValidatorChanged
EventMaximumTextLengthChanged - MaxTextLenChanged
EventInvalidEntryAttempted - InvalidInputAttempt
EventCaratMoved - TextCaratMoved
EventTextSelectionChanged - TextSelectChanged
----ItemListBase----
EventListContentsChanged - ListItemsChanged
----ListHeader----
EventSegmentRenderOffsetChanged - SegmentOffsetChanged
----Listbox----
EventListContentsChanged - ListItemsChanged
EventSelectionChanged - ItemSelectionChanged
----MultiColumnList----
EventNominatedSelectColumnChanged - NomSelColChanged
EventNominatedSelectRowChanged - NomSelRowChanged
EventVertScrollbarModeChanged - VertBarModeChanged
EventHorzScrollbarModeChanged - HorzBarModeChanged
EventListContentsChanged - ContentsChanged
EventSortColumnChanged - SortColChanged
EventSortDirectionChanged - SortDirChanged
EventListColumnSized - ColSized
EventListColumnMoved - ColMoved
----MultiLineEditbox----
EventReadOnlyModeChanged - ReadOnlyChanged
EventEditboxFull - EditboxFullEvent
----Scrollbar----
EventScrollPositionChanged - ScrollPosChanged
----TabControl----
EventSelectionChanged - TabSelectionChanged
----Thumb----
EventThumbPositionChanged - ThumbPosChanged
Return to “Offtopic Discussion”
Who is online
Users browsing this forum: No registered users and 5 guests