Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Detaching a GUI Control (https://forums.graalonline.com/forums/showthread.php?t=61501)

ChibiChibiLuc 09-30-2005 06:32 PM

Detaching a GUI Control
 
Is it possible to detach/attach a GUI control from it's parent?
I have 4 tabs in a window and a hidden GUI for each tab.
I want to detach the 4 hidden GUIs, then re-attach them when their tab is selected.

I know I could get the same effect by hiding and showing each GUI as they're selected, but I want to know if attaching/detaching them is possible.


EDIT: Another question.. What are the options for 'sortmode' and 'sortorder' in a GuiTextListCtrl?
I'm starting to think of buying Torque, just for the GUI documentation. :(

Ajira 09-30-2005 08:06 PM

What is wrong with just hiding/showing the GUI Controls?

ForgottenLegacy 10-01-2005 07:22 AM

He just wants to know if it's possible to break from the parent GUI. o-o

Edit: Which I don't think is possible.

napo_p2p 10-01-2005 07:41 AM

Quote:

Originally Posted by Ajira
What is wrong with just hiding/showing the GUI Controls?

Yeah, that's the easiest way.

Admins 10-03-2005 04:44 PM

Hiding and showing is recommended since then the controls will also be resized correctly when you resize the window. You can add controls to other window or controls by calling newparent.addcontrol(control).
sortmode and sortorder don't exist in Torque.

sortmode: either "" (none), "value", "name" or "extension". "value" sorts after the row.sortvalue, "name" sorts after row.name, "extension" after getextension(row.name). If you call textlistcontrol.sort() without setting a sortmode before, then it is using "name".

sortorder: either "ascending" or "descending"


All times are GMT +2. The time now is 12:14 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.