cowboy Posted August 1, 2012 Posted August 1, 2012 Hi Im new here I just would like to know what is the easiest way GUI displaying text and update It according to the ini file.
Moderators JLogan3o13 Posted August 1, 2012 Moderators Posted August 1, 2012 (edited) Hi, cowboy. It depends on how you want to view the text (editable by the end user or not?) I would suggest looking at GUICreate and GUICtrlCreateLabel in the helpfile. Something like this should get you started: #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> Local $msg GUICreate("Show my Text", 200, 200) GUICtrlCreateLabel("This is the text I want to show.", 5, 5, 200, 100) GUISetState(@SW_SHOW) While 1 $msg = GUIGetMsg() If $msg = $GUI_EVENT_CLOSE Then ExitLoop WEnd GUIDelete() You can then take a look at INIRead to see how to pull in information from an .ini file. Try your hand at creating something that looks good to you, and feel free to post your code if you run into any issues Edited August 1, 2012 by JLogan3o13 "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum!
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