Jump to content
Sign in to follow this  
xroot

Fun With VB Objects

Recommended Posts

xroot

A while back I shared my VB dll wrapper exposing some objects.

Here is my re-written VB dll wrapper, much simpler letting you use VB Forms and Controls

in a more "COM" oriented way.

Here are the Methods,Properties,and Objects.

Look @ the example files to get the details.

.Set_Window Setup your Gui(Window) (if X and Y = 0 Gui is centered)

.Set_Control Setup your Controls on Gui

.Load_Picture Load a picture file to an object

.Obj2Ptr Get a pointer from an object

.RGB_ VB's RGB function

.NoFocus_On Remove focus lines on controls that have them

.Show_Window Show Gui(Window)

.Close_Window Close Gui(Window)

.Click Click an object returns the pointer to the object

.Index Get VB's index object (some VB objects use and set an index)

.DllActive Return the number of open windows

.BorderStyle Set Gui(Window) border style

0=None,1=Fixed Single,2=Sizable,3=Fixed Dialog,4=Fixed ToolWindow,

5=Sizable ToolWindow (*Must be set before Set_Window()*)

If style is 0(none) the mouse will automatically drag the window.

If style is 0(none) and you don't want to drag the window set the

window 'Tag' property to True. (look @ example4.au3 a simple custom skin)

By setting the textbox 'Tag' property to true you can drag the window by textbox.

.vbTagColor Set the background color property of a command button for mouse over effect

default is RED

To use this property set 'Tag' to True of the command button object.

If a Picture object is set for command button along with the DownPicture property,

set the 'Tag' property to a picture file name for mouse over picture.

(look @ example2.au3 for a lot of different controls and effects)

These are the controls you can use, each one returns an object.

CommandButton

Label

PictureBox

ListBox

TextBox

Timer

DriveListBox

DirListBox

FileListBox

ComboBox

OptionButton

CheckBox

Frame

HScrollBar

VScrollBar

MonthView

Image

Line

Shape

HUpDown

VUpDown

SSTab

ToggleButton (Is a formated CheckBox)

DTPicker

StatusBar

ProgressBar

MsFlexGrid

Slider

ListView

TreeView

ImageList

ToolBar

App

Screen

Pressing Esc will close any window.

example1=simple random pixel test

example3=VB's controls for drives, directories, and Files.

Run the examples to see how it all works, and remember... have fun.

Don't forget to register the DLL.

Get it here vbobjs.zip

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.