DCC++ Controller - Basic GUI Query

PatB Aug 22, 2018

  1. PatB

    PatB New Member

    4
    0
    1
    Hi everyone. I just discovered DCC++ and, in a burst of enthusiasm, ordered an Arduino and suitable motor shield. While I wait for these to arrive on the slow boat from Hong Kong I thought I'd have a play with Controller.

    I'm using an old Asus EeePC that I had spare, running Lubuntu. Processing installed happily and runs the Controller sketch without apparent problems. However, the GUI window appears to be a fixed size and doesn't fit on my screen. The "minimize" button works but the "maximise" one doesn't appear to do anything, nor can the window be resized by dragging its borders.

    I assume that the fix is a relatively simple edit to the code, but which code and where? Can anyone point me to the right area? I have some (long ago) experience in programming in C+ so actually doing the edit isn't too intimidating but help in finding the relevant lines would be much appreciated.
     
  2. UK Steve

    UK Steve TrainBoard Member

    453
    683
    12
    Hi PatB

    From the the original GitHub source https://github.com/DccPlusPlus/Controller/blob/master/DCCpp_Controller/DCCpp_Controller.pde

    Lines 89 and 90 provide your answer, however be warned, editing these to fit the pixel dimensions of your chosen monitor, will just make the window fit to your screen. The components overlayed on top will take their original positions as designated later in the sketch (from upper left/down in pixels). In other words altering lines 89, 90 does not act like a traditional zoom function. Gregg will have chosen 1366 x 768 as that was the average laptop/desktop screen dimension (in pixels) at the time. To fill whatever pixel real estate you have with something that looks nice, you would have place/resize every object to your requirements, which is quite an undertaking. On a higher resolution 16:9 monitor I would stick with Greggs default setting.
     
    PatB likes this.
  3. PatB

    PatB New Member

    4
    0
    1
    Thanks Steve. It looks as if I may have a bit of a task ahead. I'm a bit stuck with the little Asus as this is a budget free project so I need to work with what I have. Not to worry. Plenty of time before the Arduino arrives.
     
  4. Jimbo20

    Jimbo20 TrainBoard Member

    274
    178
    11
    I had a similar problem and came across a blog by geoffb.

    He has thoughtfully provided a modified controller zip file that has the window size reduced and the preset track layout removed. I'm not sure whether it will work on the screen resolution you have on the asus, but it does work on my old laptop. I use it whenever I need to reprogram any cvs (I don't use jmri)

    The zip file is contained in this post:

    http://model-railroad-hobbyist.com/node/27318#comment-252818

    This is his zip:
    http://www.scalemodelanimation.com/blog/dccpp_controller.zip


    Jim
     
    Last edited: Aug 25, 2018
    PatB likes this.
  5. PatB

    PatB New Member

    4
    0
    1
    Thanks Jim, I'll give that a try.

    If all else fails I can hook the Asus up to an old monitor I'd forgotten I had, that I just found at the back of the shed. It'll do the job but I then lose the ability to work from my favourite armchair.
     

Share This Page