Jump to content

ahmet

Active Members
  • Posts

    311
  • Joined

  • Last visited

  • Days Won

    2

ahmet last won the day on August 21

ahmet had the most liked content!

About ahmet

  • Birthday 08/18/1992

Profile Information

  • Location
    Bosnia and Herzegovina

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

ahmet's Achievements

  1. What about follwoing $tLOGFONT.Height = Ceiling(($fNewDPI / $fPrevDPI) * (DllStructGetData($tTEXTMETRIC, "tmHeight")) - $tTEXTMETRIC.tmAscent - $tTEXTMETRIC.tmDescent)
  2. You do not need to change font mapping.. When you get MS Shell Dlg you read a registry value of the "Ms Shell Dlg" key. You do not modify registry entry. At this point I do not have much time to test that scaling issues that you have but I would like. This project looks interesting to me. After you assign the value to Height member have you cahecked its value and the value of the next element in the structure?
  3. I suppose that using substitution from registry is the correct way. Can you investigate how other applications handle that?
  4. @WildByDesign Have you checked Map the Logical Fonts for getting the right font for MS Shell Dlg?
  5. @bladem2003 Do you have any specific nedd for a scrollbar control. There is pager control. Scroll bar control can be generated separatelly. If you have any further questions you should probably start new thread. #include <WinAPISysWin.au3> #include <WindowsConstants.au3> #include <GuiScrollBars.au3> $hMain=GUICreate("Test") _WinAPI_CreateWindowEx(0,"SCROLLBAR","",BitOR($WS_CHILD, $WS_VISIBLE, $SB_VERT),10,20,20,200,$hMain,0,0,0) GUISetState() While 1 Switch GUIGetMsg() Case -3 Exit EndSwitch WEnd
  6. I did not spot any issues with the Dialog_Box_Resources.au3. There is high CPU usage with the generated files becuse of While loop without Sleep. Once you put sleep in the generated file CPU usage drops.
  7. Dialog Box Resources can create file with the dialog resource. That way you can have an exe with only the resource. What is your goal?
  8. I suppose that you need to save font.dlg to the resource of the exe file. There is ResHacker project that might assit you into adding that template into exe file.
  9. There is example by funkey for changing MsgBox and FileOpenDialog border color if I am not mistaken. Somebody updated those to work with some newer OS.
  10. What about painting the rectangular region in white opaque color and the drawing that same region with the background color? If you paint with the white brush and then paint with original transparent brush you will get the original color.
  11. What about this $hPen1=_GDIPlus_PenCreate(0XFF00AA00) $hPen2=_GDIPlus_PenCreate(0XFF0000FF) $hBitmap=_GDIPlus_BitmapCreateFromScan0(48,48,$GDIP_PXF32ARGB) $hImageGfx=_GDIPlus_ImageGetGraphicsContext($hBitmap) ;draw some random shapes _GDIPlus_GraphicsDrawRect($hImageGfx,10,5,15,8,$hPen1) _GDIPlus_GraphicsDrawEllipse($hImageGfx,5,20,20,25,$hPen2) Local $hIcon = _GDIPlus_HICONCreateFromBitmap($hBitmap) _GDIPlus_PenDispose($hPen1) _GDIPlus_PenDispose($hPen2) _GDIPlus_GraphicsDispose($hImageGfx) $hHBITMAP=_WinAPI_Create32BitHBITMAP($hIcon,True) ; Create normal image list Local $hNormal = _GUIImageList_Create($iW, $iW,5) ;_GUIImageList_Add($hNormal, _WinAPI_CreateSolidBitmap($hGUI, 0xFF0000, $iW, $iW)) ;_GUIImageList_Add($hNormal, $hHBMPBack) $iAdd1=_GUIImageList_Add($hNormal, $hHBITMAP) _GUIImageList_Add($hNormal, $hHBMPForward) _GUIImageList_Add($hNormal, $hHBMPUp) You can load image from file with _GDIPlus_BitmapCreateFromFile.
  12. Can you share few of those those scripts that use _WinAPI_TransparentBlt() and are working fine?
  13. Try saving ini file with UTF 8, but I am almost certain that it will not work. I can bot test that. If that fails there are is some ini file udf which should resolve that issue.
  14. I think example _GDIPlus_HICONCreateFromBitmap has a nice, working example.
×
×
  • Create New...