Turn off mark text.

volvomann

Active Member
Licensed User
Longtime User
Hallo i use a editext with verry long text for help in my app, when i do a long press at the textbox can i marke the text, copy and delete. the input is set to none. Can I turn off this function.
 

volvomann

Active Member
Licensed User
Longtime User
Hallo how can i get an label parent with the scrolwiev, when i try to do that in designer the label get parent to activity.
 
Upvote 0

Mahares

Expert
Licensed User
Longtime User
The scrollview has an inner panel you can add a label to programmatically. Here is a small example:

B4X:
Dim Myscv As ScrollView
Dim lblVolvo As Label
lblVolvo.Initialize("")
Myscv.Panel.AddView(lblVolvo,0,0,100%x,100%y)
 
Upvote 0

volvomann

Active Member
Licensed User
Longtime User
The scrollview has an inner panel you can add a label to programmatically. Here is a small example:

B4X:
Dim Myscv As ScrollView
Dim lblVolvo As Label
lblVolvo.Initialize("")
Myscv.Panel.AddView(lblVolvo,0,0,100%x,100%y)

Thank you. But how can i "adress" the label and scrolview to get into right layout when i have four layots create in designer? and the label shoud be visibel i "Main4" I hope you understand my question (not god in Inglish)
 
Upvote 0

volvomann

Active Member
Licensed User
Longtime User
Sorry, I don't understand what you mean.

Best regards.

I have an app with 4 layots that i manage with the code below
How can i get the text to show upp only in main4 when i use the the long text code the text showes behind all layouts.

B4X:
Dim Pan(8) As Panel            
            Activity.LoadLayout("Buttons")            
            Pan(0).Initialize("")
            Pan(1).Initialize("")
            Pan(2).Initialize("")
            Pan(3).Initialize("")
            Pan(4).Initialize("")
            Pan(5).Initialize("")
            Pan(6).Initialize("")
            Pan(7).Initialize("")                  
            
             Container.Initialize
            
            Pan(0).LoadLayout("Main")
            Container.AddPageAt(Pan(0), "Hjemme", 0)            
            Pan(1).LoadLayout("Main2")
            Container.AddPageAt(Pan(1), "Makspuls", 1)
            Label7mp.Text="Mann" 
                
            Pan(2).LoadLayout("Main3")
            Container.AddPageAt(Pan(2), "Ukk Bmi", 2)               
            Pager.Initialize(Container, "Pager")      
            Pan(3).LoadLayout("Main4")
            Container.AddPageAt(Pan(3), "Hjelpesiden",
 
Upvote 0

volvomann

Active Member
Licensed User
Longtime User
You need to show more code, the best is to post your project as zip file (IDE menu Files / Export As Zip)

Best regards.
Thank you I dont look good enough at your proposals in the "longtext" I found just what i need, Hurray
 
Upvote 0
Top