Results 1 to 29 of 29

Thread: ActiveX Problem?

  1. #1

    Thread Starter
    Fanatic Member kinjalgp's Avatar
    Join Date
    Apr 2000
    Location
    India
    Posts
    535

    Unhappy

    I have three image boxes and one picture box im my activeX control. I specify the picture to be loaded in all the three images using the property window of the control. But as soon as I run the project all the three imagebox become empty! i don't know why?
    Can anyone help me please?

    Kinjal

  2. #2
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    Give us your code
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

  3. #3
    Frenzied Member
    Join Date
    Mar 2000
    Posts
    1,089
    There's a chance it could be that you have your own picture property and it's conflicting with the UserControls Default Picture Property, when you Refer to Picture use Me.Picture instead

  4. #4
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    I suppose you can remove that picturbox and have the usercontrols picture property to handle it. It will save you both resources and Ram. Also i'm just working on an ie-button activeX and it's almost complete
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

  5. #5

    Thread Starter
    Fanatic Member kinjalgp's Avatar
    Join Date
    Apr 2000
    Location
    India
    Posts
    535

    Talking

    Thanks both of you. Kedaman what a coincidence! We both are making same OCX. One rainbow color progress bar and another IE style button. I can't believe it.

  6. #6
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    I was searching for ie-buttons before i got into doing my own, and i got two of them and both was advanced but too damn complicated to use and with much registered dll's and things that made me sick. Now i have a lightweight ie-button, actually it's already ready to use. What i'm doing now is making a toolbar control for having moving around the bars.

    I suppose i can give you the first one now already, i'll put it on my website by tomorrow
    http://www.geocities.com/kedasu
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

  7. #7

    Thread Starter
    Fanatic Member kinjalgp's Avatar
    Join Date
    Apr 2000
    Location
    India
    Posts
    535

    Unhappy

    Kedaman, it did'nt work. I tried to use the UserControl.Picture property but still only the first picture remains in the imagebox and rest all becomes enmpty
    Please help

    Kinjal

  8. #8
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    You haven't posted any code, so i can't help you much in any direction. Also you should post the whole control so that we can see the properties for the images and the control, and that's what i think you don't want to do.

    I'm almost ready to put the control up for you to download
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

  9. #9

    Thread Starter
    Fanatic Member kinjalgp's Avatar
    Join Date
    Apr 2000
    Location
    India
    Posts
    535

    Thumbs up

    I have mailed the code to you Kedaman. And I think no one bothered to reply this post when I last posted the code over here. The number of visitors were going on increasing but no replies so I deleted the code. It seemed that all wanted the code and didn't want to solve my problem.
    Forget it I am reposting the code.

    Kinjal

  10. #10
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    ARgh, you had tons of those keys in your vbs file that my vb5 didn't understand, so i had to remove them, maybe this is what's differing from your project to work, but it works fine in vb. The images stays. As for the images, why not remove them too and declare stdpictures instead. Will spare you even more resources
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

  11. #11

    Thread Starter
    Fanatic Member kinjalgp's Avatar
    Join Date
    Apr 2000
    Location
    India
    Posts
    535
    How do I do that? I am using VB6

    Kinjal

  12. #12
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    Well, i don't actually know what key's was removed, i just removed those vb5 pointed out as illegal.

    I got an idea, im compiling your ocx in vb5 and you run it in vb6. If you see the images, then we've got the problem
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

  13. #13

    Thread Starter
    Fanatic Member kinjalgp's Avatar
    Join Date
    Apr 2000
    Location
    India
    Posts
    535
    Great idea!

    Send me the OCX at [email protected]

    Why dont you paste the modified code over here?

    Kinjal

  14. #14
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    As i said i didn't modify anything. in your code. But i've changed the vbp:

    Type=Control
    UserControl=CustomButton.ctl
    Reference=*\G{00020430-0000-0000-C000-000000000046}#2.0#0#C:\WINDOWS\SYSTEM\STDOLE2.TLB#OLE Automation
    Module=Module1; Module1.bas
    Startup="(None)"
    HelpFile=""
    ExeName32="Kinjal's Custom Button.ocx"
    Command32=""
    Name="KinjalsCustomButton"
    HelpContextID="0"
    CompatibleMode="1"
    CompatibleEXE32="Kinjal's Custom Button.ocx"
    MajorVer=1
    MinorVer=0
    RevisionVer=0
    AutoIncrementVer=0
    ServerSupportFiles=0
    VersionCompanyName="Home"
    CompilationType=0
    OptimizationType=0
    FavorPentiumPro(tm)=0
    CodeViewDebugInfo=0
    NoAliasing=0
    BoundsCheck=0
    OverflowCheck=0
    FlPointCheck=0
    FDIVCheck=0
    UnroundedFP=0
    StartMode=1
    Unattended=0
    ThreadPerObject=0
    MaxNumberOfThreads=1

    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

  15. #15

    Thread Starter
    Fanatic Member kinjalgp's Avatar
    Join Date
    Apr 2000
    Location
    India
    Posts
    535

    Talking

    Thanks a lot Kedaman. I have solved my problem on my own. I found out where I was mistaken.

    The activex is ready for use with many features and easy to operate.
    I have also developed another ActiveX for scrolling the text on the form. You can even control the speed of scrolling.
    If any of you want to try these out tell me and post your email address here. The controls are absolutely free and each contains an example showing it's use.

    Kinjal

  16. #16
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    Well, i want to have that scrolling one, it may be a help me in my lyrics scrolling displayer, but are you drawing the text and scrolling it with bitblt or just using a label?
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

  17. #17

    Thread Starter
    Fanatic Member kinjalgp's Avatar
    Join Date
    Apr 2000
    Location
    India
    Posts
    535
    That's the secret! Check it out first. I'll tell the entire thing later. I promise.

    Kinjal

  18. #18

    Thread Starter
    Fanatic Member kinjalgp's Avatar
    Join Date
    Apr 2000
    Location
    India
    Posts
    535
    did you liked it Kedaman?

  19. #19
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    Tell me, i liked it but i can't have that one in my project, i need more customizabilty. Youre not just scrolling an label, aren't you?
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

  20. #20

    Thread Starter
    Fanatic Member kinjalgp's Avatar
    Join Date
    Apr 2000
    Location
    India
    Posts
    535

    Talking

    Hi! Thanks a lot for testing my control. You are right, I am scrolling the label on the form. This is my first successful ActiveX and beginning of my ActiveX dream of making DotMatrix like scrolling text display. Half of the work is done today and will soon complete it.

    Would you like to test it? Please tell me what customization do you want in it?

    I have also finished the work of Colorful ProgressBar today. You were also making the same thing, if I am not mistaken. Have you finished it? Do send me this ocx along with IE style button maker OCX as soon as you finish it.

    Thanks
    Kinjal
    [email protected]

  21. #21
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    Kinjal, you're not making a matrix effect do you? I have the source on my hompage if you want it. Well i'm going to trash that toolbar and leave the ie buttons since i got the vb6 ocx for toolbars to work. Still i could improve it by making it transparent and add other cool effects. But i'll put that control for all of you to DL. I suppose Kinjal if you want people to have you'r controls, don't put other controls like labels and images into it, because it will eat their ram and res.

    Well, my colorprogbar ocx is pretty useless. I'm thinking of making a pie progreebar
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

  22. #22

    Thread Starter
    Fanatic Member kinjalgp's Avatar
    Join Date
    Apr 2000
    Location
    India
    Posts
    535
    Hi kedaman, My text scroll ocx is just the beginning of my dream of LED matrix scrolling. I just learnt how to begin scrolling and now I am going to add the LED matrix effect to it and also LED 7-segment effect. Would you like to help me?
    Well, hanks for your advice. What else do I use instead of labels?

    Thanks

    Kinjal

  23. #23
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    Just print directly on the form and ok, don't use bitblt, cls and just print it again.

    Well i could help you if i only could know what LED is, i've heard it somewhere but i'm not sure
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

  24. #24

    Thread Starter
    Fanatic Member kinjalgp's Avatar
    Join Date
    Apr 2000
    Location
    India
    Posts
    535

    Talking

    Hi Kedaman!

    LED is acronym for Light Emitting Diode which is used in digital calculators, wrist watches for displaying numbers. The one used in watches and calculators in Liquid Crystal Display (LCD). This does not emit light. LED display is of same shape like LCD but emits red , green yellow or blue light.

    Hope this much is sufficient to make you understand what an LED is? I have previously made a clock program and an countdown counter with LED display shaped numbers but now want the complete alphabets and special characters to be displayed in the LED dots form. Just like moving message boards if you have seen somewhere around airports or railway stations etc.


    Kinjal

  25. #25
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    I knew, it was something from my physics course. ok, when you get the hardware stuff, i'm totally out, i'm just programming software, hey how do you get the LED thing, do you plug it into you com-port?
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

  26. #26

    Thread Starter
    Fanatic Member kinjalgp's Avatar
    Join Date
    Apr 2000
    Location
    India
    Posts
    535
    No kedaman!
    I think you misunderstood my question. I want to make a scrolling text on the form with fonts shaped like LED and dot matrix display. Theres nothing related to hardware. Even I am more interested in programming than hardware even though I am Electronic Engineer

    Kinjal

  27. #27
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    Ok, you're making a display with matrix of dots, you could probably use bitmaps instead of dotting out each pixel. Then scroll the thing with bitblt, it's not too hard
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

  28. #28

    Thread Starter
    Fanatic Member kinjalgp's Avatar
    Join Date
    Apr 2000
    Location
    India
    Posts
    535
    I have made the bitmaps but don't know how to use them with bitblt. I think Pictureclip control is much easier than BitBlt.


    Kinjal

  29. #29
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    Bitblt should be faster than any controls, the decleration is pretty selfexplaining so i think you can find out how to use it:
    Code:
    Declare Function BitBlt Lib "gdi32" Alias "BitBlt" (ByVal hDestDC As Long, ByVal x As Long, ByVal y As Long, ByVal nWidth As Long, ByVal nHeight As Long, ByVal hSrcDC As Long, ByVal xSrc As Long, ByVal ySrc As Long, ByVal dwRop As Long) As Long
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

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