# a programming puzzle : Graphics

**URL:** <https://forum.xojo.com/t/a-programming-puzzle-graphics/41634>\
**Category:** General\
**Created:** [January 17, 2018, 4:46pm UTC](https://forum.xojo.com/t/a-programming-puzzle-graphics/41634 "2018-01-17T16:46:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![DaveS](https://forum.xojo.com/letter_avatar_proxy/v4/letter/d/848f3c/32.png) [@DaveS](https://forum.xojo.com/u/DaveS)\
**Post date:** [January 17, 2018, 4:46pm UTC](https://forum.xojo.com/t/a-programming-puzzle-graphics/41634/1 "2018-01-17T16:46:46Z")

</div>

I have a need to present a static display of a 2d array of string data in a display that mimics the look of the UIPickerView in iOS  
this is for a DESKTOP (mac/win) application.

GIVEN:

- a 2D string array (usually less/equal to 13 rows, and usually not more than 9 columns)
- a Width and Height value to describe the size of the graphics image to be produced
- a 1D integer array indicated the “selected” value for each column

Results

- a PICTURE object that shows the string data in the same format as a UIPICKERVIEW with each column “centered” on the value in the 1D array
- this would be a STATIC picture only, there is not desire to create an “active” control with mouse events etc)
- it needs to be as accurate to what an iOS device would show as possible (fontsizes vary etc, curvature of text etc.).

---

<div class="post-metadata">

**Author:** ![system](https://forum.xojo.com/uploads/default/original/1X/455b4dcc0e61630e9f81940004ddffa49c432a46.png) [@system](https://forum.xojo.com/u/system)\
**Post date:** [October 29, 2020, 7:04pm UTC](https://forum.xojo.com/t/a-programming-puzzle-graphics/41634/2 "2020-10-29T19:04:11Z")

</div>


