private.homePageFrame - WIN

Class homePageFrame
Inherits from applicationFrame.

The homePageFrame class provides the system's Home page frame, and is privately defined in the win API.

Properties

title labelWindow Displays the desktop title.
list listWindow List of installed applications.
lock_btn
buttonWindow Button to lock screen.

Methods

See also API Reference, WIN.

private.homePageFrame:constructor

frame homePageFrame:constructor (dir, title)

Constructs and returns the instantiated home page frame window.

Parameters
dir
string Desktop directory under /win/devices.
title string The desktop title. If "" then "Home" is used.

Returns
frame homePageFrame The instantiated frame window.

Remarks


top


private.homePageFrame:load_list

homePageFrame:load_list ()

Fills the installed applications list from the desktop.ini file.

Parameters
none


Returns
none


Remarks


top


private.homePageFrame:on_event

result homePageFrame:on_event (event, p1, p2, p3, p4, p5, ...)

Implements control events.

Parameters
event string The event type.
p1 any First parameter to event or nil if not used.
p2 any Second parameter to event or nil if not used.
p3 any Third parameter to event or nil if not used.
p4 any Fourth parameter to event or nil if not used.
p5 any Fifth parameter to event or nil if not used.
...
any Any additional parameters.

Returns
result boolean True if handled, otherwise false.

Remarks
See window:on_event.


top


private.homePageFrame:on_frame_activate

homePageFrame:on_frame_activate (active)

If active, reloads the installed applications list and displays the lock screen button as required.

Parameters
active boolean True if made active, false if inactive.

Returns
none


Remarks
See parentFrame:on_frame_activate.


top


private.homePageFrame:on_quit

result homePageFrame:on_quit ()

Ensures the home page cannot be quit.

Parameters
none


Returns
result boolean Always true.

Remarks
See applicationFrame:on_quit.


top


private.homePageFrame:on_resize

result homePageFrame:on_resize ()

Resizes the frame and repositions the controls.

Parameters
none


Returns
result boolean Always true.

Remarks
See applicationFrame:on_resize.


top


See also API Reference, WIN.