iOS Question Can not over-write string on a Panel

John Woodsmall

Active Member
Licensed User
Longtime User
I have a simple problem:
B4X:
If Sounds.Text ="(TAP TO CHANGE) SOUND - ON" Then
        Sounds.Text = "(TAP TO CHANGE) SOUND - OFF"
        do_sound = "NO"
    Else
        Sounds.Text = ""
        Sounds.text = "(TAP TO CHANGE) SOUND - ON"
        do_sound = "YES"
    End If

the "NO" becomes: "NOOFF" (with OFF overwriting the ON not replacing it.

this is on a panel on a scroll view (this works on a simple textview) but not here on a extview on a panel.
 

John Woodsmall

Active Member
Licensed User
Longtime User
Note:
This happens when: DrawLinesOnPanel(Panel2)
B4X:
CanvasHolder.drawline(0,setting_label.top-5,382,setting_label.top-5, Colors.RGB(127,176,0), 1)

then can not over-write the text as above.
 
Upvote 0

John Woodsmall

Active Member
Licensed User
Longtime User
Here is the setting page on my app.
The problem is with the "Sound On" button.
Off over-writes "On" on the screen.
as you can see.
 

Attachments

  • panel.zip
    223.7 KB · Views: 209
Upvote 0

John Woodsmall

Active Member
Licensed User
Longtime User
How do i add the panels to the scrollview that is there?
Also not clear the correct way to define the panels.
B4X:
NavControl.ShowPage(page11)
    ScrollView2.Panel.LoadLayout("page10")
    ScrollView2.ContentHeight = Panel2.Height
    ScrollView2.ContentWidth = Panel2.Width
    DrawLinesOnPanel(Panel2)
 
Upvote 0

John Woodsmall

Active Member
Licensed User
Longtime User
This is the menu i am trying to implement
with the lines separating each text item and image.
it worked fine as a scrollview/panel but now with
the drawlines it does not let me correctly change
the text in "Sound on" - "Sound - Off"
example above.
 

Attachments

  • IMG_0902.PNG
    IMG_0902.PNG
    206.6 KB · Views: 198
Upvote 0
Top