Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

What is the best way to show a multiline text in a GUI?

$
0
0

Hello

I used GUICtrlCreateEdit function to show my "sometext.txt" file contents in a GUI. But it does not give me a good interface and i have some problems with it.

 

One of problems in GUICtrlCreateEdit function is that when the text appears in editbox, whole text has been selected at first time !! and i must click once to get out it from selected state.

Other my problem is: i can not set just a vertical scrolbar. I want to use just vertical scrolbar not horizontal. I want to it fits to editbox's width horizontally but scrol vertically.

$myfile = FileOpen("Last10PMs.txt") $PM10Text = FileRead($myfile) $hgui = GUICreate("Title",800,600,-1,-1,-1) GUICtrlCreateEdit($PM10Text, -1, -1, 800, 600)

When i use GUICtrlCreateLabel function to show text file, the state comes so bad from Editbox.

 

 

Thanks for any suggestion to view a text file in a better UI or resolving my problems.


Viewing all articles
Browse latest Browse all 12506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>