home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Minami 42
/
MINAMI42.ISO
/
Extra
/
winamp3_0-full.exe
/
Wacs
/
xml
/
guiobjects
/
historyeditbox
/
historyeditbox.m
next >
Wrap
Text File
|
2002-07-29
|
759b
|
29 lines
#include <lib/std.mi>
Global Button back, forward;
Global Edit editbox;
Global GuiObject xui;
System.onScriptLoaded() {
Group pgroup = getScriptGroup();
if (pgroup == NULL) return;
back = pgroup.findObject("historyeditbox.back.button");
forward = pgroup.findObject("historyeditbox.forward.button");
editbox = pgroup.findObject("historyeditbox.edit");
xui = pgroup.getParent();
if (StringToInteger(xui.getXmlParam("navbuttons")) == 0) {
if (back != NULL) back.hide();
if (forward != NULL) forward.hide();
if (editbox != NULL) editbox.setXmlParam("w", "-23");
}
}
back.onLeftClick() {
xui.sendAction("back", "", 0, 0, 0, 0);
}
forward.onLeftClick() {
xui.sendAction("forward", "", 0, 0, 0, 0);
}