Or grab the class files from www.tightvnc.com if it for unix, or the win32
distribution for windows. Already has them in it.

Steve

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
Behalf Of [EMAIL PROTECTED]
Sent: Thursday, June 06, 2002 8:51 PM
To: [EMAIL PROTECTED]
Subject: view only java applet


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
_______________________________________________
VNC-List mailing list
[EMAIL PROTECTED]
http://www.realvnc.com/mailman/listinfo/vnc-list

Reply via email to