I wanna just a TEXTBOX. Help plz. (1 Viewer)

yolf

New Member
March 15, 2008
2
0
Home Country
Ukraine Ukraine
I can't find any reply to this topics:
1) Textbox? - https://forum.team-mediaportal.com/plugins-47/textbox-23401/
2) Editable Textbox? - https://forum.team-mediaportal.com/plugins-47/editable-textbox-21216/
3) Which Control can I use as a Input-TextBox? - https://forum.team-mediaportal.com/...here-48/control-can-i-use-input-textbox-3507/

No tutorial, no answers....

Please, spare me a minute, and answer - how i can use an Editable Multiline TextBox??
I can see two buttons, but no textbox.
Only if i add this string to button_click - text appears, but i can't edit it.
Code:
GUIControl.ShowControl(GetID, txtbox.GetID);


C# code:

Code:
public class MyClass : GUIWindow, ISetupForm
{
		
	[SkinControlAttribute(2)] protected GUIButtonControl buttonOne=null;
    	[SkinControlAttribute(3)] protected GUITextControl txtbox=null;
	[SkinControlAttribute(4)] protected GUIButtonControl buttonTwo=null;

.....

XML:

Code:
<control>
      <description>Text</description>
      <type>textbox</type>
      <id>3</id>
      <posX>380</posX>
      <posY>200</posY>
      <visible>yes</visible>
      <width>930</width>
      <height>450</height>
      <font>font11</font>
</control>
 

moiristo

Portal Pro
November 17, 2006
342
27
Enschede
Home Country
Netherlands Netherlands
I don't know the answer, but I've experienced similar problems caused by the lack of documentation. What I usually do is look at a different plugin in which the control is used. For example, My Worldmap has a search feature that uses a (single line) textbox. It should be in the plugins SVN.
 

Inker

Retired Team Member
  • Premium Supporter
  • December 6, 2004
    2,055
    318
    There is no editable Textbox, this is not a windows-forms app, if you want input you need to bring up the on-screen keyboard. There users can type either with their real keyboard or with their remote using the on-screen one.

    Then you can retrieve what they typed and if you want display it somewhere or do whatever with it.
     

    Users who are viewing this thread

    Top Bottom