Re: 2 above
I tried resizing the gif first to 24x24 and it seems to work fine.
Printable View
Re: 2 above
I tried resizing the gif first to 24x24 and it seems to work fine.
I really don't know why that happens, but I have the same problem occasionally when loading someone else's project. There's no path reference to the toolbox bitmap that I know of, so I have no idea how to solve that other then manual reloading of the original bmp, which you did. :confused:Quote:
Originally Posted by Vero44
Yes I do, I'm forgetting to asign the proper values to a couple of variables, and I know where in the code that is as well. I'll fix it, will try to post an update today, if you find more, let me know.Quote:
Originally Posted by Vero44
Have another look if you will, the problems you described in #2 should be gone. Image size settings are supposed to stick. If the original image is 48 x 48 and you set it to 24 x 24, next time you fire up that's the size used. These setting will only be lost when you set the normal label image to nothing.Quote:
Originally Posted by Vero44
It all seems to work now, but I'm the worst possible beta tester for my own code, so I'll wait for your findings. ;)
To get a better idea what the "Configure Me" Menulabel on the demo will look like with all the different settings, I added the vbVision Grabhandles (Check Resizable). This way you can resize the MenuLabel on the fly.
In those cases where Drawbox and Fillbox are both False, a dotted rectangle is drawn onto the control to assist while you're resizing it. The properties for this functionality are added to the control for this reason only, are False by default and do not stick.
Have fun, :)
'....final1.zip' :D Sounds like one of my program names!
I'll update the control to test but the last version gave me exactly what I wanted. (Thanks again!)
Only 1 problem I saw:
Using an array of 8 labels, when one menulabel is clicked that brings up a msgbox (in my case correctly because a file was not found), the label highlights correctly. I click OK on the msgbox, I select another menulabel and the previous menulabel is still highlighted. Hover the mouse over the incorrect one and it goes back to the correct colour.
Otherwise the program ran happily in both Windows XP and in PE mode with no requirement for external files.
:DQuote:
Originally Posted by Vero44
My pleasure, I enjoyed creating it.Quote:
Originally Posted by Vero44
You will have the same problem when you use a MenuLabel to display a Popup menu.Quote:
Originally Posted by Vero44
This occurs because either a Msgbox or a Popup menu steal the mouse capture before the MenuLabel can update its state, I think.
I will look into it, there are a few options;
- Use a Trackmouse class, which would add at least one file to your project
- Use Subclassing, which you don't want I think. :)
Perhaps I can figure out another way that won't need any of the above.
I will let you know if and what I can do about it.
That's nice to here, it would be nice if there aren't any hidden issues left.Quote:
Originally Posted by Vero44
Perhaps easier than I thought, that is, if it works for you too. I'll attach just the updated UC.Quote:
Originally Posted by Vero44
Edit:
Changed attachment to updated demo project. I've removed all the testversions from this thread.
That works like a charm Jottum.
I'll try to test on W95 to Vista over the next few weeks. Need to setup a few test machines first. The program I'm developing I will use daily out in the field repairing all varieties of PCs so it will get a good trial.
I just need to create some nice icons for the labels and it'll be ready for use as a final version. Final29 that is........ :D
I really like this menu's feel and I'm sure you'll get lots of downloads from the codebank.
Cool! Sometimes the simplest solutions do. ;)Quote:
Originally Posted by Vero44
You can skip XP and Vista, I'm developing on a Vista box and test for compatibility on an XP box. Both work without any problems. Might save you some work. I still have a Pentium I with W95 here, but haven't used it for ages. If you want, I can see if it still runs and run the demo on it.Quote:
Originally Posted by Vero44
Which can be quite a challenge, there's millions of Icons out there, if you know what you're looking for... Not sure where I've found them, but quite a while back I downloaded almost 6000 true color high quality 128 x 128 png's. I usually can use one of them and shrink it with PSP.Quote:
Originally Posted by Vero44
Glad you like it, like I said it was my pleasure.Quote:
Originally Posted by Vero44
That would be good thanks. I'd like to test it on a W95 box with a basic clean install too though, no VB runtimes as my program is a single exe. Often other programs install these runtimes when required.Quote:
Originally Posted by Jottum
I'll try to develop my own as I know there are lots of copyrighted icons out there. Luckily, this doesn't stop me from using and testing the program for now.Quote:
Originally Posted by Jottum
Without the proper VB runtime files you can not run a VB application, no matter what Windows version. It makes no diffrence if it is a single exe or not. :)Quote:
Originally Posted by Vero44
I'll try to fire up the W95 box today, and let you know the results.
That's true, but that still leave plenty without that restriction. Making your own, is more original anyway.Quote:
Originally Posted by Vero44
The W95 box doesn't run, I'm not sure when I will have the time to find out why that is, but will try to do so this weekend.Quote:
Originally Posted by Jottum