Publié : dim. 23/juil./2006 19:46
wow , c'est beau 

Forums PureBasic - Français
https://www.purebasic.fr/french/
Code : Tout sélectionner
DesktopExName(index.l) ; Returns the device name of the specified desktop, if any.
DesktopExString(index.l) ; Returns the device string of the specified desktop, if any.
DesktopExRegID(index.l) ; Returns the device id of the specified desktop, if any.
DesktopExRegKey(index.l) ; Returns the device key of the specified desktop, if any.
DesktopExMouseY(index.l) ; Returns the absolute/relative x mouse position.
DesktopExMouseX(index.l) ; Returns the absolute/relative x mouse position.
DesktopExMouse(x.l, y.l, index.l) ; Set the absolute/relative mouse position.
DesktopExLeftArea(index.l) ; Returns the left position (in pixels) in the work area of the specified desktop.
DesktopExTopArea(index.l) ; Returns the top position (in pixels) in the work area of the specified desktop.
DesktopExWidthArea(index.l) ; Returns the right position (in pixels) in the work area of the specified desktop.
DesktopExHeightArea(index.l) ; Returns the bottom position (in pixels) in the work area of the specified desktop.
DesktopExTop(index.l) ; Returns the top position (in pixels) of the specified desktop.
DesktopExLeft(index.l) ; Returns the left position (in pixels) of the specified desktop.
DesktopExWidth(index.l) ; Returns the width (in pixels) of the specified desktop.
DesktopExHeight(index.l) ; Returns the height (in pixels) of the specified desktop.
DesktopExDepth(index.l) ; Returns the depth (bits per pixels) of the specified desktop.
DesktopExFrequency(index.l) ; Returns the frequency (in Hz) of the specified desktop.
DesktopExID(index.l) ; Returns the handle (HMONITOR) of the specified desktop.
DesktopExFlags(index.l) ; Returns the device flags of the specified desktop.
DesktopExIsActive(index.l) ; Returns #TRUE if the specified desktop is active, else #False.
DesktopExIsPrimary(index.l) ; Returns #TRUE if the specified desktop is the primary one, else #False.
DesktopExIsRemote(index.l) ; Returns #TRUE if the specified desktop is remote one (Terminal Server), else #False.
DesktopExIsRemovable(index.l) ; Returns #TRUE if the specified desktop is removable, else #False.
DesktopExIsVGACompatible(index.l) ; Returns #TRUE if the specified desktop is VGA Compatible, else #False.
DesktopExFromWindow(*hwnd) ; Returns the #Desktop of the specified WindowID.
DesktopExFromRect(*lpRect) ; Returns the #Desktop of the specified RECT structure.
DesktopExFromPoint(x.l, y.l) ; Returns the #Desktop of the specified coords.
elle sert à la même chose que la lib desktop de purebasic 4.0lionel_om a écrit :Elle sert à quoi ta Lib Desktop ? C'ets pour avoir plusieurs bureaux ?
Code : Tout sélectionner
XIncludeFile "rmchart.pbi"
RMChart_INIT()
tChart.tRMC_CHART
tChart\nLeft = 10
tChart\nTop = 10
tChart\nWidth = 800
tChart\nHeight = 600
tChart\nBackColor = #ColorDodgerBlue
tChart\nCtrlStyle = #RMC_CTRLSTYLEFLATSHADOW
tChart\sBgImage = ""; <-- Message d'erreur ! Trying to write a string into a numerical variable
tChart\sFontName = "Tahoma"; <-- Message d'erreur ! Trying to write a string into a numerical variable
nRetVal = RMC_CreateChart(nParentHndl.l, nCtrlId.l, tChart\nLeft.l,tChart\nTop.l,tChart\nWidth.l,tChart\nHeight.l,tChart\nBackColor.l,tChart\nCtrlStyle.l, nExportOnly.l, tChart\sBgImage, tChart\sFontName)
If OpenWindow(0, 0, 0, 800, 600,"Test", #PB_Window_SystemMenu | #PB_Window_ScreenCentered | #PB_Window_MinimizeGadget) = 0 Or CreateGadgetList(WindowID(0)) = 0
End
EndIf
StartDrawing(WindowOutput(0))
DrawingMode(1)
StopDrawing()
Repeat
Event = WaitWindowEvent()
Until Event = #PB_Event_CloseWindow
End
Code : Tout sélectionner
Enumeration 0 ; CtrlStyle
#RMC_CTRLSTYLEFLAT
#RMC_CTRLSTYLEFLATSHADOW
#RMC_CTRLSTYLE3D
#RMC_CTRLSTYLE3DLIGHT
#RMC_CTRLSTYLEIMAGE
#RMC_CTRLSTYLEIMAGETILED
EndEnumeration
#ColorDodgerBlue = $FF1E90FF
Structure tRMC_CHART
nTop.l
nLeft.l
nWidth.l
nHeight.l
nBackColor.l
nCtrlStyle.l
nExportOnly.l
sBgImage.s[100]
sFontName.s[50]
EndStructure
tChart.tRMC_CHART
tChart\nLeft = 10
tChart\nTop = 10
tChart\nWidth = 800
tChart\nHeight = 600
tChart\nBackColor = #ColorDodgerBlue
tChart\nCtrlStyle = #RMC_CTRLSTYLEFLATSHADOW
tChart\sBgImage = ""
tChart\sFontName = "Tahoma"