Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VB6 Control for showing percentage usage

Status
Not open for further replies.

newora

Programmer
Aug 19, 2003
133
GB
Hi There,

Could someone please point me in the right direction - I have been away from VB6 for a while and I have a specific requirement that I can not seem to obtain using the standard enterprise edition controls.

I basically need a column in a datagrid or something similar to a progress bar where I can make the background colour either green or red (for a certain portion of the width of the column or panel) and then superimpose a percentage display (numeric io.e. 28%) on top of it in another colour.

This column / box will be used to indicate if a tool is nearing the end of it useful life by having a green background if it is still within a determined production limit, or red if it is above a determined production limit. The amount of the background that needs to be filled in green will depend upon how close it is to the end of it's life.

I have attached a copy of an screen dump that I am trying to duplicate - I think that this system is running on linux.

tooldsp.png


Thank you for any pointers.
 
The SSPanel Control (or an array of them) hidden away in THREED32.OCX (on the vb6 installation disk if not already installed) should be able to do what you require.
 
Great, thank you for that - I will look into it now.
I have the sstabstrip available but do nt remember seeing the sspanel,so maybe I will have to install it.

Thanks Again.

Andrew
 
If it is installed THREED32.OCX should be listed as 'Sheridan 3D Controls' under Project menu - Components in the vb6 IDE.
 
None of the Sheridan stuff is installed by default. The controls can be found in \Common\Tools\Vb\Controls on the VB6 CDs
 
Hi Guys,

Great all installed ok thanks and it seems pretty easy to work with as well.

A couple of other questions please, if you do not mind - apologies for asking dumb stuff but I am a bit rusty on VB 6.

I am thinking that it would be nice to have a flexgrid control on the screen, which I can populate with the appropriate data into columns. I am basicaly trying to duplicate exactly (or as near as possible0 the example screen shot above).

My only issue here is that I am not sure if it is possible and if so how) to place a sspanel control into a column of a flexgrid (or data grid for that matter).


Thanks again
 
>to place a sspanel control into a column of a flexgrid

You cannot do that but you may be able to place/ position sspanels over the cells in the required column so that they appear as part of the Grid.
 
There is some code at FAQ222-3262: MS Flexgrid Tips and Tricks which shows how to position a textbox over a FlexGrid cell; you may like to adapt it.
 
Great, thank you very much again Hughlerwill - I will analyse the code later tonight.

Many thanks again.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top