Thank you. However, it spits out the following error message:
JScript Panel v2.3.6.1 (Volume by marc2003)
Laufzeitfehler in JavaScript:
Das Objekt unterstützt die Eigenschaft oder Methode "SetTooltipFont" nicht
File: <main>
Line: 9, Col: 1
Runtime error in JavaScript:
The object does not support the property or method "SetTooltipFont".
This is the code I'm using for one of my jscript panels:
// ==PREPROCESSOR==
// @name "Volume"
// @author "marc2003"
// @import "%fb2k_component_path%samples\complete\js\lodash.min.js"
// @import "%fb2k_component_path%samples\complete\js\helpers.js"
// @import "%fb2k_component_path%samples\complete\js\volume.js"
// ==/PREPROCESSOR==
window.SetTooltipFont("IBM Plex Serif", 12);
var volume = new _.volume(0, 0, 0, 0);
//volume.c1 = _.RGB(238, 238, 238);
volume.c1 = _.RGB(108, 144, 116);
volume.c2 = _.RGB(118, 158, 127);
function on_size() {
volume.w = window.Width;
volume.h = window.Height;
}
function on_paint(gr) {
gr.FillSolidRect(volume.x, volume.y, volume.w, volume.h, volume.c1);
gr.FillSolidRect(volume.x, volume.y, volume.pos(), volume.h, volume.c2);
}
function on_volume_change() {
volume.volume_change();
}
function on_mouse_wheel(s) {
volume.wheel(s);
}
function on_mouse_move(x, y) {
volume.move(x, y);
}
function on_mouse_lbtn_down(x, y) {
volume.lbtn_down(x, y);
}
function on_mouse_lbtn_up(x, y) {
volume.lbtn_up(x, y);
}
By the way this script works only in jscript panel, not in jscript panel 3 So maybe your solution was for jscript panel 3?