#Region Activity Attributes
#FullScreen: False
#IncludeTitle: True
#End Region
#Extends: android.support.v7.app.AppCompatActivity
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 Label1 As Label
Private ScrollView1 As ScrollView
Dim lbl As Label
Dim ts As TextSetting
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("context")
menumaf2.cs=menumaf2.sq.ExecQuery("SELECT * FROM jomle WHERE tag="&menumaf.TAG)
menumaf2.cs.Position = menumaf2.val
lbl.Initialize("")
lbl.Text = menumaf2.cs.GetString("text")
lbl.TextColor = Colors.Black
lbl.TextSize = 16
lbl.Gravity = Gravity.RIGHT
ts.Initialize
ScrollView1.Panel.AddView(lbl,5%x,0,95%x,100%y)
ts.LongText(Label1,lbl.Text,lbl.TextSize,ScrollView1,1.5)
menumaf2.cs.Close
End Sub
سوال
2278514 2
سلام لیبل من اسکرول میشه ولی متن نصف و نیمه نشون داده میشه من لینک سورسم رو میزارم خواهش میکنم کمکم کنید کدهای مربوط درون اتیویتی context هستند
لینک سورس من doa2
این هم از کدهایی که در اتیویتی context گذاشتم
#Region Activity Attributes
#FullScreen: False
#IncludeTitle: True
#End Region
#Extends: android.support.v7.app.AppCompatActivity
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 Label1 As Label
Private ScrollView1 As ScrollView
Dim lbl As Label
Dim ts As TextSetting
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("context")
menumaf2.cs=menumaf2.sq.ExecQuery("SELECT * FROM jomle WHERE tag="&menumaf.TAG)
menumaf2.cs.Position = menumaf2.val
lbl.Initialize("")
lbl.Text = menumaf2.cs.GetString("text")
lbl.TextColor = Colors.Black
lbl.TextSize = 16
lbl.Gravity = Gravity.RIGHT
ts.Initialize
ScrollView1.Panel.AddView(lbl,5%x,0,95%x,100%y)
ts.LongText(Label1,lbl.Text,lbl.TextSize,ScrollView1,1.5)
menumaf2.cs.Close
End Sub
Sub Activity_Resume
End Sub
Sub Activity_Pause (UserClosed As Boolean)
End Sub
لینک ارسال
به اشتراک گذاری در سایت های دیگر
3 پاسخ به این سوال تاکنون داده شده است
ارسالهای توصیه شده
بایگانی شده
این موضوع بایگانی و قفل شده و دیگر امکان ارسال پاسخ نیست.