Widget toolbar issues

About Truespace Archives

These pages are a copy of the official truespace forums prior to their removal somewhere around 2011.

They are retained here for archive purposes only.

Widget toolbar issues // Scriptorium

1  |  

Post by stan // Nov 6, 2006, 6:53am

stan
Total Posts: 1240
pic
Ive been working on a set of widgets and finding many problems

when I add a toolbar to the 'select' widget it only appears every second object [they are per object render options]..if I have 'Remember state ' checked it works fine [because it stays on screen], except it doesn't disappear when switching to model..my work around was to create a widget component to click on to show/hide it..

the 'remember state' issue happens on any toolbar you use it on, any widget group..they don't hide in model

I have two toolbars hooked up to the view widget [see image below] and they only work in the layout you install them in, when clicking on the widget to show/hide them [ installing them in other layouts and saving layouts works, but is not the best solution], where as the edit or select group toolbars I added work in any layout..is there some limitation on where you can hook up a toolbar? the 'Frame' in Windows Manager Space doesn't disappear went these view widget toolbars closes, like the edit or select group toolbars do..

hopefully the devs can fix this :)

Post by trueBlue // Nov 10, 2006, 8:05pm

trueBlue
Total Posts: 1761
pic
Hello Gord,

I have found a solution for uninstalling your grid toolbars. Well it works for me anyway. There is no easy way to close them because there was no X icon on the toolbars.

HTH,
Dave

Note: I was studing the Output Console and the command:
WindowsManager.UpdateWindowsStructure()
seems to be the key here. This is of course a guess on my part. Maybe the developers could share more insight with regards to this command.

//Add the X icon to toolbars so that they can be closed before uninstall:
Node.Value("/Project/Windows Manager Space/ Frame, 1/ImageToolbar",
"IsImportant") = 0
WindowsManager.UpdateWindowsStructure()
Node.Value("/Project/Windows Manager Space/ Frame, 2/ImageToolbar, 1",
"IsImportant") = 0
//Closes and removes Toolbars and Frames:
WindowsManager.UpdateWindowsStructure()
WindowsManager.CloseWindow('Project/Windows Manager Space/ Frame, 1')
WindowsManager.UpdateWindowsStructure()
WindowsManager.CloseWindow('Project/Windows Manager Space/ Frame, 2')
WindowsManager.UpdateWindowsStructure()

Post by stan // Nov 11, 2006, 12:08pm

stan
Total Posts: 1240
pic
trueblue, the uninstall works fine for removing the toolbars..

but you MUST close the toolbars ..closing is done with a left click and drag on the widget buttons shown in the image from my last post above....that's why they are there..the 'TB' opens and closes the main toolbar..the purple one opens and closes the image grid toolbar..open is a left click..works great..

there is no 'x' on them intentionally..I suppose in my instruction images I should have used the words open and close rather that activate and deactivate..

thanks for the help, but it already works as I intended..

Post by trueBlue // Nov 11, 2006, 5:59pm

trueBlue
Total Posts: 1761
pic
Yes you are right disconnecting the toolbars by using your toolbar buttons does infact uninstall the grid system correctly. Sorry about the misunderstanding. I did not understand about how to close them.
Great job Stan the Man!
Awportals.com is a privately held community resource website dedicated to Active Worlds.
Copyright (c) Mark Randall 2006 - 2024. All Rights Reserved.
Awportals.com   ·   ProLibraries Live   ·   Twitter   ·   LinkedIn