Clickarea of Buttons is Shifted

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
ehenkes
Posts: 47
Joined: Sun Aug 03, 2008 2:52 pm
Location: Germany
Contact:

Clickarea of Buttons is Shifted

Post by ehenkes »

I use buttons and noticed the following: The clickarea is shifted downwards and is not exactly in the visible rectangle of the button. This is really bad because I have arranged four buttons one above the other. You can hit the button by clicking it outside the rectangle. The clickarea starts at the median of the rectangle. Same experience? Workaround?
fallingbrickwork
Posts: 52
Joined: Sun Jun 22, 2008 4:09 pm
Contact:

Post by fallingbrickwork »

I'm not sure if this is connected in any way, but... are you running your app on a different PC since setting up the buttons?

I say this because my project was developed on my desktop... i've am now developing on a laptop as i'm away and low and behold, all my buttons are in the wrong place too!!

I'm not sure if the buttons appearance has shifted or the mouse coords of where irrlicht thinks it is...

I recently downloaded the latest SVN version on my desktop... maybe something has changed in this and my laptop (also the svn) is slightly out of date.... can anyone confirm if changes have been made that might affect GUI buttons?

cheers
fallingbrickwork
Posts: 52
Joined: Sun Jun 22, 2008 4:09 pm
Contact:

Post by fallingbrickwork »

If you're running your project in a window, check the screen dimensions are the correct proportions (not sure why that would matter).... My window was 1024x800... when it should have been 1024x768... it fixed my problem, silly typo on my behalf.
ehenkes
Posts: 47
Joined: Sun Aug 03, 2008 2:52 pm
Location: Germany
Contact:

Post by ehenkes »

Thx for this advice. I tested 800*600 and it works perfect. Change screen to 1024*768 and the click area is shifted to the half of the button. :shock:
It's a bug! :twisted:

I changed the solution to 1000*750 and it's o.k.
No idea, why it doesn't work with 1024*768. :o
fallingbrickwork
Posts: 52
Joined: Sun Jun 22, 2008 4:09 pm
Contact:

Post by fallingbrickwork »

not sure why your proj wont work with 1024x768 (as this fixed mine)... maybe post some code so we can have a look or flag this in the 'Bug Report' section so a developer can check it out...

just as a side line.... i posted that my fonts were looking a bit blurred a while ago (they had an AA apearance). I downloaded latest SVN trunk today to check yours (and my) button problem and the AA seems to have been fixed, so it may be worth downloading the latest version to see if it helps you.

Just an additional thought.
Post Reply