Apply the following two patches to
optionsFrame.java and rfbProto.java
in the get the vnc-3.3.3r2_javasrc.tgz
package to use the viewonly options for
the java applet.
::::::::::::::
optionsFrame.diff
::::::::::::::
233c
(evt.target == choices[shareDesktopIndex]) ||
(evt.target == choices[viewonlyDesktopIndex])) {
.
209a
viewonlyDesktop
= (choices[viewonlyDesktopIndex].getSelectedItem().equals("Yes"));
.
151a
// Disable viewonlyDesktop option
//
void disableViewonlyDesktop() {
labels[viewonlyDesktopIndex].disable();
choices[viewonlyDesktopIndex].disable();
}
//
.
150a
.
129a
// if parameter is viewonly = yes
// then disable the viewonly option button
if ((names[i].equalsIgnoreCase("viewonly desktop")) &&
(s.equalsIgnoreCase("yes")) ) {
disableViewonlyDesktop();
}
.
120a
choices[viewonlyDesktopIndex].select("No");
.
73a
.
72a
boolean viewonlyDesktop;
.
50c
rawPixelDrawingIndex = 3, copyRectFastIndex = 4, shareDesktopIndex = 5,
viewonlyDesktopIndex = 6;
.
46a
{ "Yes", "No" },
.
37a
"Viewonly desktop",
.
::::::::::::::
rfbProto.diff
::::::::::::::
476a
// if we are set to readonly
// then don't process any mouse or kbd events
if (v.options.viewonlyDesktop) {
return;
}
.
419a
// if we are set to readonly
// then don't process any mouse or kbd events
if (v.options.viewonlyDesktop) {
return;
}
.
_______________________________________________
VNC-List mailing list
[EMAIL PROTECTED]
http://www.realvnc.com/mailman/listinfo/vnc-list