Jump to content

Search the Community

Showing results for tags 'GUICtrlSetBkColor'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • General
    • Announcements and Site News
    • Administration
  • AutoIt v3
    • AutoIt Help and Support
    • AutoIt Technical Discussion
    • AutoIt Example Scripts
  • Scripting and Development
    • Developer General Discussion
    • Language Specific Discussion
  • IT Administration
    • Operating System Deployment
    • Windows Client
    • Windows Server
    • Office

Categories

  • AutoIt Team
    • Beta
    • MVP
  • AutoIt
    • Automation
    • Databases and web connections
    • Data compression
    • Encryption and hash
    • Games
    • GUI Additions
    • Hardware
    • Information gathering
    • Internet protocol suite
    • Maths
    • Media
    • PDF
    • Security
    • Social Media and other Website API
    • Windows
  • Scripting and Development
  • IT Administration
    • Operating System Deployment
    • Windows Client
    • Windows Server
    • Office

Categories

  • Forum FAQ
  • AutoIt

Calendars

  • Community Calendar

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Member Title


Location


WWW


Interests

Found 4 results

  1. Salam, Hello, Hi Today i am showing you some new styles of progress bar i don't know if anyone posted a thing like this on thins forum _GUICtrlCreateProgress This UDF allows you to create new style progress bar Colors, Values can be changed by using native functions of autoit i created this script years ago while i was not on this forum now i think it should be shared on this forum check this out if anyone is interested any help is greatly appreciated NEW $PBSC_LINE_LEFT_TO_TIGHT changed to $PBSC_LINE_LEFT_TO_RIGHT New Style Progressbar.rar old New Style Progressbar.rar
  2. Good evening, I need to configure a graphical interface where the contents of some "Button" are taken from a file I have foreseen to include with "#include". For the text no problem, the problem comes when I'm going to assign the color to the background of the "Button", the "Button" becomes BLACK WHITE. I included in the included file as follows: $ Promotion_Color = "$ Color_Red" Clarity I also imported #include the library <ColorConstants.au3> In the main program I wrote like this: $ Promotion = GUICtrlCreateButton ($ Promotion, Dim_Fin_X + $ 170, $ Dim_Fin_Y, 750.120) GUICtrlSetFont (-1, 70, 800, 0, "Calibri") GUICtrlSetBkColor ($ Promotion, $ Promotion_Color); will change background color I thank all those who want to help me Alberto
  3. $item = GUICtrlCreateListViewItem("", $ListVw) ; create ListViewItems empty cells GUICtrlSetBkColor($item, $Clr) ; Set the background color for the listview item ; loop the result array $hist = $r0 & "|" & $r1 & "|" & $r2 & "|" & $r3 & "|" & $r4 GUICtrlSetData($item, $hist) ; set the ListView values I can color rows. What I want to achieve is to consistently color column 3, creating a column with the same colour. I am looking for an EASY way to do this. I have seen examples that can color each individual cell, but it requires 1000's of lines of code. The ideal solution would be something like GuiCtrlSetListViewItemBkColor() Any ideas please?
  4. Hi All, I'm sure this is a simple one to answer and I have searched and experimented before I asked (well enough hopefully!) I'm trying to set a button background to be white, the font colour red, centred vertically and horizontally and multi-line. Can it be done? Here is my example code: #include <Constants.au3> #include <ButtonConstants.au3> #include <GUIConstantsEx.au3> #include <StaticConstants.au3> #include <WindowsConstants.au3> #include <ColorConstantS.au3> #include <FontConstants.au3> #include "ColorConstants.au3" Opt("GUIOnEventMode", 1) $GUI = GUICreate("GUI", 250, 300) GUISetOnEvent($GUI_EVENT_CLOSE, "_Exit") $Button = GUICtrlCreateButton("Button" & @CRLF & "One", 160, 185, 85, 110, BitOR($BS_MULTILINE, $BS_CENTER, $BS_VCENTER, $WS_EX_WINDOWEDGE)) GUICtrlSetBkColor(-1, $COLOR_White) GUICtrlSetFont($Button, 14, 800, 0, "MV Boli", 5) GUICtrlSetColor($Button, 0xFF0000) GUICtrlSetOnEvent($Button, "_Exit") GUISetState() While 1 Sleep(100) WEnd Func _Exit() Exit EndFunc ;==>_ExitWith everything I have tried, this is the closest I get, button white, font red, correct font, but no centring and sometimes no multi-line (depending on button text and font size). I saw I might have to add the default button forced style back in so I did that too $WS_EX_WindowEdge. Thanks for any help and apologies if I've missed an obvious answer to this elsewhere.
×
×
  • Create New...