Loading...
Logo
Processing Forum
laliki's Profile
2 Posts
1 Responses
0 Followers

Activity Trend

Last 30 days
Show:
Private Message
    Hi,

    I'm trying to run a sketch on two displays:
    - one, the laptop monitor
    - the second one, a projector
    Example: a orange rectangle on the laptop, a blue rectangle on the projector.

    I don't need independent frames.
    However, when I "Run" the sketch, I get the OS menu bar on the main screen (the laptop).

    I've tried to use Present mode with the size of  display 1 + display 2,
    as told in the wiki:
    but doesn't work: Present resizes the sketch.

    Any idea? 
    Perhaps someone has already dealt with this...
    Thanks,
    Lali


    This is the code:
    1.  
    2. import java.awt.*;
    3. import java.util.*;

    4. int w,h;
    5. void setup(){
    6.   w=displayWidth+1024;
    7.   h=displayHeight;
    8.   size(w,h);
    9. }

    10. void draw(){
    11.   frame.setLocation(0, 0);
    12.   background(100,100,255);
    13.   noStroke();
    14.   fill(255,150,0);
    15.   rect(0,0,displayWidth,displayHeight);
    16. }

    17. //----------------------------------------------------------------------------------
    18. void init() {
    19.   //  frame.dispose();
    20.   frame.removeNotify();
    21.   frame.setUndecorated(true);
    22.  frame.setResizable(false); // this doesn't work
    23.   frame.addNotify();
    24.   super.init();
    25. }

    I don't know how to integrate a Processing applet in a webpage, without passing the mouse focus to the applet.
    I would like to have my processing application running but the links hover active when the web page is loaded.

    I suppose it has to be simple... does any one can help me?

    thanks
    L