Sign in to follow this  
Followers 0
cowboy

displaying text

3 posts in this topic

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.

Share this post


Link to post
Share on other sites



#2 ·  Posted (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 by JLogan3o13

√-1 2^3 ∑ π, and it was delicious!

Share this post


Link to post
Share on other sites

Thank You

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0