Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Hi, Maybe an stupid question but c 1

Status
Not open for further replies.

titoneon

MIS
Dec 11, 2009
335
US
Hi,
Maybe an stupid question but can i make a form in vfp 9.0 spk2 that looks like an Iphone shape ?
I was looking for under the form properties but did not find any
Thanks
 
What property did you expect? What aspect of the iphone shape are you looking for? The form factor? Rounded corners? An exact look like an iphone? What did you look for, a property "iphonelook" which can be set .T.? You know Foxpro is a windows software? There once was fox for mac, but never for iOS.

Bye, Olaf.
 
Hi Olaf,
Yes i was looking for Rounded corners for a form, it is probably in front of me but i don't see what properties could be to make the corners of the form just round or if i could have the choice to use any tool to modify the 90 deg corners by killing the corners and make look that a radio was inserted in each corner of the form, is that possoble in VFP 9.0 ?
Thanks
 
That's possible in any language running Windows, because it's Windows (the OS), which is drawing the windows (the forms). But it's not in any form property. It's part of the OS, a part, that is known as the Windows API (application programming interface):


There are several API functions involved, mainly CreateRoundRectRgn set's a rectangle region with rounded corners.

Also see at the "See Also" section :)

Bye, Olaf.
 
The shape object has a Curvature property. I guess the forms and other objects weren't designed to display curved corners. Just throwing this idea out without much thought... Can the form be be borderless and transparent and let the shape be nearly the size of the form and have a solid fill? It might not be possible because I don't see a BackStyle property for forms either. I was looking at SetLayeredWindowAttributes In Win32Api (Samples\Solution\Sedona\FadeAway.scx) but from a quick glance that didn't seem helpful for your needs.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top