Hello manuelBax,
following could be the steps to achieve such functionality:
1. Add a new component to your project.
2. Name it, e.g. LockScreen.
3. Open the component for editing.
4. Adjust the size of the component to fill the entire screen. For example, if your LCD has the resolution 320x240, adjust the size of the component to be 320x240.
5. Design the appearance of the component according to your needs. You can e.g. add an Image view and display in this view a Bitmap resource.
6. Add a Simple Touch Handler to the component.
7. Arrange the handler so it fills the entire component.
8. Add a slot method to the component.
9. Name it e.g. onTouch.
10. Assign the slot method to Simple Touch Handlers property OnPress.
11. Implement the slot method with following code:
if ( IsCurrentDialog())
{
rootthis.EndModal( this );
rootthis.DismissDialog( this, null, null, null, null, null, false );
}
12. When the device enters the lock mode, just present the component LockScreen as dialog and make it modal:
var Core::Group group = new Application::LockScreen;
rootthis.PresentDialog( group, null, null, null, null, null, null, null, null, false );
rootthis.BeginModal( group );
I hope it helps you further.
Best regards
Paul Banach