Achilles Posted October 29, 2008 Posted October 29, 2008 To add styles, you'll want to include this file: #include <EditConstants.au3> Next, you need to assign your input box to a variable. Do something like this: $txtLocation = GUICtrlCreateInput("", 65, 57, 345, 35)Then, you can use this to set data: GUICtrlSetData($txtLocation, 'Hello, my name is Achilles') I'm not sure if .inf files are the same .ini, could you post an example file so I can test how to get the values from it? My Programs[list][*]Knight Media Player[*]Multiple Desktops[*]Daily Comics[*]Journal[/list]
Zedna Posted October 29, 2008 Posted October 29, 2008 (edited) Look at Koda http://www.autoitscript.com/forum/index.php?showtopic=32299--> it's very handy tool for GUI creating. $input1 = GUICtrlCreateInput("", 14, 240, 400, 200) ... $txt = FileRead("C:\test.inf") GUICtrlSetData($input1, $txt) Edited October 29, 2008 by Zedna Resources UDF ResourcesEx UDF AutoIt Forum Search
Zedna Posted October 29, 2008 Posted October 29, 2008 And oh yeah, is it possible to add a vertical/horizontal scroll bar for input/edit boxes? Thank you!vertical scrollbar: GUICtrlCreateEdit("", 304, 16, 233, 87, BitOR($ES_AUTOVSCROLL,$ES_WANTRETURN,$WS_VSCROLL)) Resources UDF ResourcesEx UDF AutoIt Forum Search
Achilles Posted October 29, 2008 Posted October 29, 2008 Use an edit instead of an input box. It will automatically wrap, I think.. Have you tried the Ini* functions? They could do what you want more efficiently I think. My Programs[list][*]Knight Media Player[*]Multiple Desktops[*]Daily Comics[*]Journal[/list]
FaT3oYCG Posted October 30, 2008 Posted October 30, 2008 i would probably preffer horizontal if a file location was really long, but thats just my preference, vertical would take up more of the screen and look ugly and i think you need to use BitAND($ES_MULTILINE, $ES_READONLY) Interpreters have great power!Although they live in the shadow of compiled programming languages an interpreter can do anything that a compiled language can do, you just have to code it right.
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