VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Character shaped forms

bbence  (4 Submissions)   Custom Controls/Forms/Menus   Visual Basic 3.0   Intermediate   Wed 3rd February 2021

Have you ever wanted to make your form's shape odd? Ok, there are several samples and programs around that can make your forms like a shape(circle, rounded box or something a little bit more complicated). But here is the example to make your form's shape to be ANY TEXT, in ANY FONT, in ANY SIZE and also any two colour's gradient. It's a really good example. Imagine you can shape the form not to be just plain text, but the shape of special fonts(such as Windings and Webdings). Just change the GetTextRgn function's variables(Font, Size, Text) and the variable Color1 and Color2. Easy. And the result is outstanding! You can also use the Chr$ function to add a text(this is useful for spec. chars).

Inputs
Change the GetTextRgn function's variables(Font, Size, Text) and the variable Color1 and Color2. Easy. And the result is outstanding! You can also use the Chr$ function to add a text(this is useful for spec. chars).

Assumes
Copy ALL the code to a blank form.(remove Form_Load() first) Then after setting the parameters mentioned (or leave them for first check) run the project.

API Declarations
It has Api calls, but I think its much easier to copy everything at once.

Rate Character shaped forms (12(12 Vote))
Character shaped forms.bas

Character shaped forms Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters