Forums Index >> Modding >> Scrolling GUI's



Page : <1> :


I am working on a project and I have run into a problem when I try to add a GuiScrollCtrl to the gui file. When I compile with the scroll datablock in place and attempt to call the GUI I get a bus error in the command line and TT crashes. The file actually compiles fine. I know that the error is in the way I am using the datablock, when I attempt to load the GUI without the datablock it executes and loads without a problem. The datablock is copied directly out of TGE:

New GuiScrollCtrl(Scroller) {
profile = "GuiScrollProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "256 180";
extent = "200 200";
minExtent = "8 2";
visible = "1";
willFirstRespond = "1";
hScrollBar = "alwaysOff";
vScrollBar = "alwaysOn";
constantThumbHeight = "0";
childMargin = "0 0";
};

I hope this isn't some stupid error caused by a year of working with microsoft's accursed visual basic language.
Also, how do you pair the scroller with the textbox? And is this what's wrong? FYI, I am working on a mac.

Thanks,

Ben

P.S. Yes, I may be back. I haven't decided yet. :P

Tuesday, June 20, 2006 at 2:28:32 PM

You wont find much help here :P

Anyways...
new GuiScrollCtrl(MainAdminWindowScroll)
{
profile = "ttScrollProfile";
position = "76 105";
extent = "373 259";
hScrollBar = "alwaysOff";
vScrollBar = "alwaysOn";

EVERYTHING INSIDE GOES HERE
};


Tuesday, June 20, 2006 at 2:40:35 PM

Thank you very much. I know that not many people here would respond, but it never hurts to ask. Anyway, you wouldn't respond on MSN, so I figured this'd be faster. :P

Tuesday, June 20, 2006 at 3:32:09 PM

Page : <1> :

insert quote insert url insert email insert image bold italic underline superscript subscript horizontal rule : : Help on using forum codes

Add comment:

HTML is disabled within comments, but ZBB Code is enabled.

Back to the top

Web site designed, maintained and funded by -z- and Dan MacDonald