![]() |
gui object questions
1 Attachment(s)
The gui information is great on the wiki .net and .us sites, but beyond names like window button and text box, I get a little lost without pictures to tell me what's what.
Based on this example of the Rudora help system, can someone please tell me what Gui(fillintheblank)Ctrl names are for these items, and then I can look up how to use them with the refrence tools on my own. 1 - tab menus 2 - the image 3 - the banner area 4 - the option list, and is that an image next to each item, or a default arrow? 5 - the scrollbar attached to what appears to be a textbox. and can you attach a scrollbar to an option list? thanks in adance for the help |
1. GuiTabCtrl - I've written a tutorial on how to use those (at least the way I do).
2. GuiBitmapCtrl. 3. There is nothing there? 4. GuiTreeViewCtrl. 5. GuiMLTextCtrl contained within a GuiScrollCtrl. Now, I'm not the coder of that script so I could be wrong on a couple things, but that is what it looks like to me. |
thanks, I have made good progress, but on the Tree controll, when I click on a node, I want it to change the text in a scrolling text box. select() appears to be the only likely command to detect if a node in the tree is clicked, there is really not enough information on the Tree control to tell me what i need to know to make it work.
Within the window: PHP Code:
|
What's the problem? item_list.getselectednode() should return the selected node.
|
Quote:
temp.node = addnode("Test1"); temp.node.coolprop = "WeeEeeE"; then access the node.coolprop in .select() ? |
Ah, thank you Prozac. You pointed out an error in my News Browser.
|
Quote:
|
1 Attachment(s)
hm i dont think my follow up question on the nodes was clear.
asking with a picture helped before, so i will do it again: and Skyld, what was wrong with your menu? i was not looking to correct anything in your gui. so: how do i detect that a node has been clicked? what does the event block look like, that will have item_desc_text.text="new text"; inside it? where in relation to the gui creation should the 'click on a node' event detection go? does it need to be in a timeout loop? |
onSelect should work fine?
|
nope.
PHP Code:
try again ... i am looking for the same event thats triggered on the F8 window when you click on a world, and it changes the text (and image) |
You need to include the ctrl name in the onSelect() thing
NPC Code: |
Oh, oops. I hadn't noticed that, I figured he was doing a catchevent or something.
|
| All times are GMT +2. The time now is 11:23 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.