GLBasic forum

Main forum => GLBasic - en => Topic started by: MrPlow on 2013-Oct-21

Title: DDgui on android scaled screen
Post by: MrPlow on 2013-Oct-21
I have a problem with my DDgui menu - its fine for first few items in list but as I got down the list the spacing for the scaled screen goes off and its moving down the screen too far.


e.g.

Option 1   (clicks okay)
Option 2   (clicks okay)
Option 3   (clicks option 4)
Option 4   (clicks CANCEL button below option 5)
Option 5
[CANCEL]

I though it was a an integer problem but still happening ....

Any ideas guys?? Need to sort this or replace my menus...

my changes in ddgui were

Code (glbasic) Select
MOUSESTATE mx, my, realb1, realb2
//add by gp
mx = mx / offsetx
my = my / offsety

...also...
LOCAL rmx1%, rmy1%
MOUSESTATE rmx1, rmy1, rb1%, rb2%
//add by gp
rmx = rmx1 / offsetx
rmy = rmy1 / offsety



Title: Re: DDgui on android scaled screen
Post by: MrPlow on 2013-Oct-22
Guys,.

Here is the ddgui file i am using ... is there anything that jumps out when considering the 320 x 480 screen to be scaled up to higher res of the 7" Androids etc...?
Title: Re: DDgui on android scaled screen
Post by: MrPlow on 2013-Oct-23
Hi,

I got this working in the end...a post by wampus gave me a clue as to what i was doing wrong...

divide float by integer etc... Wasted soo much time on this ... *Darn it*

heres the link for anyone else with a similar "mental block!"
http://www.glbasic.com/forum/index.php?topic=7516.msg62145#msg62145

Title: Re: DDgui on android scaled screen
Post by: MrTAToad on 2013-Oct-23
Yes, things like that can be a problem!
Title: Re: DDgui on android scaled screen
Post by: MrPlow on 2013-Oct-24
A nice forum section on "anomolies to look out for" would be kindy handy!  :whistle: