ACC2000: Custom Forms - Round Edges (1 Viewer)

Status
Not open for further replies.

Dom DXecutioner

AWF VIP
Local time
Today, 05:37
Joined
Jun 25, 2007
Messages
57
Greetings,

The attached sample database from my archives that shows how to use custom graphics and api calls to create a nice looking round edged form. The database contains some pretty useful (imho) interface functions...

As for the graphics, you'll have to play around with different dimensions according to your taste... i've included the graphix that i've borrowed from Microsoft's Windows Live 'IntelliTXT' search box... See screenshot below:



You will need to leave one unused pixel on top and on the left... you'll see why in the sample. Below are some of the functions included in the demo. If you find any errors, or have any questions, please be very specific as i will not answer questions like 'I doesn't work, why?'.

UISetRoundRect - creates a round edge to any window/form
[in] UIForm - the form that's being changed
[in] CornerWidthInPixels - the amount of pixels being cut to make the round ui
[in] Optional TopCornersOnly
- TRUE: allow only round edges on top of ui
- FALSE: allow all four corners to be round edged

UIMoveBorderLess - moves any borderless window/form
[in] UIForm - borderless form to be moved

TwipsPerPixelX - converts any width from pixels to twips
[in] PixelWidthX - any height measurement in pixels

TwipsPerPixelY - converts any height from pixels to twips
[in] PixelHeightY - any height measurement in pixels

PixelsPerTwipsX - converts any width from twips to pixels
[in] TwipsWidthX - any width measurement in twips

PixelsPerTwipsY - converts any height from twips to pixels
[in] TwipsHeightY - any height measurement in twips

As usual, have fun and enjoy.
 

Attachments

  • ACC2000 RoundEdgeUI.zip
    77.8 KB · Views: 3,371
Status
Not open for further replies.

Users who are viewing this thread

Top Bottom