• Log in or sign up for an account here: https://www.sythe.org/login

[Project]Swift Controls

jdsfighter

Forum Addict

Visual Basic Programmers
Joined
Jan 21, 2007
Sythe Gold
0
Messages
603
Age
33
Location
USA
I am beginning a new project and anyone that wants in just post here. I am going to start work on a whole new set of user controls. These user controls are going to simulate controls in Swiftkit and if possible they are going to be even better.

I am going to start out designing these for functionality, meaning I will be using whatever works. If I have to use labels or image controls, so be it. Once they basic backbones are created they will be completely api dependent without any extra controls (if this is possible).

Controls - Status
SwiftTab - Beta Release
SwiftButton - In development
SwiftView (Listview) - Not started
SwiftSlider - Not started
SwiftProgress V1.0.1 - Completed/Still tweaking

Downloads
SwiftTab - None
SwiftButton - None
SwiftView (Listview) - None
SwiftSlider - Click Here
SwiftProgress - Click Here


Have I forgotten something? Want to add some input? Please don't hesitate to tell me.
 
Hell, I need something to do.
Looks like you got yourself a partner



But we need a better name for them. =P
 
Fine with me Jazz. I figured I'd whip up a quick template for the slider. Shouldn't take more than 5 more minutes to get the backbone done. 3 rectangles: Bar, Border, Rect. In that order. Then I just add a few properties and it will be done.

I'm gonna probably going to save the listview till last, but after I finish this slider I am going to continue work on the button. The only difficult part of the button is writing a greyscale code, but that shouldn't be a problem. I can probably do it with GetDiBits.
 
I see no custom combo, just a button with a down arrow and a list attached ;)
 
The button is going to be built with style property. Is can either be a ComboBox or a button.
 
Change
Code:
ChangeValue m_Value
to
Code:
ChangeValue CInt(m_Value)
in SwiftSlider.
Otherwise it doesn't seem to work.

And in SwiftProgress, there's an error on this line
Code:
    PercentWidth = IIf(m_Value > m_MinVal, UserControl.ScaleWidth - (((UserControl.ScaleWidth / m_MaxVal)) * (m_MaxVal - Value + m_MinVal)) - 1, 1)
"Division by zero".
Nicely done so far JD.
 
Hey i just decompiled swiftkit and realized that jason doesn't use a Listview or Tab Usercontrol.

The only UserControls in his project are:
FlatButton
FileDownloader
brwURL
ctrlScrollButton
ctlSlider
FlatScrollBar

For the Listview i assume he just doesn't allow Column headers then uses his "FlatButton" UserControl to create his own.

and for the Tab like Frames i think he uses Frames, and the "ctrlScrollButton". If you wanted the decompiled SwiftKit project ill add a Download link to this post.

Download
SwiftKit Decompiled by Covey (2.78 MB)

*Note*
You will get about 100 Error Messages when you load the project, just keep pressing enter until they are all gone.
 
Regardless if there is or isn't a tab or listview. I am going to attempt to recreate it. That way you can have the control and it will be easier than the way they did it.
 
The only problem i had creating it, was adding controls to the different tabs pages at design time.
I could past controls onto the first tab part, but i couldn't figure out how to make it show the other empty tab frames while in design.
 
It will be tricky, but to do it I will probably have to make several properties to aid it.
 
Yes, I was going to make a property to set the current tab. This would work at run and design time. It would be tricky getting the controls or at least I would think it would be, but for now I am just about to finish the slider. The flicker is fixed and I am almost done.
 
I am working on SwiftButton, but I keep having a small problem. When I click on the button it works fine, but when you double click then it doesn't work. I am also looking for a quick way to greyscale an image without going through pixel by pixel.
 
I am working on SwiftButton, but I keep having a small problem. When I click on the button it works fine, but when you double click then it doesn't work. I am also looking for a quick way to greyscale an image without going through pixel by pixel.

Have you used the RaiseEvent DoubleClick on the UserControl DoubleClick Event?

As for the grayscaling, its the major problem i had in mine. I ended up making one but it only worked 100% correctly on .BMP images and with .ICO images it did not change the colour at all, and the rest of the image extensions (.JPG, .GIF etc) it would only grayscale some of it leaving random pixels ungrayscaled.

So i ended up scratching that and just making a "GrayScaled Picture" property, and just switched to that picture whenever it was Disabled.
 
Runescape Gamblingrunescape gambling
Back
Top