Custom Query

Filters
 
Or
 
  
 
Columns

Show under each result:


Results (52 - 54 of 3827)

Ticket Resolution Summary Owner Reporter
#272 Rejected _FileListArrayEx() - with recursive option Gary Zedna
Description

Make it as standard UDF because it's very common functionality

http://www.autoitscript.com/forum/index.php?showtopic=33930 http://www.autoitscript.com/forum/index.php?showtopic=33930&st=15&p=318110&#entry318110 http://www.autoitscript.com/forum/index.php?showtopic=33930&st=0&p=295819&#entry295819

#275 Completed Addition of _GDIPlus_GraphicsFillPolygon() to GDIPlus.au3 Gary smashly
Description
#AutoIt3Wrapper_au3check_parameters=-d -w 1 -w 2 -w 3 -w 4 -w 5 -w 6
#include <GDIPlus.au3>
; #FUNCTION# ===================================================================================
; Name...........: _GDIPlus_GraphicsFillPolygon
; Description ...: Fill a polygon
; Syntax.........: _GDIPlus_GraphicsFillPolygon($hGraphics, $aPoints[, $hBrush = 0])
; Parameters ....: $hGraphics   - Handle to a Graphics object
;                  $aPoints     - Array that specify the vertices of the polygon:
;                  |[0][0] - Number of vertices
;                  |[1][0] - Vertice 1 X position
;                  |[1][1] - Vertice 1 Y position
;                  |[2][0] - Vertice 2 X position
;                  |[2][1] - Vertice 2 Y position
;                  |[n][0] - Vertice n X position
;                  |[n][1] - Vertice n Y position
;                  $hBrush      - Handle to a brush object that is used to fill the polygon.
;                               - If $hBrush is 0, a solid black brush is used.
; Return values .: Success      - True
;                  Failure      - False
; Author ........:
; Modified.......: smashly
; Remarks .......:
; Related .......:
; Link ..........; @@MsdnLink@@ GdipFillPolygonI
; Example .......; Yes
; ===============================================================================================
Func _GDIPlus_GraphicsFillPolygon($hGraphics, $aPoints, $hBrush = 0)
	Local $iI, $iCount, $pPoints, $tPoints, $aResult, $tmpError, $tmpExError

	$iCount = $aPoints[0][0]
	$tPoints = DllStructCreate("int[" & $iCount * 2 & "]")
	$pPoints = DllStructGetPtr($tPoints)
	For $iI = 1 To $iCount
		DllStructSetData($tPoints, 1, $aPoints[$iI][0], (($iI - 1) * 2) + 1)
		DllStructSetData($tPoints, 1, $aPoints[$iI][1], (($iI - 1) * 2) + 2)
	Next

	_GDIPlus_BrushDefCreate($hBrush)
	$aResult = DllCall($ghGDIPDll, "int", "GdipFillPolygonI", "hWnd", $hGraphics, "hWnd", $hBrush, _
			"ptr", $pPoints, "int", $iCount, "int", "FillModeAlternate")
	$tmpError = @error
	$tmpExError = @extended
	_GDIPlus_BrushDefDispose()
	If $tmpError Then Return SetError($tmpError, $tmpExError, False)
	Return SetError($aResult[0], 0, $aResult[0] = 0)
EndFunc   ;==>_GDIPlus_GraphicsFillPolygon

Example attached

#285 Fixed UDF Misc - _ChoosColor broken with Autoit 3.2.12.0 Gary water
Description

UDF: Misc Management - _ChooseColor gives errors with new Autoit 3.2.12.0

C:\Programme\AutoIt3\Examples\Helpfile\_ChooseColor.au3(37,31) : ERROR: Opt() called with illegal argument 1: "ColorMode"

$oldOpt = Opt('ColorMode', 0)

C:\Programme\AutoIt3\Examples\Helpfile\_ChooseColor.au3(38,39) : ERROR: Opt() called with illegal argument 1: "ColorMode"

If $Type = 1 Then Opt('ColorMode', 1)

C:\Programme\AutoIt3\Examples\Helpfile\_ChooseColor.au3(49,27) : ERROR: Opt() called with illegal argument 1: "ColorMode"

Opt('ColorMode', $oldOpt)

C:\Programme\AutoIt3\Examples\Helpfile\_ChooseColor.au3 - 3 error(s), 0 warning(s)

Note: See TracQuery for help on using queries.