nearlogic.com

a programmer’s blog

Archive for the 'Code Blocks' Category

Gradient Button Control

Since there seems to be people around who still use VB6, I thought I’d post some more of my stuff.  Here is a button control that can add a nice touch to some apps.  This control is completely owner drawn, and uses code from Carles P.V. (on planetsourcecode.com) and Karl Peterson. This control can also [...]

Eventful Calendar

I’ve been using the Google Calendar lately, and it’s not bad.  It reminded me of a calendar I made a few years ago, but Google did it a bit better.  So I copied Google’s color scheme and changed a few things to make mine more like the Google one.
This code is in the form of [...]

It’s About Time

Here’s a solution to the lack-luster Timer Control in VB6.  Instead of requiring a Form, the code is contained in a class module.  It is similar to other Timer class implementations you can find on the web, with one major difference.  Each timer requires a call-back function, so to avoid having to keep track of [...]

Adding the Third Dimension

I’ve been looking through my code to find something worth posting. And I think I’ll start with OpenGL in Classic VB (6.0). This is not often done, but is easy to do, and works very well. All that is needed to start typing OpenGL code is this type library by Patrice Scribe. [...]

Banner