int (__cdecl * FocusChanged)(PSI_CONTROL pc, LOGICAL bFocused); #define OnCommonFocus(name) \ DefineRegistryMethodP(PSI_PRELOAD_PRIORITY,PSI_ROOT_REGISTRY,FocusChanged,WIDE("control"),name WIDE("/rtti"),WIDE("focus_changed"),int,(PSI_CONTROL,LOGICAL))
bFocused will be true if control gains focus if !bFocused, control is losing focus.
Return type is actually void now. The below notes were for before.
Registers under
/psi/control/<name>/rtti/focus_changed=(PSI_CONTROL,LOGICAL)@void@_@focus_changed
static void OnCommonFocus(name)(PSI_CONTROL control, LOGICAL bFocused ) { // update control to show focus. Buttons draw a line under themselves, list boxes highlight // edit fields draw a cursor for entering text... }
Copyright (c) 2000+. All rights reserved.
|
What do you think about this topic? Send feedback!
|