|
-
May 16th, 2000, 09:31 PM
#1
Thread Starter
Fanatic Member
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
-
May 17th, 2000, 01:57 AM
#2
transcendental analytic
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.
-
May 17th, 2000, 02:22 AM
#3
Frenzied Member
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
-
May 17th, 2000, 02:28 AM
#4
transcendental analytic
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.
-
May 17th, 2000, 02:37 AM
#5
Thread Starter
Fanatic Member
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.
-
May 17th, 2000, 02:55 AM
#6
transcendental analytic
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.
-
May 17th, 2000, 11:12 PM
#7
Thread Starter
Fanatic Member
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
-
May 18th, 2000, 12:31 AM
#8
transcendental analytic
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.
-
May 18th, 2000, 12:15 PM
#9
Thread Starter
Fanatic Member
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
-
May 18th, 2000, 10:15 PM
#10
transcendental analytic
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.
-
May 19th, 2000, 01:07 AM
#11
Thread Starter
Fanatic Member
How do I do that? I am using VB6 
Kinjal
-
May 19th, 2000, 01:18 AM
#12
transcendental analytic
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.
-
May 19th, 2000, 12:43 PM
#13
Thread Starter
Fanatic Member
-
May 19th, 2000, 05:23 PM
#14
transcendental analytic
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.
-
May 20th, 2000, 02:43 AM
#15
Thread Starter
Fanatic Member
-
May 20th, 2000, 03:17 AM
#16
transcendental analytic
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.
-
May 20th, 2000, 03:42 AM
#17
Thread Starter
Fanatic Member
-
May 21st, 2000, 11:43 AM
#18
Thread Starter
Fanatic Member
did you liked it Kedaman?
-
May 21st, 2000, 02:59 PM
#19
transcendental analytic
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.
-
May 22nd, 2000, 01:32 AM
#20
Thread Starter
Fanatic Member
-
May 22nd, 2000, 03:35 AM
#21
transcendental analytic
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.
-
May 22nd, 2000, 04:33 AM
#22
Thread Starter
Fanatic Member
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
-
May 22nd, 2000, 04:45 AM
#23
transcendental analytic
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.
-
May 22nd, 2000, 04:19 PM
#24
Thread Starter
Fanatic Member
-
May 22nd, 2000, 04:31 PM
#25
transcendental analytic
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.
-
May 22nd, 2000, 04:56 PM
#26
Thread Starter
Fanatic Member
-
May 23rd, 2000, 04:18 AM
#27
transcendental analytic
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.
-
May 23rd, 2000, 12:27 PM
#28
Thread Starter
Fanatic Member
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
-
May 23rd, 2000, 03:13 PM
#29
transcendental analytic
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|