Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 03/28/2025 in all areas

  1. I have been creating few controls with round corners for awhile for my own needs and I felt it was time to make an UDF and share it with the community. The idea behind this UDF is to use essentially simple basic AutoIt GUI functions. I did not want to embark in GDI+ to create the controls. I wanted to be easy to use with enough features that it would answer most requirements. The functions contained in the UDF : _RGUI_RoundLabel _RGUI_RoundButton _RGUI_RoundInput _RGUI_RoundEdit _RGUI_RoundGroup _RGUI_RoundScrollBar _RGUI_ScrollBarSet _RGUI_ScrollBarDestroy _RGUI_RoundRect _RGUI_DrawLine _RGUI_ButtonPress _RGUI_ButtonReset Version 2025-04-06 * Solved an issue where scroll bar and control are not in the same GUI child * Added 4th example on how to use scrollbar with ListView over a background generated by GDI+ Version 2025-03-28 * Added support to auto-size label and button controls (by passing -1 for width and/or height) * Removed the requirement to pass handle of the GUI to _RGUI_RoundGroup * Added 3rd example on how to use scrollbar with RichEdit Version 2025-03-21 * Added support of round corner scrollbar * Added a 2nd example on how to use scrollbar with ListBox Version 2025-03-15 * Basic framework for the UDF Here an example of what could be done with the UDF : If you feel there should be new controls, I will consider adding them to the UDF. RoundGUI.zip
    1 point
  2. Updated to the latest update ( 19045.5679 ) and can not replicate an issue.
    1 point
  3. argumentum

    PS1 scripts Issue

    Not an issue, a feature. Otherwise one can run a malicious .ps1 without knowing. Shouldn't be used unless by the owner of the PC willingly does it. Safety first.
    1 point
  4. I now understand what you meant before. I think it is a good idea, thanks. So I made it possible to both labels and buttons. Also added RichEdit using scrollbar example in the zip file. Added some minor optimizations. New version available.
    1 point
  5. I apologize if I didn't explain it right. I'll use a code example: Local $idExit = _RGUI_RoundButton("Exit", 0xB0B0B0, 10, 430, 80, 30, 0X404040, 0X404040, 6) Here is what I am referring to: Local $idExit = _RGUI_RoundButton("Exit", 0xB0B0B0, 10, 430, -1, -1, 0X404040, 0X404040, 6) My intended suggestion was to be able to put -1 for the $iWidth, $iHeight sizes. For the regular button and label GuiCreate* options that would autosize the control based on the text and (as you stated) the font size. But if I do -1 like above, it doesn't work.
    1 point
  6. The size is determined by the font you have chosen. I do not think it is a good approach to override the choice made by the programmer.
    1 point
  7. Unable to reproduce your issue, works as expected with both semaphore and file mapping. (exe, au3, and scite)
    1 point
  8. Works fine on my Win10 too.
    1 point
  9. Here another approach using my latest UDF : You can scroll with mouse wheel and kb arrows. See the example posted in my thread. BTW, with my UDF, you don't need all those tens of images, you can do everything with it.
    1 point
  10. Valuater

    Finding a certain color

    BTW, welcome to the forums to help simplify your over written functions.... Func _IsColor($Test, $Color, $Shade) $ColorRed = 0 ; TEMP VARIABLE TO HOLD RED COMPONENT $ColorGreen = 0 ; TEMP VARIABLE TO HOLD GREEN COMPONENT $ColorBlue = 0 ; TEMP VARIABLE TO HOLD BLUE COMPONENT ; THE FIRST THING WE NEED TO DO IS BREAK THE COLOR DOWN INTO ITS INDIVIDUAL COMPNENTS $ColorRed = _ColorGetRed($Color) ; GET THE RED COMPONENT $ColorGreen = _ColorGetGreen($Color) ; GET THE GREEN COMPONENT $ColorBlue = _ColorGetBlue($Color) ; GET THE BLUE COMPONENT ; CHECK TO SEE IF THE VALUE IS IN THE RANGE SPECIFIED BY $SHADE If $Test = "red" and $ColorRed >= (255 - $Shade) AND $ColorGreen <= $Shade AND $ColorBlue <= $Shade Then Return 1 ; VALUE IS IN RANGE AND IS CONSIDERED RED If $Test = "blue" and $ColorBlue >= (255 - $Shade) AND $ColorGreen <= $Shade AND $ColorRed <= $Shade Then ReDim 1 Return -1 ; VALUE IS OUT OF RANGE AND IS NOT CONSIDERED $Test Color EndFunc ;--------------------------- END OF FUNCTION ---------------------------------- 8)
    1 point
×
×
  • Create New...