DrawScrollArrow

Windows specific forum
Konne
Enthusiast
Enthusiast
Posts: 434
Joined: Thu May 12, 2005 9:15 pm

DrawScrollArrow

Post by Konne »

PB didn't define this Function: (DrawScrollArrow)
http://msdn.microsoft.com/library/defau ... larrow.asp
How can I use it anyway?
Apart from that Mrs Lincoln, how was the show?
User avatar
Flype
Addict
Addict
Posts: 1542
Joined: Tue Jul 22, 2003 5:02 pm
Location: In a long distant galaxy

Post by Flype »

this function is for Vista only - so i can't test it but this should work :

Code: Select all

Import "User32.lib"
  DrawScrollArrow(hdc.l, lprc.l, wControlState.l, rgbOveride.l)
EndImport
No programming language is perfect. There is not even a single best language.
There are only languages well suited or perhaps poorly suited for particular purposes. Herbert Mayer
Konne
Enthusiast
Enthusiast
Posts: 434
Joined: Thu May 12, 2005 9:15 pm

Post by Konne »

THx but If I'M trying to run this Code I get two POLINK Errors.

Code: Select all

Import "User32.lib"
  DrawScrollArrow(hdc.l, lprc.l, wControlState.l, rgbOveride.l)
EndImport

DrawScrollArrow(0,0,0,0)
Apart from that Mrs Lincoln, how was the show?
User avatar
Hroudtwolf
Addict
Addict
Posts: 803
Joined: Sat Feb 12, 2005 3:35 am
Location: Germany(Hessen)
Contact:

Post by Hroudtwolf »

DrawFrameControl is another option.

Code: Select all

; Hroudtwolf
; 2006. PB 4.00
If OpenWindow(0, 0,0, 300, 300, "DrawFrameControl", #PB_Window_SystemMenu | #PB_Window_MinimizeGadget | #PB_Window_MaximizeGadget)
  hdc.l=GetDC_(WindowID(0))
  ;>---Button--->
  For x=0 To 2
    framerect.RECT
    framerect\left=10+(x*40)
    framerect\top=10
    framerect\right=25+(x*40)
    framerect\bottom=25 
    DrawFrameControl_(hdc.l,@framerect,#DFC_BUTTON,x)
  Next x
  ;<---Button---<
  ;>---Titlebar Buttons--->
  For x=0 To 4
    framerect.RECT
    framerect\left=10+(x*40)
    framerect\top=50
    framerect\right=40+(x*40)
    framerect\bottom=80 
    DrawFrameControl_(hdc.l,@framerect,#DFC_CAPTION,x)
  Next x
  ;<---Titlebar Buttons---<
  ;>---Scroll Buttons--->
  For x=0 To 3
    framerect.RECT
    framerect\left=10+(x*40)
    framerect\top=90
    framerect\right=40+(x*40)
    framerect\bottom=120 
    DrawFrameControl_(hdc.l,@framerect,#DFC_SCROLL,x)
  Next x
  ;<--Scroll Buttons---<
  ;>---Menü--->
  For x=0 To 2
    framerect.RECT
    framerect\left=10+(x*40)
    framerect\top=130
    framerect\right=40+(x*40)
    framerect\bottom=150 
    DrawFrameControl_(hdc.l,@framerect,#DFC_MENU,x)
  Next x
  ;<--Menü---<
 
  ReleaseDC_(WindowID(0),hdc.l)
  Repeat:Until WaitWindowEvent() = #PB_Event_CloseWindow 
EndIf
End 
Konne
Enthusiast
Enthusiast
Posts: 434
Joined: Thu May 12, 2005 9:15 pm

Post by Konne »

Thx but this Function ignores the XP Skin Support.
Apart from that Mrs Lincoln, how was the show?
User avatar
Flype
Addict
Addict
Posts: 1542
Joined: Tue Jul 22, 2003 5:02 pm
Location: In a long distant galaxy

Post by Flype »

Konne wrote:THx but If I'M trying to run this Code I get two POLINK Errors.

Code: Select all

Import "User32.lib"
  DrawScrollArrow(hdc.l, lprc.l, wControlState.l, rgbOveride.l)
EndImport

DrawScrollArrow(0,0,0,0)
you can try to use the file 'User32.lib' provided with the Microsoft Vista PSDK. it should be inside, and if you are luckily it could work...
No programming language is perfect. There is not even a single best language.
There are only languages well suited or perhaps poorly suited for particular purposes. Herbert Mayer
Post Reply