is there a method to display all objets for all Android rect

The place to discuss anything and everything about running your LiveCode on Android

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
Fasasoftware
Posts: 203
Joined: Mon Oct 31, 2011 9:36 pm
Contact:

is there a method to display all objets for all Android rect

Post by Fasasoftware » Thu Jan 03, 2013 7:15 pm

is there a method to display all objets for all Android devices rects...once? without buy any plugin??????

I have also tryed the Nativesoftware plugin Native geometry, but for me is too complicated and i can't able to use as i want , because is too complex for me and the final results is so far in my opinion....i'm sorry....but this is my modest opinion....

Ok...can somebody help me please???


Best regards,

Lestroso :oops:

Dixie
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 1336
Joined: Sun Jul 12, 2009 10:53 am

Re: is there a method to display all objets for all Android

Post by Dixie » Thu Jan 03, 2013 7:29 pm

Something must have got lost in the translation... Do you mean :-
'Is there a way to display the rects of all the objects on a device (Android and/or iOS) ?' without using a plugin

Dixie

Fasasoftware
Posts: 203
Joined: Mon Oct 31, 2011 9:36 pm
Contact:

Re: is there a method to display all objets for all Android

Post by Fasasoftware » Thu Jan 03, 2013 8:08 pm

yes dixie,

i'm sorry for my bad english....

you're right..is there a way to display the rects of all the objects on a device (Android and/or iOS) ?' without using a plugin????

best regards,

Lestroso

Dixie
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 1336
Joined: Sun Jul 12, 2009 10:53 am

Re: is there a method to display all objets for all Android

Post by Dixie » Thu Jan 03, 2013 8:19 pm

Don't worry about 'bad English', I can assure you that your English is much better than my Italian as all I can say is 'Ferrari', 'Milan' and 'Pizza'...:-)

Well listing all the controls on a card..

Code: Select all

on mouseUp
   repeat with count = 1 to the number of controls of this card
      put the short name of control count && the rect of control count & cr after controlList
   end repeat
   put controlList
end mouseUp
be well

Dixie

Fasasoftware
Posts: 203
Joined: Mon Oct 31, 2011 9:36 pm
Contact:

Re: is there a method to display all objets for all Android

Post by Fasasoftware » Thu Jan 03, 2013 8:43 pm

Many thanks DIXIE......

But this code that you have written is right for universal to display all objets rights on his geometry and scale???for all devices?? If so .... i thank again....

can you confirm me please...but in truth my problem is that, when i start a new program for android i don't know what width an height use..to display the corect rect to fit all images or object inside.....can you help me please???...thanks a lot....

Best regards,

Lestroso :oops:

Klaus
Posts: 14208
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: is there a method to display all objets for all Android

Post by Klaus » Fri Jan 04, 2013 2:57 pm

Hi Lestroso,

the code Dixie supplied will only tell you the current RECT of all the objects on a card, nothing more!
Because that was your question! 8)

What you need to do is to check "the screenrect" before the stack opens, do some calculations and
(re-)layout your cards accordingly.

Not an easy task, lot of work, but YOU want to develop for the mobile platform :D

Unfortunately there is no universal recipe for this, but please search the forum, there are some solutions
and hints around here!

As I wrote in another thread:
This is one reason I do not develop for mobile, just too many possible screen sizes...
8)


Best

Klaus

Fasasoftware
Posts: 203
Joined: Mon Oct 31, 2011 9:36 pm
Contact:

Re: is there a method to display all objets for all Android

Post by Fasasoftware » Fri Jan 04, 2013 3:59 pm

Many thanks to you klaus.....i appreciate a lot your answer...i will look more about the screenrect...

Happy New year...

Best regards,

Lestroso :D

Post Reply