Using Line Control On a Dialog
-
I use Visual C++ 6.0 Professional with Visual Studio. In the Dialog design tool I would like to put a raised bump line or a sunken line grove onto the dialog. The problem is that for reasons unknown to me there is no LINE tool on the Dialog Controls Palette Tool bar. Can anyone tell me how to design a line into my dialog at design time? Then also is there some way to add a line tool to the Dialog Controls Tool Bar? Thanks Mike
-
I use Visual C++ 6.0 Professional with Visual Studio. In the Dialog design tool I would like to put a raised bump line or a sunken line grove onto the dialog. The problem is that for reasons unknown to me there is no LINE tool on the Dialog Controls Palette Tool bar. Can anyone tell me how to design a line into my dialog at design time? Then also is there some way to add a line tool to the Dialog Controls Tool Bar? Thanks Mike
THis bevel line control should do what you need: http://www.codeproject.com/staticctrl/rotated\_bevel.asp Roger Allen Sonork 100.10016 If I'm not breathing, I'm either dead or holding my breath. A fool jabbers, while a wise man listens. But is he so wise to listen to the fool? Please step to the rear of the car and make room for more victims. - John Simmons the Outlaw programmer, 1st Feb 2002, in the lounge
-
THis bevel line control should do what you need: http://www.codeproject.com/staticctrl/rotated\_bevel.asp Roger Allen Sonork 100.10016 If I'm not breathing, I'm either dead or holding my breath. A fool jabbers, while a wise man listens. But is he so wise to listen to the fool? Please step to the rear of the car and make room for more victims. - John Simmons the Outlaw programmer, 1st Feb 2002, in the lounge
-
I use Visual C++ 6.0 Professional with Visual Studio. In the Dialog design tool I would like to put a raised bump line or a sunken line grove onto the dialog. The problem is that for reasons unknown to me there is no LINE tool on the Dialog Controls Palette Tool bar. Can anyone tell me how to design a line into my dialog at design time? Then also is there some way to add a line tool to the Dialog Controls Tool Bar? Thanks Mike
Add a "Picture" control from the resource editor's Controls pallette. Set its "Type" to "Frame" and its "Color" to "Etched". To create a horizontal line, resize the control so that its height is zero; to create a vertical control, set its width to zero. /ravi "There is always one more bug..." ravib@ravib.com http://www.ravib.com
-
Add a "Picture" control from the resource editor's Controls pallette. Set its "Type" to "Frame" and its "Color" to "Etched". To create a horizontal line, resize the control so that its height is zero; to create a vertical control, set its width to zero. /ravi "There is always one more bug..." ravib@ravib.com http://www.ravib.com
-
Ravi Bhavnani wrote: To create a horizontal line, resize the control so that its height is zero; to create a vertical control, set its width to zero you couldn't set it to zero. Instead, you can set it to one. I think that is what you want to say.
Picky, picky. :) Yes. /ravi "There is always one more bug..." ravib@ravib.com http://www.ravib.com
-
Picky, picky. :) Yes. /ravi "There is always one more bug..." ravib@ravib.com http://www.ravib.com
Ravi Use this [:-O] instead of pinky pinky :-) Nish Nish was here, now Nish has gone; He left his soul, to turn you on; Those who knew Nish, knew him well; Those who didn't, can go to hell. I like to :jig: on the Code Project Sonork ID 100.9786 voidmain www.busterboy.org
-
Add a "Picture" control from the resource editor's Controls pallette. Set its "Type" to "Frame" and its "Color" to "Etched". To create a horizontal line, resize the control so that its height is zero; to create a vertical control, set its width to zero. /ravi "There is always one more bug..." ravib@ravib.com http://www.ravib.com
This is a great idea Ravi. I like this solution because it can be totally handled at design time and requires no code to be added. After all who wants to have to add more code to draw a line on a Dialog Box..... I still miss the old Borland BC3.1 C C++ compiler from 10 years ago for programming with Win 3.1 & WFW. Their RESOURCE WORKSHOP tool had a nice line control with six separate styles to pick from....Why today does MS not support the lowly line???? Mike
-
This is a great idea Ravi. I like this solution because it can be totally handled at design time and requires no code to be added. After all who wants to have to add more code to draw a line on a Dialog Box..... I still miss the old Borland BC3.1 C C++ compiler from 10 years ago for programming with Win 3.1 & WFW. Their RESOURCE WORKSHOP tool had a nice line control with six separate styles to pick from....Why today does MS not support the lowly line???? Mike
Yes, I remember Borland's RW and OWL! /ravi "There is always one more bug..." http://www.ravib.com ravib@ravib.com