Thread View: be.comp.programming
5 messages
5 total messages
Started by Cliff Beeckman
Wed, 13 Aug 2003 17:43
Gradient achtergrond
Author: Cliff Beeckman
Date: Wed, 13 Aug 2003 17:43
Date: Wed, 13 Aug 2003 17:43
2 lines
1156 bytes
1156 bytes
Iemand een idee hoe je een een gradient achtrgrond verkrijgt in de forms van VB6?
Re: Gradient achtergrond
Author: Billyke
Date: Wed, 13 Aug 2003 18:02
Date: Wed, 13 Aug 2003 18:02
11 lines
1425 bytes
1425 bytes
"Cliff Beeckman" <cliffbeeckman@pandora.be> wrote in message news:0Nu_a.65263$F92.7291@afrodite.telenet-ops.be... > Iemand een idee hoe je een een gradient achtrgrond verkrijgt in de forms van > VB6? > > Zonder API's: http://www.mvps.org/vbnet/code/forms/gradientform.htm Met API's: http://www.mvps.org/vbnet/code/forms/gradientfill.htm
Re: Gradient achtergrond
Author: Cliff Beeckman
Date: Wed, 13 Aug 2003 18:51
Date: Wed, 13 Aug 2003 18:51
24 lines
2052 bytes
2052 bytes
thx voor het adres... ik heb ook even de code geprobeerd voor een XP-style te verkrijgen in mijn programma's. De code heb ik mooi gekopieerd en geplakt en een bestandje met de naam van mijn programma + .exe.manifest maar hij geeft telkens opnieuw een foutmelding dat de configuratie van de toepassing verkeerd is. Zijn er nog andere mogelijkheden om dit te verkrijgen of weet er iemand waaraan dit ligt? "Billyke" <gert.verstappen@gmx.net> schreef in bericht news:bhduiv$lu3$1@reader10.wxs.nl... > > "Cliff Beeckman" <cliffbeeckman@pandora.be> wrote in message > news:0Nu_a.65263$F92.7291@afrodite.telenet-ops.be... > > Iemand een idee hoe je een een gradient achtrgrond verkrijgt in de forms > van > > VB6? > > > > > > Zonder API's: http://www.mvps.org/vbnet/code/forms/gradientform.htm > Met API's: http://www.mvps.org/vbnet/code/forms/gradientfill.htm > >
Re: Gradient achtergrond
Author: Billyke
Date: Wed, 13 Aug 2003 18:57
Date: Wed, 13 Aug 2003 18:57
76 lines
3695 bytes
3695 bytes
"Cliff Beeckman" <cliffbeeckman@pandora.be> wrote in message
news:5Nv_a.65367$F92.7402@afrodite.telenet-ops.be...
> thx voor het adres...
>
> ik heb ook even de code geprobeerd voor een XP-style te verkrijgen in mijn
> programma's. De code heb ik mooi gekopieerd en geplakt en een bestandje
met
> de naam van mijn programma + .exe.manifest maar hij geeft telkens opnieuw
> een foutmelding dat de configuratie van de toepassing verkeerd is. Zijn er
> nog andere mogelijkheden om dit te verkrijgen of weet er iemand waaraan
dit
> ligt?
>
> "Billyke" <gert.verstappen@gmx.net> schreef in bericht
> news:bhduiv$lu3$1@reader10.wxs.nl...
> >
> > "Cliff Beeckman" <cliffbeeckman@pandora.be> wrote in message
> > news:0Nu_a.65263$F92.7291@afrodite.telenet-ops.be...
> > > Iemand een idee hoe je een een gradient achtrgrond verkrijgt in de
forms
> > van
> > > VB6?
> > >
> > >
> >
> > Zonder API's: http://www.mvps.org/vbnet/code/forms/gradientform.htm
> > Met API's: http://www.mvps.org/vbnet/code/forms/gradientfill.htm
> >
> >
>
>
If you provide a manifest, but your application does not link to
ComCtl32.dll, then it will fail to load - sometimes with no error message!.
You need to call at least InitCommonControls before any visual elements are
displayed. Sometimes, you don't need to do anything because your application
may already link to ComCtl32.dll (for example, if it includes any of the
Windows Common Controls provided with Visual Basic), however, to be certain
it works it is best to call InitCommonControls prior to displaying any
forms.
Here is the code you need at the start of your application to ensure you've
linked to ComCtl32.dll:
Private Type tagInitCommonControlsEx
lngSize As Long
lngICC As Long
End Type
Private Declare Function InitCommonControlsEx Lib "comctl32.dll" _
(iccex As tagInitCommonControlsEx) As Boolean
Private Const ICC_USEREX_CLASSES = &H200
Public Function InitCommonControlsVB() As Boolean
On Error Resume Next
Dim iccex As tagInitCommonControlsEx
' Ensure CC available:
With iccex
.lngSize = LenB(iccex)
.lngICC = ICC_USEREX_CLASSES
End With
InitCommonControlsEx iccex
InitCommonControlsVB = (Err.Number = 0)
On Error Goto 0
End Function
Public Sub Main()
InitCommonControlsVB
'
' Start your application here:
'
End Sub
Bron:
http://www.vbaccelerator.com/home/VB/Code/Libraries/XP_Visual_Styles/Using_XP_Visual_Styles_in_VB/article.asp
Re: Gradient achtergrond
Author: Cliff Beeckman
Date: Wed, 13 Aug 2003 19:17
Date: Wed, 13 Aug 2003 19:17
92 lines
4026 bytes
4026 bytes
thx "Billyke" <gert.verstappen@gmx.net> schreef in bericht news:bhe1pv$onc$1@reader10.wxs.nl... > > "Cliff Beeckman" <cliffbeeckman@pandora.be> wrote in message > news:5Nv_a.65367$F92.7402@afrodite.telenet-ops.be... > > thx voor het adres... > > > > ik heb ook even de code geprobeerd voor een XP-style te verkrijgen in mijn > > programma's. De code heb ik mooi gekopieerd en geplakt en een bestandje > met > > de naam van mijn programma + .exe.manifest maar hij geeft telkens opnieuw > > een foutmelding dat de configuratie van de toepassing verkeerd is. Zijn er > > nog andere mogelijkheden om dit te verkrijgen of weet er iemand waaraan > dit > > ligt? > > > > "Billyke" <gert.verstappen@gmx.net> schreef in bericht > > news:bhduiv$lu3$1@reader10.wxs.nl... > > > > > > "Cliff Beeckman" <cliffbeeckman@pandora.be> wrote in message > > > news:0Nu_a.65263$F92.7291@afrodite.telenet-ops.be... > > > > Iemand een idee hoe je een een gradient achtrgrond verkrijgt in de > forms > > > van > > > > VB6? > > > > > > > > > > > > > > Zonder API's: http://www.mvps.org/vbnet/code/forms/gradientform.htm > > > Met API's: http://www.mvps.org/vbnet/code/forms/gradientfill.htm > > > > > > > > > > > > If you provide a manifest, but your application does not link to > ComCtl32.dll, then it will fail to load - sometimes with no error message!. > You need to call at least InitCommonControls before any visual elements are > displayed. Sometimes, you don't need to do anything because your application > may already link to ComCtl32.dll (for example, if it includes any of the > Windows Common Controls provided with Visual Basic), however, to be certain > it works it is best to call InitCommonControls prior to displaying any > forms. > > Here is the code you need at the start of your application to ensure you've > linked to ComCtl32.dll: > > Private Type tagInitCommonControlsEx > lngSize As Long > lngICC As Long > End Type > Private Declare Function InitCommonControlsEx Lib "comctl32.dll" _ > (iccex As tagInitCommonControlsEx) As Boolean > Private Const ICC_USEREX_CLASSES = &H200 > > Public Function InitCommonControlsVB() As Boolean > On Error Resume Next > Dim iccex As tagInitCommonControlsEx > ' Ensure CC available: > With iccex > .lngSize = LenB(iccex) > .lngICC = ICC_USEREX_CLASSES > End With > InitCommonControlsEx iccex > InitCommonControlsVB = (Err.Number = 0) > On Error Goto 0 > End Function > > Public Sub Main() > InitCommonControlsVB > > ' > ' Start your application here: > ' > > End Sub > Bron: > http://www.vbaccelerator.com/home/VB/Code/Libraries/XP_Visual_Styles/Using_X P_Visual_Styles_in_VB/article.asp > >
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads