Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 09-30-2005, 06:32 PM
ChibiChibiLuc ChibiChibiLuc is offline
Cookie Monster. :3
Join Date: Jan 2005
Location: Nova Scotia, Canada
Posts: 111
ChibiChibiLuc is on a distinguished road
Send a message via AIM to ChibiChibiLuc Send a message via MSN to ChibiChibiLuc
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.

Last edited by ChibiChibiLuc; 09-30-2005 at 07:34 PM..
Reply With Quote
  #2  
Old 09-30-2005, 08:06 PM
Ajira Ajira is offline
Poont.
Join Date: Oct 2004
Location: NY, USA
Posts: 477
Ajira is on a distinguished road
What is wrong with just hiding/showing the GUI Controls?
__________________
Liek omigosh.

Reply With Quote
  #3  
Old 10-01-2005, 07:22 AM
ForgottenLegacy ForgottenLegacy is offline
-Backtoscripts-
Join Date: Aug 2003
Location: California
Posts: 289
ForgottenLegacy is on a distinguished road
Send a message via AIM to ForgottenLegacy
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.
__________________
"The higher you fly, the harder it is to breathe."

[Kaidenn] Maybe I will somehow take control of Lance's body when he isn't looking, have him log onto Kingdoms, update one script, and leave.
[Kaidenn] And leave him exactly where I found him, unchanged and completely unnaware of what just took place the last two minutes.
[GrowlZ] Lance: You might want to lock your bedroom door tonight
Reply With Quote
  #4  
Old 10-01-2005, 07:41 AM
napo_p2p napo_p2p is offline
oh snaps
napo_p2p's Avatar
Join Date: Sep 2003
Location: Pismo Beach, California
Posts: 2,118
napo_p2p has a spectacular aura aboutnapo_p2p has a spectacular aura about
Send a message via AIM to napo_p2p Send a message via MSN to napo_p2p
Quote:
Originally Posted by Ajira
What is wrong with just hiding/showing the GUI Controls?
Yeah, that's the easiest way.
__________________
Scito hoc super omnia.
Haec vita est tua una sola.
Dum vita superest, utere maxime quoque puncto, momento, et hora quae habes.
Tempus neminem non manet.
Noli manere tempus.
Carpe Diem

Seize the Day.
Reply With Quote
  #5  
Old 10-03-2005, 04:44 PM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
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"
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 01:40 PM.


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