Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Is There A Solution?
Message
From
12/08/2003 18:17:08
 
 
To
12/08/2003 18:09:45
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00819552
Message ID:
00819631
Views:
12
>>>Hi There...
>>>
>>> Is not exactly like that. Let me explain me better. I have this scenario:
>>>
>>> I have a form that its size is: Width = 1017, Height 735 (In pixels, I guess). Then I need to add to this form a variable quantity of objects (Picture Objects)... Let's supose that for this example, they will be 150 Objects. How can I determine which is the size that let me insert all this images in the form and that they fit the form exactly?
>>>
>>> Hope I make myself clear, and that you or somebody can help me.
>>>
>>>c.oper
>>>onedish@hotmail.com
>>
>>Hi Onelio,
>>
>>Here is a simple solution that assumes all 150 objects are the same size.
>>
>>Multiply the width of the form times the height to get the total area. Divide that result by 150 and you have the are alloted to each object. Assuming the objects are all rectangular and all the same size. Now the problem is how may rows and columns of objects and hence the shape of the objects. Hmmmm Find a number that divides evenly into 735 such as 5x147, 7x105, 15x49 and 21x35. You now have the following choices:
5 ROWS OF 30 OBJECTS 147 PIXELS HIGH AND 34 PIXELS WIDE
15 ROWS OF 10 OBJECTS 49 PIXELS HIGH AND 102 PIXELS WIDE.

Since neither 7 nor 21 divides evenly into 150, those choices are out. Note also that the width is not exact but pretty close.

Is this heading in the right direction?

Ken
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform