Hi,
I’m new to MS. How can I write a dialog with only a Memo box to display the contents of a .txt file?
I do not want any “Button” or “Enter” key to trigger the display of the txt file.
To put it simply, when the dialog is launched, it will immediately show the contents of the text file.
Create a simple dialog with memo box
Moderators: Dorian (MJT support), JRL
- Marcus Tettmar
- Site Admin
- Posts: 7395
- Joined: Thu Sep 19, 2002 3:00 pm
- Location: Dorset, UK
- Contact:
Re: Create a simple dialog with memo box
Just do exactly that. Create a custom dialog. Put only a memo box on it.
Prior to showing the dialog load the file into a variable using ReadFile and then set the text of the memo with this variable using SetDialogProperty.
Prior to showing the dialog load the file into a variable using ReadFile and then set the text of the memo with this variable using SetDialogProperty.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
Re: Create a simple dialog with memo box
Thanks, manage to solve it following your advice