help with commondialog[SOLVED]

For questions about using Classic.

Post » Tue Jun 16, 2009 8:16 pm

Hi, I'm quite new to construct and I am just experimenting with it. Right now I am just making a text2speech :P I have an option to load a text file and save the entered text into a text. Hitting cancel on either one is fine, but when i go to select a file and click open, the open dialog shows up again. Then if i hit cancel, it activates my saving to text event. When i save a file, it saves but re opens the save as dialog. i hit cancel then it goes back to the open file event, then back to save as and finally cancelling. If you toggle off the saving event, the loading will load the file, even if u open and then cancel the open dialog that reopened.

if u need the cap:
http://www.mediafire.com/?yzhggzwmovw
B
1
G
3
Posts: 9
Reputation: 843

Post » Tue Jun 16, 2009 8:45 pm

"On file dialog OK" should be separate events, and you need to separate your calls to the dialog box somehow. You could either add another instance of the common dialog box, or us a private variable to differentiate.
Image Image
B
161
S
48
G
90
Posts: 7,356
Reputation: 66,767

Post » Tue Jun 16, 2009 9:29 pm

[quote="newt":h7uqfrd4]"On file dialog OK" should be separate events, and you need to separate your calls to the dialog box somehow. You could either add another instance of the common dialog box, or us a private variable to differentiate.[/quote:h7uqfrd4]
omg thank you!
B
1
G
3
Posts: 9
Reputation: 843


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 3 guests