Mirage Source http://miragesource.net/forums/ |
|
Check box http://miragesource.net/forums/viewtopic.php?f=201&t=3783 |
Page 1 of 2 |
Author: | Pbcrazy [ Fri May 30, 2008 6:35 pm ] |
Post subject: | Check box |
How would you make a check box invisible or at least where it doesnt have a lil grey ring around it. i want it to have the same background as the forms pic. |
Author: | GIAKEN [ Fri May 30, 2008 6:44 pm ] |
Post subject: | Re: Check box |
I think that you can change it from being 3D to being flat and that takes away the border? |
Author: | Asrrin29 [ Fri May 30, 2008 7:02 pm ] |
Post subject: | Re: Check box |
If I read your thoughts correctly, you are going to be disappointed with Visual Basic. see, one of it's biggest faults I have slowly learned is that the default controls don't let you change the way they look by too much. ( I assume you wanted to make the check box look more in line with the rest of your game, by adding a background or something) Command buttons, list boxes, pretty much EVERY thing aside from labels can't be turned transparent or have a background or change their stylings. you can change colors, but that's about it. you will have to create custom controls or use hWnd and windows API calls to get the controls to behave exactly as you want them to, and that is a long and arduous process. |
Author: | Pbcrazy [ Fri May 30, 2008 7:04 pm ] |
Post subject: | Re: Check box |
well could you tell me how to make a custom control, or which ever one is easier. |
Author: | Asrrin29 [ Fri May 30, 2008 7:06 pm ] |
Post subject: | Re: Check box |
Not really no. Like I said, you need to learn about API, window hooks and a lot of other advanced stuff that I have hardly touched myself. Try googling and see what you come up with. |
Author: | Pbcrazy [ Fri May 30, 2008 7:08 pm ] |
Post subject: | Re: Check box |
ok, oh boy this should be fun. |
Author: | Rezeyu [ Fri May 30, 2008 7:36 pm ] |
Post subject: | Re: Check box |
Or jsut.. use something else. Just make a Checkbox in Photoshop/Paint and use that as an Image attached to a variable, or even jsut visibility. |
Author: | Stomach Pulser [ Fri May 30, 2008 8:42 pm ] |
Post subject: | Re: Check box |
Make a check box in photoshop (or something) and make it fit in with your GUI. Then, in the code, when a user clicks on the checkbox, load up a second image of the checked checkbox. You could also make it invisible this way and add cool things, such as hover affects... |
Author: | Pbcrazy [ Fri May 30, 2008 8:55 pm ] |
Post subject: | Re: Check box |
i didnt think of that XD. ill do that. but whats a hover effect lol. |
Author: | GIAKEN [ Fri May 30, 2008 9:01 pm ] |
Post subject: | Re: Check box |
It's an event for objects. Make a picture box the size of your checkbox you made and in Sub Main() have it set the picture depending on the variable and then double click the picture box and click the drop down box and select MouseDown or MouseOver and try experimenting with those. |
Author: | Pbcrazy [ Fri May 30, 2008 9:09 pm ] |
Post subject: | Re: Check box |
hmmm so like if mouse over then load the picbox with like a gray check a couple pixels above where the real one will go. then if click or mouse down then load the real black check. |
Author: | Stomach Pulser [ Fri May 30, 2008 9:53 pm ] |
Post subject: | Re: Check box |
If you hover over a button, it lights up. If you click it, it gets gray. If you release(after clicking), it changes to maybe a different color. YOu can apply these to anything (such as a checkbox). |
Author: | William [ Fri May 30, 2008 10:06 pm ] |
Post subject: | Re: Check box |
Just grab the color of your gui, and put that color as the check boxes bkg color. |
Author: | shaded [ Sat May 31, 2008 1:08 am ] |
Post subject: | Re: Check box |
Another alternative: When the form loads the check boxes add this: Check1.Height = 0 Check1.Width = Check1.Height Also make the check box flat rather than 3d. Then use a label set to transparent. *Note: This is just another method not the best. |
Author: | Pbcrazy [ Sat May 31, 2008 2:45 am ] |
Post subject: | Re: Check box |
ok thanks you guys i think im just goin to go with the pic boxes that way i can add stuff to it. thanks for the help |
Page 1 of 2 | All times are UTC |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |