Steve Garman
unread,Jan 11, 2016, 11:33:46 PM1/11/16Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to DroidScript
They are just examples, Manuel.
The idea is to write your own code.
I assume what you want to do something like the code below. Sometimes it is quicker to try something than to ask a question.
app.LoadPlugin( "UIExtras" );
function OnStart()
{
uix = app.CreateUIExtras();
layFam = app.CreateLayout( "Linear", "FillXY, Bottom, Right, TouchThrough" );
fam = uix.CreateFAMenu( "[fa-envelope-o]", "Up,LabelsLeft" );
fam.SetMargins( 0.02, 0.01, 0.02, 0.01 );
fam.SetLabelBackColor( "#FFFFFF" );
fam.SetLabelTextColor( "#646464" );
fam.SetOnOpened( fam_OnOpened );
fam.SetOnClosed( fam_OnClosed );
layFam.AddChild( fam );
fabReply = uix.CreateFAButton( "[fa-reply]", "Mini" );
fabReply.SetButtonColors( "#db4437", "#c33d32" );
fabReply.SetOnTouch( fab_OnMailReply );
fabReply.SetLabel( "Reply" );
fam.AddFAButton( fabReply );
fabReplyAll = uix.CreateFAButton( "[fa-reply-all]", "Mini" );
fabReplyAll.SetButtonColors( "#db4437", "#c33d32" );
fabReplyAll.SetOnTouch( fab_OnMailReplyAll );
fabReplyAll.SetLabel( "Reply All" );
fam.AddFAButton( fabReplyAll );
fabForward = uix.CreateFAButton( "[fa-share]", "Mini" );
fabForward.SetButtonColors( "#fbbc05", "#efb306" );
fabForward.SetOnTouch( fab_OnMailForward );
fabForward.SetLabel( "Forward" );
fam.AddFAButton( fabForward );
lay = app.CreateLayout( "Linear", "FillXY" );
lay.SetBackground( "/Sys/Img/GreenBack.png" );
app.AddLayout( lay );
app.AddLayout( layFam );
}
function fam_OnOpened()
{
layFam.SetBackColor( "#99FFFFFF" );
}
function fam_OnClosed()
{
layFam.SetBackColor( "#00FFFFFF" );
}
function fab_OnMailReply()
{
app.ShowPopup( "Reply" );
}
function fab_OnMailReplyAll()
{
app.ShowPopup( "Reply All" );
}
function fab_OnMailForward()
{
app.ShowPopup( "Forward" );
}