Custom Query


Show under each result:

Results (163 - 165 of 3856)

Ticket Resolution Summary Owner Reporter
#1822 Wont Fix _GUICtrlListView_GetCounterPage??? Gary Mat

Ummm... Is there a reason for the ridiculous naming of this function?


It works fine (using send message with LVM_GETCOUNTPERPAGE) so it must be a typo, followed by a lot of people not noticing. It even says "ListView Get Counter Page" in the example.


#1837 Rejected _GUICtrlIpAddress_EnableDisable Gary cyrusbuilt@…

There is currently a UDF to show/hide a IPAddress control, but not one to enable/disable it. The built-in function GUICtrlSetState() does not seem to have any affect on the IPAddress control either. As such, I propose the addition of a UDF to enable/disable the IPAddress control in the GuiIPAddress.au3 library. The implementation would wrap _WinAPI_EnableWindow() from WinAPI.au3 much like _GUICtrlIpAddress_ShowHide() wraps _WinAPI_ShowWindow().

The following is the proposed implementation:

#include <WinAPI.au3>
Func _GUICtrlIpAddress_EnableDisable($hWnd, $iState = @SW_ENABLE)
	If (Not IsHWnd($hWnd)) Then Return SetError(1, 1, 0)
	If (($iState <> @SW_ENABLE) And ($iState <> @SW_DISABLE)) Then Return SetError(2, 1, 0)
	Local $enabled = True
	If ($iState == @SW_DISABLE) Then $enabled = False
	Return (_WinAPI_EnableWindow($hWnd, $enabled) <> 0)
#1846 Rejected change _GdiPlus_GraphicsDraw/Fill* functions to corresponding floating point version Gary Eukalyptus

all _GdiPlus_GraphicsDraw/Fill functions use the integer version. to get smoother results it´s better to use the float versions of: GdipDrawArcI GdipDrawBezierI GdipDrawClosedCurveI GdipDrawCurveI GdipDrawEllipseI GdipDrawLineI GdipDrawPieI GdipDrawPolygonI GdipDrawRectangleI

GdipFillClosedCurveI GdipFillEllipseI GdipFillPieI GdipFillPolygonI GdipFillRectangleI

example: red line = int / green line = float

#include <GDIPlus.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>

Opt("GUIOnEventMode", 1)

Global Const $Pi = ATan(1) * 4
Global Const $DegToRad = $Pi / 180


Global $hGui = GUICreate("Test", 800, 600)
Global $hGraphics = _GDIPlus_GraphicsCreateFromHWND($hGui)
Global $hBmpBuffer = _GDIPlus_BitmapCreateFromGraphics(800, 600, $hGraphics)
Global $hGfxBuffer = _GDIPlus_ImageGetGraphicsContext($hBmpBuffer)
_GDIPlus_GraphicsSetSmoothingMode($hGfxBuffer, 2)


Global $hPenR = _GDIPlus_PenCreate(0xFFFF0000, 3)
Global $hPenG = _GDIPlus_PenCreate(0xFF00FF00, 3)

Global $nX, $nY

For $i = 0 To 800 Step 0.1
	_GDIPlus_GraphicsClear($hGfxBuffer, 0xFF000000)
	_GDIPlus_GraphicsDrawLine($hGfxBuffer, $i, 0, $i, 100, $hPenR)
	_GDIPlus_GraphicsDrawLine_Float($hGfxBuffer, $i, 100, $i, 200, $hPenG)

	$nX = Cos($i * $DegToRad) * 200
	$nY = Sin($i * $DegToRad) * 200
	_GDIPlus_GraphicsDrawLine($hGfxBuffer, 200, 400, 200 + $nX, 400 + $nY, $hPenR)
	_GDIPlus_GraphicsDrawLine_Float($hGfxBuffer, 600, 400, 600 + $nX, 400 + $nY, $hPenG)

	_GDIPlus_GraphicsDrawImage($hGraphics, $hBmpBuffer, 0, 0)


Func _GDIPlus_GraphicsDrawLine_Float($hGraphics, $nX1, $nY1, $nX2, $nY2, $hPen = 0)
	Local $aResult = DllCall($ghGDIPDll, "int", "GdipDrawLine", "handle", $hGraphics, "handle", $hPen, "float", $nX1, "float", $nY1, _
			"float", $nX2, "float", $nY2)
	Local $tmpError = @error, $tmpExtended = @extended
	If $tmpError Then Return SetError($tmpError, $tmpExtended, False)
	Return $aResult[0] = 0
EndFunc   ;==>_GDIPlus_GraphicsDrawLine_Float

Func WM_PAINT($hWnd, $uMsgm, $wParam, $lParam)
	_GDIPlus_GraphicsDrawImage($hGraphics, $hBmpBuffer, 0, 0)
EndFunc   ;==>WM_PAINT

Func _Exit()
EndFunc   ;==>_Exit

I suggest to change the "int" functions to "float" and add the "int" in addition, named like this: _GDIPlus_GraphicsDrawLineI (...GDIp.au3 ;))


Note: See TracQuery for help on using queries.