در این ساعت از سایت می پردازیم به کار با کتابخانه TextSetting
کتابخانه و سورس پیوست شد .
کد های سورس و شات گیفت
دانلود سورس
#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 'These global variables will be redeclared each time the activity is created. 'These variables can only be accessed from this module. Private ScrollView1 As ScrollView Dim t As TextSetting Dim l As Label Dim F As Int Private Button1 As Button Private Label1 As Label End Sub Sub Activity_Create(FirstTime As Boolean) 'Do not forget to load the layout file created with the visual designer. For example: Activity.LoadLayout("1") t.Initialize 'l.Initialize("l") ScrollView1.Panel.LoadLayout("2") 'l.Text="111111111111112222222222222222223333333333333333333333333323333444444445555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555" Label1.Text="111111111111112222222222222222223333333333333333333333333323333444444445555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555" 'ScrollView1.Panel.AddView(l,0+10dip,0,100%x-200dip,100%y) Label1.TextSize=20 F=20 Start End Sub Sub Activity_Resume End Sub Sub Activity_Pause (UserClosed As Boolean) End Sub Sub Start t.LongText(Label1,Label1.Text,F,ScrollView1,1.5) ' l.Color=Colors.Transparent ScrollView1.Color=Colors.Transparent ' l.TextColor=Colors.Green End Sub Sub Button1_Click F=F+5 Start End Sub