Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

create beveled edge for static label control API for vb and C

21 views
Skip to first unread message

vmars

unread,
Sep 22, 2009, 8:28:01 PM9/22/09
to
Please, how can i create a beveled edge for a static LABEL control,
for vb and C.
Thanks..vmars

Dee Earley

unread,
Sep 23, 2009, 4:14:57 AM9/23/09
to
On 23/09/2009 01:28, vmars wrote:
> Please, how can i create a beveled edge for a static LABEL control,
> for vb and C.

I;ve not seen a native label control with the bevel.
Maybe draw it yourself (via the api) or use a locked textbox?

--
Dee Earley (dee.e...@icode.co.uk)
i-Catcher Development Team

iCode Systems

Fedogor

unread,
Sep 23, 2009, 6:44:10 AM9/23/09
to
> > Please, how can i create a beveled edge for a static LABEL control,
> > for vb and C.

Options fo Label ->

BorderStyle = 1

Dee Earley

unread,
Sep 23, 2009, 6:55:01 AM9/23/09
to

Oh yeah...
Shows how little I use it.

I had assumed the OP was talking about a native win32 label though, in
which case they probably want the SS_SUNKEN style.

Neither of these will be themed at all though.

vmars

unread,
Sep 24, 2009, 12:27:02 PM9/24/09
to
I did make some headway, but only found 1 ExStyle that works.
See below, where i use a LABEL as a BUTTON:


DIM BtnL As LABEL
with BtnL
' .Style=BtnL.Style OR &HB
.ExStyle=BtnL.ExStyle OR &HB ' + &H1000
.Parent=MainForm
.Top=2 ' Btn1.Top-2
.Left=2 ' Btn1.Left-2
.Height=24 ' Btn1.clientheight-2
.width=88 ' Btn1.clientwidth-2
.visible=True
.onclick=Scratchpad_tx
.Color = &HFFFFEE
.Caption=" ScratchPad"
.font=tahoma_18
' .ExStyle= &H0
end with ' BtnL as Label

Thorsten Albers

unread,
Sep 28, 2009, 11:29:15 AM9/28/09
to
vmars <vm...@discussions.microsoft.com> schrieb im Beitrag
<5BB40316-EA82-41B5...@microsoft.com>...

> I did make some headway, but only found 1 ExStyle that works.
> See below, where i use a LABEL as a BUTTON:
>
> DIM BtnL As LABEL
> with BtnL
> ' .Style=BtnL.Style OR &HB
> .ExStyle=BtnL.ExStyle OR &HB ' + &H1000
> .Parent=MainForm
> .Top=2 ' Btn1.Top-2
> .Left=2 ' Btn1.Left-2
> .Height=24 ' Btn1.clientheight-2
> .width=88 ' Btn1.clientwidth-2
> .visible=True
> .onclick=Scratchpad_tx
> .Color = &HFFFFEE
> .Caption=" ScratchPad"
> .font=tahoma_18
> ' .ExStyle= &H0
> end with ' BtnL as Label

In VB <= 6.0 (AKA classic) there is no label control with such properties.
Either you are working with VB.NET, or you are talking about a third party
control. If the first, you should ask your question in an appropriate
newsgroup (which has 'dotnet' in its name). If the latter, you should ask
the manufacturer for help (or, at least, tell us more about the control in
use).

--
Thorsten Albers

albers (a) uni-freiburg.de

mr_unreliable

unread,
Sep 28, 2009, 1:41:22 PM9/28/09
to
Thorsten Albers wrote:
> In VB <= 6.0 (AKA classic) there is no label control with such properties.
>

fwiw, once-upon-a-time microsoft offered such a static/label
control, wrapped up in a container called "ieLabel.ocx".

It was obviously intended for use with IE, but could also
just as well be used with a vb (classic) project. It's main
claim to fame was that the label could be rendered at any
angle to the normal (x,y) axis.

But, the properties of the ieLabel control are not the same
as those mentioned by the OP, and so he/she must be using
some other control found elsewhere.

cheers, jw

Thorsten Albers

unread,
Sep 29, 2009, 6:54:14 AM9/29/09
to

mr_unreliable <kindlyReply...@notmail.com> schrieb im Beitrag
<OjCtiJGQ...@TK2MSFTNGP04.phx.gbl>...

> fwiw, once-upon-a-time microsoft offered such a static/label
> control, wrapped up in a container called "ieLabel.ocx".
>
> But, the properties of the ieLabel control are not the same
> as those mentioned by the OP, and so he/she must be using
> some other control found elsewhere.

And the class name of that control presumably wasn't just 'Label'...

0 new messages