3.3.1 Window View Interfaces
interface | |||
|
Create a WindowView using classes like Button, Canvas, and VPanel,
interface | |||
|
Create a WindowView using Window or Dialog.
The result rendered should be destroyed using Renderer.destroy. Otherwise, the underlying GUI objects may be retained, especially via registrations with observables.
method | |
|
If a window is being shown via wv.run(), then hiding the window with wv.show(#false) will not cause wv.run() to complete. Use wv.close() to close the window.
method | ||||
| ||||
| ||||
method | ||||
|
method | |||||
|
class | |||||||||||||||
|
accepts_drop_file: Determines whether the view accepts drag-and-drop files.
drop_file: Called when the view receives a drag-and-drop file (when enabled).
focus: Called when the view gains or loses the keyboard focus, where the callback argument indicates whether the focus was gained.
move: Called when the view changes position relative to its parent. The callback arguments indicate the new horizontal and vertical positions. This callback is mostly useful for Window or Dialog views.
size: Like move, but called when the view changes size. The callback arguments indicate the new horizontal and vertical size.
sub_key: Call when a key event is to be delivered to the view or a view that it contains. If the result is a true value, then the event is considered handled and not propagated further. The first argument is the view whose (rendered form) is to receive the event if it is propagated.
sub_mouse: Call when a mouse event is to be delivered to the view or a view that it contains. If the result is a true value, then the event is considered handled and not propagated further. The first argument is the view whose is to receive the event if it is propagated.
sub_focus: Call when the view or a view that it contains gains or loses the keyboard focus. The first argument is the view whose changed focus, and the second argument is true if it gained the focus.
super_activate: Call when the view’s enclosing window has become the active window for keyboard focus or lost that status. The callback argument is true when the window became the active window.
super_enable: Called when the enable state of the view or an enclosing view changes. The callback argument indicates the new enable state
super_show: Called when the visibility of the view or an enclosing view changes. The callback argument is true when the view becomes shown.