Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 09/12/2023 in all areas

  1. [BUGFIX VERSION] - 6 Apr 24 Fixed: UDF failed if header colours were initialised but not specifically set. New UDF in the zip below. -------------------------------------------------------------------------------------- Note: This is a new recoded and expanded version of my earlier UDF of the same name. If you move to this new version there might well be several script-breaking changes, particularly when setting which columns are to be editable. Please read the "Beginner's Guide" and look at the included example scripts to see where things have changed. -------------------------------------------------------------------------------------- This UDF allows you to do much more with ListView controls (either native or UDF created): Edit the content with plain text, combos or date-time pickers - and edit the headers too Move rows within the ListView Drag rows both within the ListView and to other ListViews in the same GUI (or not as required) Insert and delete columns and rows Sort columns by simply clicking the header Colour individual ListView items and headers Only select a single cell rather then the entire row Save and load entire ListViews For the advanced user: If you use certain Windows message handlers (In particular WM_NOTIFY) in your script, please read the function headers for the equivalent handlers within the UDF. Here is the UDF, with 6 examples and the guide, in zip format: GUIListViewEx.zip Credit to: martin (basic drag code), Array.au3 authors (array functions), KaFu and ProgAndy (font function), LarsJ (colouring code) Happy to take compliments or criticism - preferably the former! M23
    1 point
  2. Of course no issue when all is working as required. ah... I see that the defaults seem to have changed in for these styles style.errorlist.xx in file others.properties. I haven't noticed that as I have some scheme loaded via SciTEConfig which contains these definition which are set in SciTEUser.properties: style.errorlist.32=$(font.base),back:#FFFFFF style.errorlist.0=fore:#000000 style.errorlist.3=fore:#ff8000;back:#FFFFFF style.errorlist.4=fore:#0000FF style.errorlist.10=fore:#FF0000,bold style.errorlist.11=fore:#007F00,bold style.errorlist.12=fore:#FF8800,bold style.errorlist.13=fore:#804000 Jos
    1 point
  3. How do you destory a variable in autoit? Example in ms-dos set var= Autoit attempts "" sets as empty string 0 sets as numerical 0 <null> fails $office_name = "" $office_type = "" $office_arch = "" $office_path = "" $office_script = "" $office_setup = "" $office_switch = "" $office_name = 0 $office_type = 0 $office_arch = 0 $office_path = 0 $office_script = 0 $office_setup = 0 $office_switch = 0 $office_name = $office_type = $office_arch = $office_path = $office_script = $office_setup = $office_switch = ConsoleWrite($office_name&@CRLF) ConsoleWrite($office_type&@CRLF) ConsoleWrite($office_arch&@CRLF) ConsoleWrite($office_path&@CRLF) ConsoleWrite($office_script&@CRLF) If IsDeclared("office_setup") Then ConsoleWrite($office_setup&@CRLF) If IsDeclared("office_switch") Then ConsoleWrite($office_switch&@CRLF) ConsoleWrite("-"&@CRLF)
    1 point
  4. Q. - "how do you destroy...." A. -
    1 point
  5. J2TeaM

    Font Icon UDF

    This is an UDF that helps you use Font Awesome in your AutoIt project. Screenshot Download Click here to download! Usage/Example #NoTrayIcon #include <GUIConstantsEx.au3> #include <StaticConstants.au3> #include <WindowsConstants.au3> ; Font Icon UDF by Juno_okyo #include <font-icon.au3> Opt('GUIOnEventMode', 1) #Region ### START Koda GUI section ### Global $FormMain = GUICreate('Font Icon for AutoIt by Juno_okyo', 355, 126, -1, -1) GUISetFont(20, 400, 0, 'Arial') GUISetOnEvent($GUI_EVENT_CLOSE, 'FormMainClose') GUIStartGroup() Global $Label1 = GUICtrlCreateLabel('Juno_okyo', 25, 42, 155, 36) GUICtrlSetFont(-1, 24, 400, 0, 'Arial') ; See demo.html for Icon name Global $Label2 = GUICtrlCreateLabel(Font_Icon('icon-heart'), 193, 46, 35, 36) GUICtrlSetFont(-1, 20, 400, 0, 'juno_okyo') ; Font name GUICtrlSetColor(-1, 0xa83f39) ; Heart color ;) Global $Label3 = GUICtrlCreateLabel('AutoIt', 235, 42, 90, 36) GUICtrlSetFont(-1, 24, 400, 0, 'Arial') GUIStartGroup() GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 Sleep(100) WEnd Func FormMainClose() Exit EndFunc Credits Author: Juno_okyo Font Awesome by Dave Gandy Source code on GitHub. Contributing are welcome!
    1 point
  6. mLipok

    Font Icon UDF

    Nice. Thanks for sharing. Btw. Added to the Wiki: https://www.autoitscript.com/wiki/User_Defined_Functions#Misc
    1 point
×
×
  • Create New...