Announcement

Collapse
No announcement yet.

Tree and Input

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Tree and Input

    I have on "On Select this:
    Code:
    if String.Find(e_NodeIndex, "2.", 1, false) == 1 then
    	__EmojiList = false
    	Input.SetText("Input1", Input.GetText("Input1").." "..Tree.GetNode("Tree1", e_NodeIndex).Data.." ");	
    	
    	Tree.SetSelectedNode("Tree1", "");
    	Page.SetFocus("Input1");
    	Tree.CollapseNode("Tree1", "2");
    end
    But no matter what order I have the last part I can't get it to Set Focus, was this a bug in 8.2?
    Plugins or Sources MokoX
    BunnyHop Here

  • #2
    Also how do I get the typing intercater to go to the end of the line after I have set the input with set text,
    Plugins or Sources MokoX
    BunnyHop Here

    Comment


    • #3
      As you can see here, I tried to set focus after I set text, I tried going to last line -1 but still nothing

      Click image for larger version

Name:	inputhere.gif
Views:	1
Size:	232.0 KB
ID:	284410
      Plugins or Sources MokoX
      BunnyHop Here

      Comment


      • #4
        This worked for me, moving the caret to the end of the current content of the Input object:
        Code:
        Input.SetSelection("Input1", #Input.GetText("Input1")+1, -1);
        Ulrich

        Comment


        • #5
          I am going to make a blank demo and see if that works it could be something in my app what is creating a problem, thanks Ulrich I see what I can do there.

          Update:
          It's working fine in my demo so I will see if I have something blocking it in my app thanks.
          Plugins or Sources MokoX
          BunnyHop Here

          Comment

          Working...
          X