#Region Project Attributes
#ApplicationLabel: B4A Example
#VersionCode: 1
#VersionName:
'SupportedOrientations possible values: unspecified, landscape or portrait.
#SupportedOrientations: unspecified
#CanInstallToExternalStorage: False
#End Region
#Region Activity Attributes
#FullScreen: False
#IncludeTitle: True
#End Region
Sub Process_Globals
'These global variables will be declared once when the application starts.
'These variables can be accessed from all modules.
End Sub
Sub Globals
Dim arc1 As ArcMenu
End Sub
Sub Activity_Create(FirstTime As Boolean)
arc1.Initialize( Activity , Me , "arcm1" , LoadBitmap( File.DirAssets , "arrow-up.png") , Null , 60%x , 50%y )
arc1.SetAnimatedButtonDimensions(40dip ,40dip)
arc1.AddItem( LoadBitmap( File.DirAssets , "clipboard.png"))
arc1.AddItem( LoadBitmap( File.DirAssets , "compose.png"))
arc1.AddItem( LoadBitmap( File.DirAssets , "compose.png"))
End Sub
Sub arcm1_Click( position As Int )
ToastMessageShow("Item"&position , False )
End Sub
Sub Activity_Resume
End Sub
Sub Activity_Pause (UserClosed As Boolean)
End Sub
سوال
parham01 82
سلام خدمت دوستان عزیز
بنده از کد زیر برای ارک منو استفاده میکنم
#Region Project Attributes #ApplicationLabel: B4A Example #VersionCode: 1 #VersionName: 'SupportedOrientations possible values: unspecified, landscape or portrait. #SupportedOrientations: unspecified #CanInstallToExternalStorage: False #End Region #Region Activity Attributes #FullScreen: False #IncludeTitle: True #End Region Sub Process_Globals 'These global variables will be declared once when the application starts. 'These variables can be accessed from all modules. End Sub Sub Globals Dim arc1 As ArcMenu End Sub Sub Activity_Create(FirstTime As Boolean) arc1.Initialize( Activity , Me , "arcm1" , LoadBitmap( File.DirAssets , "arrow-up.png") , Null , 60%x , 50%y ) arc1.SetAnimatedButtonDimensions(40dip ,40dip) arc1.AddItem( LoadBitmap( File.DirAssets , "clipboard.png")) arc1.AddItem( LoadBitmap( File.DirAssets , "compose.png")) arc1.AddItem( LoadBitmap( File.DirAssets , "compose.png")) End Sub Sub arcm1_Click( position As Int ) ToastMessageShow("Item"&position , False ) End Sub Sub Activity_Resume End Sub Sub Activity_Pause (UserClosed As Boolean) End Subچند تا سوال داشتم
1 - چطوری میتونم اندازه ایتم هارو تغییر بدم
2 - به هر ایتم یک اکتیویتی بدم ممنون
لینک ارسال
به اشتراک گذاری در سایت های دیگر
3 پاسخ به این سوال تاکنون داده شده است
ارسالهای توصیه شده
بایگانی شده
این موضوع بایگانی و قفل شده و دیگر امکان ارسال پاسخ نیست.