PDA

View Full Version : Example: AutoPlay Pad Text Editor


Brett
09-15-2005, 12:10 PM
This sample project makes a functional text editor application using AutoPlay Media Studio 6.0. It has a lot of script in it that will demonstrate how to make a full Windows application.

Skills used:

Input object, Menu bars, menu callbacks, On Menu event, File actions, Dialog.FileBrowse action

Note: This project can only be used with AutoPlay Media Studio 6.0

FOBOS
01-07-2006, 06:53 PM
Thanks for this sample!!!:yes :yes :yes

Fabiolas
03-11-2007, 07:44 AM
How I can add others files types?

mz241508
03-11-2007, 12:55 PM
Try this, Replace the codes in Global Functions line number "094" with:
local tblFiles = Dialog.FileBrowse(false,"Save","","Text Files (*.txt)|*.txt|Custom Text Files (*.ctf)|*.ctf|All Files (*.*)|*.*|", "", "txt");

And, Replace the codes in Global Functions line number "108" with:
local tblFiles = Dialog.FileBrowse(true,"Open","","Text Files (*.txt)|*.txt|Custom Text Files (*.ctf)|*.ctf|All Files (*.*)|*.*|", "*.txt", "txt");

Replace the "ctf" string to your desired extension! :yes

Fabiolas
03-11-2007, 01:35 PM
Try this, Replace the codes in Global Functions line number "094" with:


And, Replace the codes in Global Functions line number "108" with:


Replace the "ctf" string to your desired extension! :yes


Thnkx.. Your code working!

brisk
11-21-2008, 05:15 AM
how would you go about
adding a ( Find ) to the menu bar..

ie being able to search the text
for a word like you can with notepad.

:yes

great sample thanks.

RizlaUK
11-24-2008, 08:37 AM
i dont think anyone has coded a search&replace dialog for AMS yet, i started one but got sidetracked, you will need to research "String" functions and you will also need worms caret.dll

dvbappx
05-31-2009, 04:11 PM
I have a problem with the input object when the text was very long and large and can not beedited in input object. Is therre a way to reslove this ??????

Imagine Programming
05-31-2009, 05:23 PM
No, there is a maximum amount of characters for the input object, i believe it was around 30.000 characters.

MicroByte
06-01-2009, 09:20 AM
there is a limit on the amount of text but it should not affect that file, its not that big, but it does appear to lock up the input object, try it in a richtext object as plain text, it seems to work ok in there

anilmjn
10-30-2009, 11:25 PM
Hello Users,

I am using autoplay media 7. I am using QUIZ SAMPLE. But i am not able to save the selected answer in xml or html format.....

Can anyone help me.....? How to save the answers..........

anil