News:

Protect your dainty digits. Get a good pair of riding gloves cheap Right Here

Main Menu

Any C++, C#, VB programmers in here?

Started by calamari, June 22, 2006, 10:33:02 AM

Previous topic - Next topic

calamari

I am in need of a very simple program that I have not been able to find on google (nor paid, nor free), and since I am just starting with programming (just because of this), I wanted to ask if anyone can help with this tiny project.

The program is nothing more than a windowless image that can be dragged around the desktop and is able to stay on top of other windows regardless of being on focus or not. There's a tray icon (bottom right corner) to close the program and to specify when is 'locked' (so it can't be dragged/focus).

Also, the image has 4 states:
1- normal
2- part of image highlights (when right click)
3- another par of image highlights (when left click)
4- yet another part of image highlights (when middle button on mouse is used)

these states are activated regardless of the program beign active/on focus or not (and locked or not).

Anyone?  8)
Caturday yet?

annguyen1981

I'd help, but I haven't programmed in VB in like 6 years...  Kinda rusty

2007 YZF-R6 - Purchased 7/03/07
2004 YZF-R6 - Stolen 5/25/07
2004 GS500f - Sold to Bluelespaul
Killin' a Kitty

LimaXray

I could help you, aka make you the app, but I don't have visual studio on my machine at work.

Personally, I would use VB because it is SUPER easy.  (I assume C# is pretty easy too but I've never used it)  C++ is the best IMO (well next to C and ASM of course), but it's not nearly as user friendly or as forgiving.

Basically what you want to do is create a project with a module for the main subroutine and a windows form for the picture.  The main sub should initialize everything and call the picture form.  The picture form can then setup a tray icon (there is a MSDN how-to on this).  You can use the form designer to set up how the form looks and what not.  Then at the bottom of the form code, add action sub routines to do the different actions when you click.  

Look around the MSDN pages and download some sample win32 apps to get an idea how they are put together.  You may want to start off with a sample (like the tray icon sample) and work from there.
'05 GS500 : RU-2970 Lunchbox : V&H Exhaust : 20/65/145 : 15T : LED Dash : Sonic Springs : Braided Front Brake Line : E conversion with Buell Dual Headlight : SW-Motech Engine Gaurds ...

dracflamloc

Don't use .NET for such a small app. You'll use 100mb of ram just having the tray and image sitting there.

VB6 would be good if you're not comfortable with C but you'll still need to dive into the API to get that kind of functionality.
'01 GS500 - '00 Katana Rear Shock - Progressive Springs - Custom pegs - Drag bars - F16 Windshield - 14t Front Sprocket - Shock Racing turnsignals - Custom front disc/Steel brake line - Napolean mirrors

natedawg120

What do you want to use to do it, and diving into the API can be fun  :laugh: :laugh: :laugh:
Bikeless in RVA

dracflamloc

As a beginner the Windows API is usually not fun.  :laugh:
'01 GS500 - '00 Katana Rear Shock - Progressive Springs - Custom pegs - Drag bars - F16 Windshield - 14t Front Sprocket - Shock Racing turnsignals - Custom front disc/Steel brake line - Napolean mirrors

natedawg120

Quote from: dracflamloc on June 22, 2006, 01:40:33 PM
As a beginner the Windows API is usually not fun.  :laugh:

i forgot to mention that befor you start using the API buy another keyboard, mouse and monitor cause by hour three on day 6++ you might want to break something  :laugh: :laugh: :laugh: :laugh:
Bikeless in RVA

SMF spam blocked by CleanTalk