EMULAB Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

The new forum is online, hope you enjoy it!

Pages: [1]   Go Down

Author Topic: Checks to prevent offscreen UI placement  (Read 6288 times)

john iv

  • Member
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 92
  • Operating System:
  • Windows NT 10.0 Windows NT 10.0
  • Browser:
  • Chrome 130.0.0.0 Chrome 130.0.0.0
    • View Profile
Checks to prevent offscreen UI placement
« on: 09 November 2024, 18:25 »

Hi Roman, I just hit an interesting issue in clrmamepro that cropped up a long time ago w/ my front end we had to code around.
I'm not sure what produced it, perhaps some combo of windows key + arrows with snap, but clrmame when it saved out to settings.xml put a large negative number in its UI position settings.  The next time the app was run, it couldn't be displayed on any of my multiple screens and you couldn't 'get to it' w/ alt-tab etc.
I had to kill the UI portion of settings.xml and restart.  So maybe you need an extra check to prevent incorrect/negative co-ordinates from being used.  This is my regular working section, I think <right> ended up like -3544 or something:

<Clrmame>
      <UI>
         <window>
            <right>2569</right>
            <top>0</top>
            <left>1271</left>
            <bottom>1401</bottom>
         </window>
         <activeTab>0</activeTab>
      </UI>
   </Clrmame>
Logged


Roman

  • Global Moderator
  • Member
  • ***
  • Karma: 120
  • Offline Offline
  • Posts: 3523
  • Operating System:
  • Windows NT 10.0 Windows NT 10.0
  • Browser:
  • Chrome 130.0.0.0 Chrome 130.0.0.0
    • View Profile
Re: Checks to prevent offscreen UI placement
« Reply #1 on: 10 November 2024, 15:53 »

ok, I put it on the todo list
Logged
Pages: [1]   Go Up
 

Page created in 0.065 seconds with 15 queries.