Custom Query

Filters
 
Or
 
  
 
Columns

Show under each result:


Results (163 - 165 of 3856)

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

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

_GUICtrlListView_GetCount*P*erPage

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.

Mat

#1837 Rejected _GUICtrlIpAddress_EnableDisable Gary cyrusbuilt@…
Description

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)
EndFunc
#1846 Rejected change _GdiPlus_GraphicsDraw/Fill* functions to corresponding floating point version Gary Eukalyptus
Description

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

_GDIPlus_Startup()

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

GUIRegisterMsg($WM_PAINT, "WM_PAINT")
GUISetState()

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)
Next

_Exit()


Func _GDIPlus_GraphicsDrawLine_Float($hGraphics, $nX1, $nY1, $nX2, $nY2, $hPen = 0)
	__GDIPlus_PenDefCreate($hPen)
	Local $aResult = DllCall($ghGDIPDll, "int", "GdipDrawLine", "handle", $hGraphics, "handle", $hPen, "float", $nX1, "float", $nY1, _
			"float", $nX2, "float", $nY2)
	Local $tmpError = @error, $tmpExtended = @extended
	__GDIPlus_PenDefDispose()
	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)
	Return $GUI_RUNDEFMSG
EndFunc   ;==>WM_PAINT


Func _Exit()
	_GDIPlus_PenDispose($hPenR)
	_GDIPlus_PenDispose($hPenG)
	_GDIPlus_GraphicsDispose($hGfxBuffer)
	_GDIPlus_BitmapDispose($hBmpBuffer)
	_GDIPlus_GraphicsDispose($hGraphics)
	_GDIPlus_Shutdown()
	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 ;))

E

Note: See TracQuery for help on using queries.