Line control??

  • Thread starter Thread starter Danny Tuppeny
  • Start date Start date
D

Danny Tuppeny

Hi all,

Lots of MS's apps have horizontal lines in dialogs, that look very much like
thr GroupControl, but they're just single lines. Any way I can have lines
like this in my apps without having a GroupControl with three sides off the
form? ;o)
 
2 Lines, one black, one white.
Move them slowly over each other until you get that 3D look.
You could also make the black one, grey or silver.
 
A common way to achieve this is to add a label with either width or height
set to 2 and borderstyle set to Fixed3D.
 
Just out of interest. What about a button.
Top Line: white
Left Line: white
Right Line: Black
Bottom Line: Black

When you click in the area of the button swop the colors.

LOL, wow this takes me back, I must be getting old.......
 
Kevin said:
2 Lines, one black, one white.
Move them slowly over each other until you get that 3D look.
You could also make the black one, grey or silver.

I'm sure that's not how MS do it! ;o)

I assume that would have to be done in code, and can't be done in the
designer. If so, I'll do without - that's messy :)
 
"Mick Doherty"
A common way to achieve this is to add a label with either width or height
set to 2 and borderstyle set to Fixed3D.

That's a slightly better hack - thanks! :)
 
Oh no, by the way that's exactly how MS do it.
How do you think the label control you are using now is drawn.
It's all lines, just lines. I'm almost positive you'll click it in the
end.
 
I use panel with height set to 1 pix (or width in case of vertical
line)

same way colored frames around say a text box - you put text box
withoug a border in a panel that is slightly larger, then by changing
back color of panel you get that border effect for your text box and
you can change the color if you wont instead sticking with black only

hope it helps
 
Dino Buljubasic said:
I use panel with height set to 1 pix (or width in case of vertical
line)

same way colored frames around say a text box - you put text box
withoug a border in a panel that is slightly larger, then by changing
back color of panel you get that border effect for your text box and
you can change the color if you wont instead sticking with black only

hope it helps

LOL! That's just sick!!

*makes notes*
 
Danny said:
Are you following me around? ;oP

I think I know your name from the Developer Express newsgroups, is that
right?



Oliver Sturm
 
Oliver Sturm said:
I think I know your name from the Developer Express newsgroups, is that
right?

Yeah, I'm on your msn list!

We chatted about XPO & Web Services a few weeks back (and you wrote an
article on how to do what I couldn't!)!

Incidently, I've bene looking at db4o, which is not only free, but it works
by passing objects to the objectContainer, rather than inheriting from them,
so your classes are "clean" and can easily be passed over web services :)
 
Danny said:
Yeah, I'm on your msn list!

Whoops :-) You are right, of course.
Incidently, I've bene looking at db4o, which is not only free, but it
works by passing objects to the objectContainer, rather than inheriting
from them, so your classes are "clean" and can easily be passed over web
services :)

It's GPL and it requires runtime licenses for commercial use... Not a
licensing model I count as a personal favourite. But if that's not a
problem for you, it certainly looks like an interesting product.


Oliver Sturm
 
Oliver Sturm said:
It's GPL and it requires runtime licenses for commercial use... Not a
licensing model I count as a personal favourite. But if that's not a
problem for you, it certainly looks like an interesting product.

Whoops! I got carried away. I'm using it in my app (which will now be GPL,
so I can use it free)! :)

I also intend to compare the commercial cost (vs XPO, and some others) for
our apps at work - I'm sick of SQL Server! It can't even return a tree with
unlimited levels without something messy like cursors! :-(
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top