randeep Posted July 1, 2009 Share Posted July 1, 2009 (edited) hello all,i have made a form (added) with tabs. 1. now the writing in 'Inputs' is disabled. now i want to write in the 'inputs' in the tabs (that will be default and not be changeable by the user, user can only read from it). if i write in the script then how can i write a paragraph that should be shown in 'inputs' and will not be editable. (using $ES_READONLY).SOLVED2. if i use '$ES_READONLY', then it becomes uneditable, but the 'Input' becomes grey. is there way to convert the change the color of input (grey to white)????SOLVEDexpandcollapse popup#include <GUIConstantsEx.au3> #include <EditConstants.au3> Opt('MustDeclareVars', 1) Example() Func Example() Local $tab, $tab0, $tab0OK, $tab0input Local $tab1, $tab1combo, $tab1OK, $n Local $tab2, $tab2OK, $msg, $tab1input, $CloseBtn GUICreate("About", 400, 250) ; will create a dialog box that when displayed is centered $n = GUICtrlCreatePic("ARTEVEAI.jpg", 20, 40, 120, 120) GUICtrlCreateGroup("", 10, 172, 380, 51) GUICtrlCreateLabel("Windos OS : " & @OSVersion & " " & @OSServicePack, 20, 182) guictrlcreatelabel("Memory available to Windows (Bytes):", 20, 200) GUISetFont(9, 300) $CloseBtn = GUICtrlCreateButton("Close", 320, 226, 70 , 20) $tab = GUICtrlCreateTab(10, 10, 380, 160) $tab0 = GUICtrlCreateTabItem("About DB Installer") $tab0input = GUICtrlCreateInput("default", 150, 40, 230, 80, $ES_READONLY) GUICtrlCreateLabel("Version 1.0.0.1", 230, 125) GUICtrlCreateLabel("© Artevea Digital Limited.", 200, 145) $tab1 = GUICtrlCreateTabItem("Shortcuts") $tab1input = GUICtrlCreateInput("Version", 20, 40, 360, 120, $ES_READONLY) $tab2 = GUICtrlCreateTabItem("History") $tab1input = GUICtrlCreateInput("", 20, 40, 360, 120, $ES_READONLY) GUICtrlCreateTabItem("") ; end tabitem definition GUISetState() While 1 $msg = GUIGetMsg() If $msg = $GUI_EVENT_CLOSE Then ExitLoop if $msg = $CloseBtn then exitloop WEnd EndFunc ;==>Examplethanx in advance... Edited July 1, 2009 by randeep [font="Palatino Linotype"]Randeep Singh[/font][sub][/sub] Link to comment Share on other sites More sharing options...
Mat Posted July 1, 2009 Share Posted July 1, 2009 Use GUICtrlSetBkColor (-1, 0xFFFFFF) expandcollapse popup#include <GUIConstantsEx.au3> #include <EditConstants.au3> Opt('MustDeclareVars', 1) Example() Func Example() Local $tab, $tab0, $tab0OK, $tab0input Local $tab1, $tab1combo, $tab1OK, $n Local $tab2, $tab2OK, $msg, $tab1input, $CloseBtn GUICreate("About", 400, 250) ; will create a dialog box that when displayed is centered $n = GUICtrlCreatePic("ARTEVEAI.jpg", 20, 40, 120, 120) GUICtrlCreateGroup("", 10, 172, 380, 51) GUICtrlCreateLabel("Windos OS : " & @OSVersion & " " & @OSServicePack, 20, 182) guictrlcreatelabel("Memory available to Windows (Bytes):", 20, 200) ;GUISetFont(9, 300) $CloseBtn = GUICtrlCreateButton("Close", 320, 226, 70 , 20) $tab = GUICtrlCreateTab(10, 10, 380, 160) $tab0 = GUICtrlCreateTabItem("About DB Installer") $tab0input = GUICtrlCreateInput("default", 150, 40, 230, 80, $ES_READONLY) GUICtrlSetBkColor (-1, 0xFFFFFF) GUICtrlCreateLabel("Version 1.0.0.1", 230, 125) GUICtrlCreateLabel("© Artevea Digital Limited.", 200, 145) $tab1 = GUICtrlCreateTabItem("Shortcuts") $tab1input = GUICtrlCreateInput("Version", 20, 40, 360, 120, $ES_READONLY) GUICtrlSetBkColor (-1, 0xFFFFFF) $tab2 = GUICtrlCreateTabItem("History") $tab1input = GUICtrlCreateInput("", 20, 40, 360, 120, $ES_READONLY) GUICtrlSetBkColor (-1, 0xFFFFFF) GUICtrlCreateTabItem("") ; end tabitem definition GUISetState() While 1 $msg = GUIGetMsg() If $msg = $GUI_EVENT_CLOSE Then ExitLoop if $msg = $CloseBtn then exitloop WEnd EndFunc ;==>Example AutoIt Project Listing Link to comment Share on other sites More sharing options...
randeep Posted July 1, 2009 Author Share Posted July 1, 2009 thanx MDiesel for replying problem 2 is solved. but problem 1 is still remained [font="Palatino Linotype"]Randeep Singh[/font][sub][/sub] Link to comment Share on other sites More sharing options...
trancexx Posted July 1, 2009 Share Posted July 1, 2009 thanx MDiesel for replyingproblem 2 is solved. but problem 1 is still remainedMemGetStats() ♡♡♡ . eMyvnE Link to comment Share on other sites More sharing options...
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