Adblock breaks this site

[Project]Swift Controls

Discussion in 'Programming General' started by jdsfighter, Jun 26, 2008.

  1. jdsfighter

    jdsfighter Forum Addict
    Visual Basic Programmers

    Joined:
    Jan 21, 2007
    Posts:
    603
    Referrals:
    0
    Sythe Gold:
    0
    [Project]Swift Controls

    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.
     
  2. Jazz00006

    Jazz00006 Apprentice
    Visual Basic Programmers

    Joined:
    Aug 26, 2005
    Posts:
    807
    Referrals:
    0
    Sythe Gold:
    0
    [Project]Swift Controls

    Hell, I need something to do.
    Looks like you got yourself a partner



    But we need a better name for them. =P
     
  3. jdsfighter

    jdsfighter Forum Addict
    Visual Basic Programmers

    Joined:
    Jan 21, 2007
    Posts:
    603
    Referrals:
    0
    Sythe Gold:
    0
    [Project]Swift Controls

    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.
     
  4. Covey

    Covey Creator of EliteSwitch
    Retired Sectional Moderator Visual Basic Programmers

    Joined:
    Sep 9, 2005
    Posts:
    4,510
    Referrals:
    9
    Sythe Gold:
    9
    Discord Unique ID:
    807246764155338833
    Discord Username:
    Covey#1816
    [Project]Swift Controls

    What about a Frame, although you could just use the Tab control as one.

    For names how about JJButton etc.
    Like mine are called CovButtons :D
     
  5. jdsfighter

    jdsfighter Forum Addict
    Visual Basic Programmers

    Joined:
    Jan 21, 2007
    Posts:
    603
    Referrals:
    0
    Sythe Gold:
    0
    [Project]Swift Controls

    Hmm... Is there a frame in SwiftKit?
     
  6. Covey

    Covey Creator of EliteSwitch
    Retired Sectional Moderator Visual Basic Programmers

    Joined:
    Sep 9, 2005
    Posts:
    4,510
    Referrals:
    9
    Sythe Gold:
    9
    Discord Unique ID:
    807246764155338833
    Discord Username:
    Covey#1816
    [Project]Swift Controls

    nah, but it would be a good idea while your at it :p

    Also they do have a Custom ComboBox.
     
  7. jdsfighter

    jdsfighter Forum Addict
    Visual Basic Programmers

    Joined:
    Jan 21, 2007
    Posts:
    603
    Referrals:
    0
    Sythe Gold:
    0
    [Project]Swift Controls

    I see no custom combo, just a button with a down arrow and a list attached ;)
     
  8. Covey

    Covey Creator of EliteSwitch
    Retired Sectional Moderator Visual Basic Programmers

    Joined:
    Sep 9, 2005
    Posts:
    4,510
    Referrals:
    9
    Sythe Gold:
    9
    Discord Unique ID:
    807246764155338833
    Discord Username:
    Covey#1816
    [Project]Swift Controls

    Tis what i use.
    But making a custom drop down would be about 50 times better, you would have to keep remembering which listbox is associated with which button etc.
     
  9. jdsfighter

    jdsfighter Forum Addict
    Visual Basic Programmers

    Joined:
    Jan 21, 2007
    Posts:
    603
    Referrals:
    0
    Sythe Gold:
    0
    [Project]Swift Controls

    The button is going to be built with style property. Is can either be a ComboBox or a button.
     
  10. jdsfighter

    jdsfighter Forum Addict
    Visual Basic Programmers

    Joined:
    Jan 21, 2007
    Posts:
    603
    Referrals:
    0
    Sythe Gold:
    0
    [Project]Swift Controls

  11. Monster Hack

    Monster Hack Member

    Joined:
    Nov 19, 2005
    Posts:
    59
    Referrals:
    2
    Sythe Gold:
    0
    [Project]Swift Controls

    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.
     
  12. Covey

    Covey Creator of EliteSwitch
    Retired Sectional Moderator Visual Basic Programmers

    Joined:
    Sep 9, 2005
    Posts:
    4,510
    Referrals:
    9
    Sythe Gold:
    9
    Discord Unique ID:
    807246764155338833
    Discord Username:
    Covey#1816
    [Project]Swift Controls

    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.
     
  13. jdsfighter

    jdsfighter Forum Addict
    Visual Basic Programmers

    Joined:
    Jan 21, 2007
    Posts:
    603
    Referrals:
    0
    Sythe Gold:
    0
    [Project]Swift Controls

    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.
     
  14. Covey

    Covey Creator of EliteSwitch
    Retired Sectional Moderator Visual Basic Programmers

    Joined:
    Sep 9, 2005
    Posts:
    4,510
    Referrals:
    9
    Sythe Gold:
    9
    Discord Unique ID:
    807246764155338833
    Discord Username:
    Covey#1816
    [Project]Swift Controls

    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.
     
  15. jdsfighter

    jdsfighter Forum Addict
    Visual Basic Programmers

    Joined:
    Jan 21, 2007
    Posts:
    603
    Referrals:
    0
    Sythe Gold:
    0
    [Project]Swift Controls

    It will be tricky, but to do it I will probably have to make several properties to aid it.
     
  16. Covey

    Covey Creator of EliteSwitch
    Retired Sectional Moderator Visual Basic Programmers

    Joined:
    Sep 9, 2005
    Posts:
    4,510
    Referrals:
    9
    Sythe Gold:
    9
    Discord Unique ID:
    807246764155338833
    Discord Username:
    Covey#1816
    [Project]Swift Controls

    ahhh, i get ya.
    Like a "ShowTab" property that you can change in design time and will show the frame index of that property value.
    But will have no effect at Run-Time.

    Nice thinking ;)
     
  17. jdsfighter

    jdsfighter Forum Addict
    Visual Basic Programmers

    Joined:
    Jan 21, 2007
    Posts:
    603
    Referrals:
    0
    Sythe Gold:
    0
    [Project]Swift Controls

    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.
     
  18. 0h n035

    0h n035 Active Member

    Joined:
    Feb 1, 2007
    Posts:
    163
    Referrals:
    0
    Sythe Gold:
    0
    [Project]Swift Controls

    Can't wait till SwiftButton ands SwiftTab are finished :D
     
  19. jdsfighter

    jdsfighter Forum Addict
    Visual Basic Programmers

    Joined:
    Jan 21, 2007
    Posts:
    603
    Referrals:
    0
    Sythe Gold:
    0
    [Project]Swift Controls

    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.
     
  20. Covey

    Covey Creator of EliteSwitch
    Retired Sectional Moderator Visual Basic Programmers

    Joined:
    Sep 9, 2005
    Posts:
    4,510
    Referrals:
    9
    Sythe Gold:
    9
    Discord Unique ID:
    807246764155338833
    Discord Username:
    Covey#1816
    [Project]Swift Controls

    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.
     
< AutoMe Test - How good are you at cheating? | Msoft internet control is not showing websites >


 
 
Adblock breaks this site