EQ2Interface

EQ2Interface (https://www.eq2interface.com/forums/index.php)
-   UI Developer Discussion (https://www.eq2interface.com/forums/forumdisplay.php?f=3)
-   -   Item name in TextBox (Examine Item window) - Help Request (https://www.eq2interface.com/forums/showthread.php?t=16182)

adolf102 01-02-2012 06:50 AM

Item name in TextBox (Examine Item window) - Help Request
 
Hi Everyone and Happy New Year!

My question. Hopefully someone will be able to help.
I'm trying to modify Examine Window this way that Item Name is displayed in TextBox so I can select it and copy (ctrl+c) elsewhere.

I check Drums examine window and came up with such modified piece of eq2_ui_examine.xml

Code:

            <Text AbsorbsInput="false" Font="/TextStyles.Large.LargeStyle" MaximumSize="218,16000" Name="Name" ScrollExtent="218,40" ShadowStyle="/ShadowStyles.SmallText" Size="218,40" TextAlignmentVertical="Center" TextColor="#F1CE02" Visible="false">:43a26ad55ecad634:Rune-Encrusted Ivy Etched Underwear of the GODS</Text>
            <Textbox BackgroundColor="#FFFFFF" BackgroundOpacity="1.000" Cursor="/Cursor.Text" MaximumSize="218,16000" MaxLength="50" Name="NameTB" OnShow="Text=&quot;Kluski&quot;" RStyleActivated="/CommonElements.Textfield.data.selected.rect" RStyleDefault="/CommonElements.Textfield.data.default.rect" RStyleDisabled="/CommonElements.Textfield.data.disabled.rect" RStyleDisabledActivated="/CommonElements.Textfield.data.disabled.rect" RStyleMouseOver="/CommonElements.Textfield.data.mouseover.rect" RStyleMouseOverActivated="/CommonElements.Textfield.data.selected.rect" RStyleMouseOverSelected="/CommonElements.Textfield.data.selected.rect" RStyleSelected="/CommonElements.Textfield.data.selected.rect" ScrollExtent="218,40" Size="218,40" Style="/CommonElements.Textfield.data.style">Parent.Parent.LorePage.Name.Text</Textbox>

problem is that Text in my new TextBox is not being populated with item name. Why? And how I can fix it?

Thanks !

Landiin 01-02-2012 10:43 AM

What I would do is;
Using the ExamineItem window as an example here.

We'll be working in the LorePage.
  • Add a text box give it the same location as the Object "Name" and name it TBName.
  • Now do a couple of things to the Text Object "Name"
    • Add OnTextChanged="Parent.TBName.Text=Text"
    • Add Visible="False"

Hope that helps.

adolf102 01-02-2012 07:09 PM

Thank you very much for suggestion Landiin. That did the trick :)


All times are GMT -5. The time now is 02:04 AM.

vBulletin® - Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
© MMOUI