| View previous topic :: View next topic |
| Author |
Message |
92Garfield I'm a spammer
Reputation: 57
Joined: 20 Dec 2007 Posts: 5871 Location: Banana Republic Germany
|
Posted: Wed Mar 12, 2008 6:16 am Post subject: VB6 scroll bar or sth. |
|
|
i got the variable of sound volume i dont want the user to type a value betwee 100 and 0
i want to make a bar that on one end sets value to 100 and on the other to 0
and sure every natural number between
_________________
|
|
| Back to top |
|
 |
Blader I post too much
Reputation: 2
Joined: 19 Jan 2007 Posts: 2049
|
Posted: Wed Mar 12, 2008 6:24 am Post subject: |
|
|
Bar.Value = Flash.GetVariable("sound")
_________________
|
|
| Back to top |
|
 |
92Garfield I'm a spammer
Reputation: 57
Joined: 20 Dec 2007 Posts: 5871 Location: Banana Republic Germany
|
Posted: Wed Mar 12, 2008 6:33 am Post subject: |
|
|
but how does VB now that the value go from 0 to 100
_________________
|
|
| Back to top |
|
 |
Estx Expert Cheater
Reputation: 0
Joined: 04 Mar 2008 Posts: 172
|
Posted: Wed Mar 12, 2008 7:07 am Post subject: |
|
|
Something like:
| Code: |
Private Sub Form_Load()
Bar.Max = 100
Bar.Min = 0
End Sub
Private Sub Bar_Change()
Call Flash.SetVariable("sound", Bar.Value)
End Sub
|
Is that what you're after? (assuming you're using the V/HScroll object or similar)
|
|
| Back to top |
|
 |
92Garfield I'm a spammer
Reputation: 57
Joined: 20 Dec 2007 Posts: 5871 Location: Banana Republic Germany
|
Posted: Wed Mar 12, 2008 7:14 am Post subject: |
|
|
nice but its sound so i would like the ctlscrollbar
_________________
|
|
| Back to top |
|
 |
Estx Expert Cheater
Reputation: 0
Joined: 04 Mar 2008 Posts: 172
|
Posted: Wed Mar 12, 2008 7:16 am Post subject: |
|
|
| You could still use that, just make sure Max / Min are still there, if not.. send the CTL / OCX my way and I will see if there's anything I can suggest.
|
|
| Back to top |
|
 |
92Garfield I'm a spammer
Reputation: 57
Joined: 20 Dec 2007 Posts: 5871 Location: Banana Republic Germany
|
Posted: Wed Mar 12, 2008 7:27 am Post subject: |
|
|
| Estx wrote: | Something like:
| Code: |
Private Sub Form_Load()
Bar.Max = 100
Bar.Min = 0
End Sub
Private Sub Bar_Change()
Call Flash.SetVariable("sound", Bar.Value)
End Sub
|
Is that what you're after? (assuming you're using the V/HScroll object or similar) |
i get a error on bar1.max = 100
ah dont matters i just change min and max from begining but
ctlscrollbar isnt scrollable
forget everything about got it working i just need the name of a good looking scroll bar
_________________
|
|
| Back to top |
|
 |
Estx Expert Cheater
Reputation: 0
Joined: 04 Mar 2008 Posts: 172
|
|
| Back to top |
|
 |
92Garfield I'm a spammer
Reputation: 57
Joined: 20 Dec 2007 Posts: 5871 Location: Banana Republic Germany
|
Posted: Wed Mar 12, 2008 8:48 am Post subject: |
|
|
i hop that was no virus
so is there anyone that knows the name of a nice looking scroll bar?
_________________
|
|
| Back to top |
|
 |
Estx Expert Cheater
Reputation: 0
Joined: 04 Mar 2008 Posts: 172
|
Posted: Wed Mar 12, 2008 8:56 am Post subject: |
|
|
Have you not heard of PSCode.com?? Planet-Source-Code.com lol.
Well, it's not a virus. Google the site if ya need to verify it first.
use so it doesn't go directly to the site when you type the URL
Either way, the link I posted is where you can find a decent customized scroll bar, use it or not: up to you. =)
|
|
| Back to top |
|
 |
92Garfield I'm a spammer
Reputation: 57
Joined: 20 Dec 2007 Posts: 5871 Location: Banana Republic Germany
|
Posted: Wed Mar 12, 2008 9:14 am Post subject: |
|
|
costum scroll bar? its just a windows XP scroll not very costum
_________________
|
|
| Back to top |
|
 |
Estx Expert Cheater
Reputation: 0
Joined: 04 Mar 2008 Posts: 172
|
|
| Back to top |
|
 |
92Garfield I'm a spammer
Reputation: 57
Joined: 20 Dec 2007 Posts: 5871 Location: Banana Republic Germany
|
Posted: Wed Mar 12, 2008 4:51 pm Post subject: |
|
|
thanks all look shitty anyway dont matters now
i made default scroll bar looks acceptable on win98
_________________
|
|
| Back to top |
|
 |
Estx Expert Cheater
Reputation: 0
Joined: 04 Mar 2008 Posts: 172
|
Posted: Wed Mar 12, 2008 7:56 pm Post subject: |
|
|
Ya could always use skins ActiveX's like SkinCrafter, or search for some on PSC.
But either way, glad to see you managed to get whatever you wanted done. (the last one I suggested, I suggested because you can make your own images for the up/down and scroll lol, I program all my own stuff, but I rarely use VB6 for anything at all these days, either C++ or C# .Net editions)
|
|
| Back to top |
|
 |
92Garfield I'm a spammer
Reputation: 57
Joined: 20 Dec 2007 Posts: 5871 Location: Banana Republic Germany
|
Posted: Thu Mar 13, 2008 3:57 pm Post subject: |
|
|
hehe i'm using default look all the time so everyone gots it look like his windows skin and i think everyone takes a skin he likes and it keeps my trainers tiny
_________________
|
|
| Back to top |
|
 |
|