Results 1 to 18 of 18

Thread: [VB6] - TrickControls.

  1. #1

    Thread Starter
    PowerPoster
    Join Date
    Feb 2015
    Posts
    2,671

    [VB6] - TrickControls.

    Hello everyone! Here I will collect a library of controls (OCX), along with the source code as free time. All controls support Unicode.
    PS. Especially test I have no time, so I will be glad if someone would report bugs me.

    Download.
    Attached Files Attached Files
    Last edited by The trick; Apr 30th, 2023 at 10:48 AM.

  2. #2

    Thread Starter
    PowerPoster
    Join Date
    Feb 2015
    Posts
    2,671

    Re: [VB6] - TrickControls.

    TrickButton.


    Control - button. Support translucency and 32 bit icons. The theme used a picture from 10 states of the button. The sequence of states as follows:

    1. Average depressed;
    2. When the mouse depressed;
    3. Average depressed in focus;
    4. When the mouse depressed in focus;
    5. Depressed inactive;
    6. Normal press;
    7. When the mouse pressed;
    8. Average pressed in focus;
    9. When the mouse pressed in focus;
    10. Pressed inactive.

    States disposed vertically:
    Picture themes can contain an alpha channel. To support different scales I decided to make scalable and non-scalable zone. For example, take one state:
    Field of violet color remain unscaled and located at the corners of control, red color stretch vertically and make right and left side, the green area - horizontal (upper and lower), the blue area is stretched along both axes and control fills the inside. The size of the boundary areas for simplification I made one value set properties Bevel. For example Bevel = 5 specifies the size of the outer regions 5 pixels. Button icons support, and 24-bit or 32-bit. It is also possible for each state to assign an icon for it as an icon to choose the same sequence and set the property MultiIcon = True. The position of icons on the text is customizable, you can put an icon on the left, top, right, bottom. You can also adjust the position of the contents horizontally and vertically. The distance between the edges of the control and between the text and icon set by property Spacing. To improve performance, transparency can be turned off (when the background is uniform), this is done by setting properties Transparent. Transparency works as follows: when you move a control, the picture below it is stored in the buffer, thus it is the background, so that if the background is changed, it is necessary to call SetWindowPos to synchronize background. Soft property specifies the mode of smooth rendering. The control supports additional mouse events (scroll wheel mouse care with control, approach control can sound like the story)

  3. #3

    Thread Starter
    PowerPoster
    Join Date
    Feb 2015
    Posts
    2,671

    Re: [VB6] - TrickControls.

    TrickCheckbox.


    Control - checkbox. All properties are similar TrickButton. State are in the same sequence, only added more sosotoyaniya for Checked and Grayed, a total of 30 states.
    For example:
    It is possible to set the position of the flag property CheckPos, relative to the text.

  4. #4

    Thread Starter
    PowerPoster
    Join Date
    Feb 2015
    Posts
    2,671

    Re: [VB6] - TrickControls.

    TrickRadiobutton.


    Control - radio button. All properties are similar TrickCheckBox. State go to the sequence of states for False and True, a total of 20 states.

  5. #5
    New Member
    Join Date
    Dec 2015
    Posts
    2

    Re: [VB6] - TrickControls.

    Hi
    Thanks for posting this code, its going to help me. I have one (perhaps dumb) question. In my IDE when I try to find definitions for things like IFont...they cannot be found. Seems they live i stdole2 ? Any idea why VB doesnt display them or seem to help me in anyway with them ?

  6. #6

  7. #7
    New Member
    Join Date
    Dec 2015
    Posts
    2

    Re: [VB6] - TrickControls.

    Doh ! Thank you sir
    BTW, nicely written code ! Its rare to find vb examples that are easy to read and understand.

  8. #8
    PowerPoster
    Join Date
    Sep 2012
    Posts
    2,083

    Re: [VB6] - TrickControls.

    Quote Originally Posted by The trick View Post
    Hello everyone! Here I will collect a library of controls (OCX), along with the source code as free time. All controls support Unicode.
    PS. Especially test I have no time, so I will be glad if someone would report bugs me.

    Download.
    I can not open the download link above. Could someone upload TrickButton to vbForums? Thanks very much.
    Last edited by dreammanor; Mar 24th, 2017 at 06:14 PM.

  9. #9
    Lively Member
    Join Date
    Dec 2016
    Posts
    86

    Re: [VB6] - TrickControls.

    Nice job

  10. #10
    Frenzied Member
    Join Date
    Dec 2008
    Location
    Melbourne Australia
    Posts
    1,487

    Re: [VB6] - TrickControls.

    Quote Originally Posted by dreammanor View Post
    I can not open the download link above. Could someone upload TrickButton to vbForums? Thanks very much.
    I have downloaded the rar file
    vbForums don't like us attaching anything compiled, so attaching it here is not an option.
    If you PM me your email address, I will send it to you
    (is rar OK, or do you prefer zip ?)

  11. #11
    PowerPoster
    Join Date
    Sep 2012
    Posts
    2,083

    Re: [VB6] - TrickControls.

    Quote Originally Posted by Bobbles View Post
    I have downloaded the rar file
    vbForums don't like us attaching anything compiled, so attaching it here is not an option.
    If you PM me your email address, I will send it to you
    (is rar OK, or do you prefer zip ?)
    Hi Bobbles, I have sent my email address to you, please check, thank you very much.

  12. #12
    Member
    Join Date
    Nov 2020
    Posts
    35

    Re: [VB6] - TrickControls.

    Quote Originally Posted by The trick View Post
    Hello everyone! Here I will collect a library of controls (OCX), along with the source code as free time. All controls support Unicode.
    PS. Especially test I have no time, so I will be glad if someone would report bugs me.

    Download.
    could you please re-upload your controls- thank you

  13. #13
    Registered User
    Join Date
    Mar 2013
    Posts
    2

    Re: [VB6] - TrickControls.

    Quote Originally Posted by The trick View Post
    Hello everyone! Here I will collect a library of controls (OCX), along with the source code as free time. All controls support Unicode.
    PS. Especially test I have no time, so I will be glad if someone would report bugs me.

    Download.
    Please upload again as link shows Google Drive error. Thanks.

  14. #14

  15. #15
    New Member
    Join Date
    Nov 2013
    Posts
    15

    Re: [VB6] - TrickControls.

    Hi to All
    Thank for share your work, the Trick... but, you could remove the EXE inside the RAR, Google Drive marks them as infected.

    Thanks Again

    Attachment 179309

  16. #16
    PowerPoster
    Join Date
    Jan 2020
    Posts
    3,742

    Re: [VB6] - TrickControls.

    can't download ,why?

  17. #17

  18. #18
    PowerPoster
    Join Date
    Jan 2020
    Posts
    3,742

    Re: [VB6] - TrickControls.

    That's all right. Thank you very much.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width