Working on improving the storage box gump on the server I play on. Older one by A_Li_N. Works great though & is easily customizable. I've recently enlarged the gump size for longer name items (moved the buttons over & everything works). Now what is wanted is basically a back button. Currently the largest one has 4 pages (I think) with the pages being created automatically if the current page has 16+ items.. #17 goes on the next page. We have to close the gump out to search through earlier pages & people are wanting a back button if possible. I know very little about gumps & so I'm flying blind here. I have a button setup, ready to go with 2 small problems. 1, it appears on the 1st page where it isnt needed & 2, it doesnt work other than to close the gump out. I know its because it isnt attached to any other pages, but I dont know how to do that part. 
Add Resource & More buttons work beautifully. I've tried using AddPage(2); & so on, but get the same close out when clicking the Previous button even with changing the Reply,0 to Reply,1. If it isnt possible without a rewrite of the entire thing, then I'm not going to stress it. Any help would be greatly appreciated. Even changing the Reply to Page doesnt help.
Code:
public BaseResourceStorageBoxGump(BaseResourceStorageBox StorageBox, int offset)
: base(25, 25)
{
m_StorageBox = StorageBox;
m_Offset = offset;
AddPage(0);
AddBackground(50, 10, 495, 280, 83);
AddImageTiled(58, 20, 478, 262, 2624);
AddAlphaRegion(58, 20, 478, 262);
AddButton(75, 25, 4026, 4027, 1, GumpButtonType.Reply, 0);
AddLabel(110, 25, 0x8AB, "Add Resource");
AddLabel(225, 25, 0x480, m_StorageBox.GumpLabel);
AddPage(1);
if (m_StorageBox.ResourceTypes.Length > 16)
{
AddButton(425, 25, 4005, 4006, 2, GumpButtonType.Reply, 0);
AddLabel(460, 25, 0x8AB, "More");
AddButton(425, 55, 4014, 4015, 3, GumpButtonType.Reply, 0);
AddLabel(460, 55, 0x8AB, "Previous"); // PREV PAGE
}
AddButtonsAndLabels();
}
private void AddButtonsAndLabels()