McGod Posted September 30, 2006 Posted September 30, 2006 Ok Im making a GUI Log. So I wish to make something like*******************Error Occured: Something happened*******************=====================Passed working now=====================In a GUI Edit, so different color text. [indent][center][u]Formerly Chip[/u][/center]~UDFs~[/indent][u]IRC.au3 - Allows you to connect to IRC ServersINetCon.au3 - Connects/Disconnects/Check Status of InternetHardware Key - Creates a unique hardware hashScriptComm - Allows you to communicate between scripts using WM_COPYDATA[/u][indent]~Programs~[/indent][indent]SimonAu3ForumsIRC Bot~Web Site~Web Autoit Example[/indent][indent][b][/b][/indent][u][/u]
McGod Posted September 30, 2006 Author Posted September 30, 2006 (edited) Would that work for different colors in the same control? Like in my edit control I could have red green yellow etc.. Or will I have to do a GUICtrlCreateLabel for each line ? Edited September 30, 2006 by Chip [indent][center][u]Formerly Chip[/u][/center]~UDFs~[/indent][u]IRC.au3 - Allows you to connect to IRC ServersINetCon.au3 - Connects/Disconnects/Check Status of InternetHardware Key - Creates a unique hardware hashScriptComm - Allows you to communicate between scripts using WM_COPYDATA[/u][indent]~Programs~[/indent][indent]SimonAu3ForumsIRC Bot~Web Site~Web Autoit Example[/indent][indent][b][/b][/indent][u][/u]
Paulie Posted September 30, 2006 Posted September 30, 2006 (edited) Would that work for different colors in the same control? Like in my edit control I could have red green yellow etc..I'm not sure, but i think its worth a try considering its an error log I'm assuming you are having a program write this no? If this is the case, can we see the portion of the code that writes the file? Edit: i guess this wouldn't work... I made this code to test it #Include <GuiConstants.au3> #Include <Misc.au3> Global $Color = 0x000000 $GUI = GUICreate("Test Multi-color Edit", 400, 300) $Edit = GUICtrlCreateEdit("Type here", 0, 0, 250, 250) $Button = GUICtrlCreateButton("Color", 300, 40, 50, 25) GUISetState() While 1 $Msg = GUIGetMsg() Switch $Msg Case $GUI_EVENT_CLOSE Exit Case $Button $Color = _ChooseColor() GUICtrlSetColor($Edit, $Color) EndSwitch WEnd Edited September 30, 2006 by Paulie
McGod Posted September 30, 2006 Author Posted September 30, 2006 Try RTF-plugin by LazyCat.TY, worked perfectly! Exactly what i was looking for. [indent][center][u]Formerly Chip[/u][/center]~UDFs~[/indent][u]IRC.au3 - Allows you to connect to IRC ServersINetCon.au3 - Connects/Disconnects/Check Status of InternetHardware Key - Creates a unique hardware hashScriptComm - Allows you to communicate between scripts using WM_COPYDATA[/u][indent]~Programs~[/indent][indent]SimonAu3ForumsIRC Bot~Web Site~Web Autoit Example[/indent][indent][b][/b][/indent][u][/u]
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now