Ich komme nicht weiter
Wer möchte mit machen
Sorry für mein Deutsch.
FlowMii coverflow all file loader
-
- [ offen ]
-
getdot -
1. September 2011 um 17:44 -
Geschlossen -
Erledigt
-
-
-
-
kann mir das mal jemand erklären..
was soll das .. was bringt das?
was willst du wissen? -
Es fehlt eine Problembeschreibung, sonst weiß niemand was du brauchst.
-
- Layerd window und png control
- Wenn ich mehr als 100 file lade ist alles zu langsam
- Centred cover probleme (gedrückte maus über centred-cover aber keine reaktion)
- Crash (weisse ich nicht warum (manchmal))Ich gebe langsam auf
sorry für mein Deutsch
-
ich habe heute FlowMii unter XP getested, Ich war überrascht von den Ergebnissen "katastrophe"
eins ist klar, Min directx 9.0c und Min 3GB ram unbedingt notwendig.
Unter XP ändere zeile 276 / 303 / 304 um flowMii normal zu starten
[autoit]276 $Main_Flow_gui = GUICreate($Titel, 1024, 670, -1, -1, $WS_POPUP);, $WS_EX_LAYERED)
[/autoit][autoit][/autoit][autoit];GUISetBkColor(0x01, $Main_Flow_gui)
[/autoit]
;_WinAPI_SetLayeredWindowAttributes($Main_Flow_gui, 0x01, 0xFF, 0x03)Hier paar bilder.
[Blockierte Grafik: http://img713.imageshack.us/img713/6819/flowmii1.png]
[Blockierte Grafik: http://img225.imageshack.us/img225/518/flowmii2.png]
[Blockierte Grafik: http://img683.imageshack.us/img683/7921/flowmii3.png]
[Blockierte Grafik: http://img5.imageshack.us/img5/3887/flowmii4.png]
-
Auf meinem xp sp3 2gb ram läuft es ohne Probleme und sehr Flüssig.
ich nutze so etwas zwar nicht, aber es ist gut gemacht,sieht gut aus.
es fehlt übrigens ein flatnopic.png. -
Ich freue mich sehr..
Heute habe ich Start funktion hinzufügen..
Hier video
http://www.youtube.com/watch?v=r_WinC4u9rY -
Problem erledigt, habe das Problem gelöst (Button mit Alpha)
[autoit]Func _CreateButtonBitmap($IDBTN, $BString, $BX, $BY, $BW, $BH, $BFont = "Comic Sans MS", $BSize = 10, $Bcol = "000000", $BFormat = 0, $BTNLImageSC = "", $BTNCImageSC = "", $BTNRImageSC = "")
[/autoit][autoit][/autoit][autoit]
If StringLeft($Bcol, 2) = "0x" Then $Bcol = StringTrimLeft($Bcol, 2)$BCenter = $BW - ($BH * 2)
[/autoit][autoit][/autoit][autoit]$BTNCenterRes = _ResizeBTN($BTNCImageSC, $BCenter, $BH)
[/autoit][autoit][/autoit][autoit]
Local $BTNNewBitmap = DllCall($ghGDIPDll, "uint", "GdipCreateBitmapFromScan0", "int", $BCenter, "int", $BTNCenterRes[2], "int", 0, "int", 0x0026200A, "ptr", 0, "int*", 0)
$BTNBitmap = $BTNNewBitmap[6]
Local $BTNTexture = _GDIPlus_ImageGetGraphicsContext($BTNBitmap)
For $i = 0 To $BCenter Step $BTNCenterRes[1]
_GDIPlus_GraphicsDrawImage($BTNTexture, $BTNCenterRes[0], $i, 0)
Next
Local $hGraphicB = _GDIPlus_ImageGetGraphicsContext($BTNBitmap)
Local $hBrush = _GDIPlus_BrushCreateSolid("0xFF" & $Bcol)
Local $hFormat = _GDIPlus_StringFormatCreate($BFormat)
Local $hFamily = _GDIPlus_FontFamilyCreate($BFont)
Local $hFont = _GDIPlus_FontCreate($hFamily, $BSize)
Local $BLayout = _GDIPlus_RectFCreate($BX, $BY, 0, 0)
Local $aInfo = _GDIPlus_GraphicsMeasureString($hGraphicB, $BString, $hFont, $BLayout, $hFormat)$infotextResultW = DllStructGetData($aInfo[0], 3)
[/autoit][autoit][/autoit][autoit]
$infotextResultH = DllStructGetData($aInfo[0], 4)
$NewBX = ($BCenter - $infotextResultW) / 2
$NewBY = ($BH - $infotextResultH) / 2Local $BNewLayout = _GDIPlus_RectFCreate($NewBX, $NewBY, 0, 0)
[/autoit][autoit][/autoit][autoit]
Local $aNewInfo = _GDIPlus_GraphicsMeasureString($hGraphicB, $BString, $hFont, $BNewLayout, $hFormat)
Local $aResult = _GDIPlus_GraphicsDrawStringEx($hGraphicB, $BString, $hFont, $aNewInfo[0], $hFormat, $hBrush)_GDIPlus_FontDispose($hFont)
[/autoit][autoit][/autoit][autoit]
_GDIPlus_FontFamilyDispose($hFamily)
_GDIPlus_StringFormatDispose($hFormat)
_GDIPlus_BrushDispose($hBrush)$BTNLeftRes = _ResizeBTN($BTNLImageSC, $BH, $BH)
[/autoit][autoit][/autoit][autoit]
$BTNRightRes = _ResizeBTN($BTNRImageSC, $BH, $BH)$BTNComposite = _GDIPlus_GraphicsCreateFromHWND($Main_Flow_gui)
[/autoit][autoit][/autoit][autoit]
$BTNCompositeBitmap = _GDIPlus_BitmapCreateFromGraphics($BW, $BH, $BTNComposite)
$BTNCompositeGraphic = _GDIPlus_ImageGetGraphicsContext($BTNCompositeBitmap)
Local $hBitmap = _GDIPlus_BitmapCreateHBITMAPFromBitmap($BTNBitmap)
_GDIPlus_GraphicsDrawImageRect($BTNCompositeGraphic, $BTNLeftRes[0], 0, 0, $BH, $BH)
_GDIPlus_GraphicsDrawImageRect($BTNCompositeGraphic, $BTNBitmap, $BH, 0, $BCenter, $BH)
_GDIPlus_GraphicsDrawImageRect($BTNCompositeGraphic, $BTNRightRes[0], $BH + $BCenter, 0, $BH, $BH)SetBitmap($IDBTN, $BTNCompositeBitmap, 255, $BW, $BH)
[/autoit][autoit][/autoit][autoit]_GDIPlus_GraphicsDispose($BTNCompositeGraphic)
[/autoit][autoit][/autoit][autoit]
_WinAPI_DeleteObject($BTNCompositeBitmap)
_GDIPlus_BitmapDispose($BTNBitmap)
_GDIPlus_GraphicsDispose($BTNTexture)
EndFunc ;==>_CreateButtonBitmapFunc _ResizeBTN($PicFile, $PicW, $PicH)
[/autoit][autoit][/autoit][autoit]
Dim $ReturnData[3]
Local $BTNImage = _GDIPlus_ImageLoadFromFile($PicFile)
Local $BTNImageW = _GDIPlus_ImageGetWidth($BTNImage)
Local $BTNImageH = _GDIPlus_ImageGetHeight($BTNImage)
Local $BTNNewW = $PicW
Local $BTNNewH = $PicHIf $BTNImageW >= $BTNImageH Then
[/autoit][autoit][/autoit][autoit]
$BTNImageH *= $BTNNewW / $BTNImageW
$BTNImageW = $BTNNewW
If $BTNImageH > $BTNNewH Then
$BTNImageW *= $BTNNewH / $BTNImageH
$BTNImageH = $BTNNewH
EndIf
Else
$BTNImageW *= $BTNNewH / $BTNImageH
$BTNImageH = $BTNNewH
If $BTNImageW > $BTNNewW Then
$BTNImageH *= $BTNNewW / $BTNImageW
$BTNImageW = $BTNNewW
EndIf
EndIf$graphicsRes = _GDIPlus_GraphicsCreateFromHWND($Main_Flow_gui)
[/autoit][autoit][/autoit][autoit]
$BitmapRes = _GDIPlus_BitmapCreateFromGraphics($BTNImageW, $BTNImageH, $graphicsRes)
$GraphicRes = _GDIPlus_ImageGetGraphicsContext($BitmapRes)
_GDIPlus_GraphicsDrawImageRect($GraphicRes, $BTNImage, 0, 0, $BTNImageW, $BTNImageH)
_GDIPlus_ImageDispose($BTNImage)
_GDIPlus_GraphicsDispose($GraphicRes)
_WinAPI_DeleteObject($BitmapRes)$ReturnData[0] = $BitmapRes
[/autoit][autoit][/autoit][autoit]
$ReturnData[1] = $BTNImageW
$ReturnData[2] = $BTNImageH
Return $ReturnData
EndFunc ;==>_ResizeBTNFunc SetBitmapRes($InImageRes, $iW, $iH)
[/autoit][autoit][/autoit][autoit]
$graphicsRes = _GDIPlus_GraphicsCreateFromHWND($Main_Flow_gui)
$hBitmapRes = _GDIPlus_BitmapCreateFromGraphics($iW, $iH, $graphicsRes)
$hGraphicRes = _GDIPlus_ImageGetGraphicsContext($hBitmapRes)
$hImageRes = _GDIPlus_ImageLoadFromFile($InImageRes)
_GDIPlus_GraphicsDrawImageRect($hGraphicRes, $hImageRes, 0, 0, $iW, $iH)_GDIPlus_ImageDispose($hImageRes)
[/autoit][autoit][/autoit][autoit]
_GDIPlus_GraphicsDispose($hGraphicRes)
_WinAPI_DeleteObject($hBitmapRes)
Return $hBitmapRes
EndFunc ;==>SetBitmapResFunc SetBitmap($hGUI, $hImage, $iOpacity, $iW, $iH)
[/autoit]
Local $hScrDC = _WinAPI_GetDC(0)
Local $hMemDC = _WinAPI_CreateCompatibleDC($hScrDC)
Local $hBitmap = _GDIPlus_BitmapCreateHBITMAPFromBitmap($hImage)
Local $hOld = _WinAPI_SelectObject($hMemDC, $hBitmap)
$TSize = DllStructCreate("long X;long Y")
$pSize = DllStructGetPtr($TSize)
DllStructSetData($TSize, "X", $iW)
DllStructSetData($TSize, "Y", $iH)
$tSource = DllStructCreate("long X;long Y")
$pSource = DllStructGetPtr($tSource)
$tBlend = DllStructCreate("byte Op;byte Flags;byte Alpha;byte Format")
$pBlend = DllStructGetPtr($tBlend)
DllStructSetData($tBlend, "Alpha", $iOpacity)
DllStructSetData($tBlend, "Format", 1)
_WinAPI_UpdateLayeredWindow($hGUI, $hScrDC, 0, $pSize, $hMemDC, $pSource, 0, $pBlend, 0x02)
_WinAPI_ReleaseDC(0, $hScrDC)
_WinAPI_SelectObject($hMemDC, $hOld)
_WinAPI_DeleteObject($hBitmap)
_WinAPI_DeleteDC($hMemDC)
EndFunc ;==>SetBitmapSpoiler anzeigen
[Blockierte Grafik: http://img28.imageshack.us/img28/7145/flowmiik1.png]
[Blockierte Grafik: http://img560.imageshack.us/img560/5616/flowmiik2.png]
[Blockierte Grafik: http://img593.imageshack.us/img593/4665/flowmiim1.png]
[Blockierte Grafik: http://img683.imageshack.us/img683/2825/flowmiim2.png]
[Blockierte Grafik: http://img6.imageshack.us/img6/5088/flowmiim3.png]
[Blockierte Grafik: http://img809.imageshack.us/img809/5530/flowmiis1.png]
[Blockierte Grafik: http://img685.imageshack.us/img685/5356/flowmiis2.png]