Shaitan00 Posted August 21, 2005 Posted August 21, 2005 I am trying to create a TIMER that starts when you press a START button, pauses when you press the PAUSE button, and Stops when you press the STOP button. So .... I need a START/PAUSE/STOP button, so far the best way I am able to find is to try and draw one using MS-PAINT and adding them as "background images" with no text on typical command buttons. Problem is the background colors don't match... I can't seem to generate the same colors in MS-PAINT as in VS.NET (typical background color). Is there a better way to do this? Pre-built buttons hidden somewhere? etc... Thanks, Quote
Joe Mamma Posted August 21, 2005 Posted August 21, 2005 here are some that came in Delphi: http://www.obj-tec.com/VCRFSFOR.BMP http://www.obj-tec.com/VCRPAUSE.BMP http://www.obj-tec.com/VCRPLAY.BMP http://www.obj-tec.com/VCRRECRD.BMP http://www.obj-tec.com/VCRREWND.BMP the background is System.Drawing.Color.Olive -- (r:128 g:128 b:0) Quote Joe Mamma Amendment 4: The right of the people to be secure in their persons, houses, papers, and effects, against unreasonable searches and seizures, shall not be violated, and no warrants shall issue, but upon probable cause, supported by oath or affirmation, and particularly describing the place to be searched, and the persons or things to be seized. Amendment 9: The enumeration in the Constitution, of certain rights, shall not be construed to deny or disparage others retained by the people.
Joe Mamma Posted August 21, 2005 Posted August 21, 2005 oh yeah. . . put them in an image list and set transparentcolor to olive. Quote Joe Mamma Amendment 4: The right of the people to be secure in their persons, houses, papers, and effects, against unreasonable searches and seizures, shall not be violated, and no warrants shall issue, but upon probable cause, supported by oath or affirmation, and particularly describing the place to be searched, and the persons or things to be seized. Amendment 9: The enumeration in the Constitution, of certain rights, shall not be construed to deny or disparage others retained by the people.
Shaitan00 Posted August 21, 2005 Author Posted August 21, 2005 So there are no built-in methods to C# for these kind of buttons? Olive is kind of ... not the color I was aiming for :) It's more like a beige I guess. Anyways - is the best way really just to find a image file and use it as the background to a normal/typical command button (with no text)? Quote
Joe Mamma Posted August 21, 2005 Posted August 21, 2005 So there are no built-in methods to C# for these kind of buttons? Olive is kind of ... not the color I was aiming for :) It's more like a beige I guess. Anyways - is the best way really just to find a image file and use it as the background to a normal/typical command button (with no text)?Drop an image list on a form. . . put the image in the image list. . . set the transparentcolor of the imagelist to olive. . . color the button to what ever color you want the background to be. . . set the ImageList prop of the button to the image list set the ImageIndex prop of the button to the index of the image in the Image list. . . boom goes the dynamite! Quote Joe Mamma Amendment 4: The right of the people to be secure in their persons, houses, papers, and effects, against unreasonable searches and seizures, shall not be violated, and no warrants shall issue, but upon probable cause, supported by oath or affirmation, and particularly describing the place to be searched, and the persons or things to be seized. Amendment 9: The enumeration in the Constitution, of certain rights, shall not be construed to deny or disparage others retained by the people.
Shaitan00 Posted August 21, 2005 Author Posted August 21, 2005 What exactly is an "image list"? I think that is where I am getting confused. Drop the image (of START/PAUSE/STOP that I drew manually in MS-PAINT) onto the Form? (but I want it in my button) and then add it to an "imagelist" (no clue what that is).... I'll go do some reading also - maybe I can solve this one myself :) Quote
Joe Mamma Posted August 21, 2005 Posted August 21, 2005 http://www.obj-tec.com/toolbar.jpg lotsa info in help Quote Joe Mamma Amendment 4: The right of the people to be secure in their persons, houses, papers, and effects, against unreasonable searches and seizures, shall not be violated, and no warrants shall issue, but upon probable cause, supported by oath or affirmation, and particularly describing the place to be searched, and the persons or things to be seized. Amendment 9: The enumeration in the Constitution, of certain rights, shall not be construed to deny or disparage others retained by the people.
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.