The Daily Click ::. Forums ::. Klik Coding Help ::. need some help with the edit object
 

Post Reply  Post Oekaki 
 

Posted By Message

Capn Mud Guru



Registered
  09/11/2003
Points
  127
9th November, 2003 at 16:00:32 -

I am trying to make my own version of notepad with an edit object. When i save text file via file selector, it will save, but the file will not open because its file type is file. is there a way to fix this, or will I have to use some other kind of text thing?

Thank'ee fer yer time.

 
www.burlapbuccaneers.cjb.net is the best site ever to be discovered.

Knudde (Shab)

Administrator
Crazy?

Registered
  31/01/2003
Points
  5125

Has Donated, Thank You!Clickzine StaffKlikCast StarVIP MemberGhostbuster!Dos Rules!I donated an open source project
9th November, 2003 at 16:02:29 -

check the options, there should be an option called filter or file types. Just put *.txt in there.

 
Craps, I'm an old man!

Capn Mud Guru



Registered
  09/11/2003
Points
  127
9th November, 2003 at 16:07:38 -

thankee, but where is the filter/file type?

Image Edited by the Author.

 
www.burlapbuccaneers.cjb.net is the best site ever to be discovered.

Knudde (Shab)

Administrator
Crazy?

Registered
  31/01/2003
Points
  5125

Has Donated, Thank You!Clickzine StaffKlikCast StarVIP MemberGhostbuster!Dos Rules!I donated an open source project
9th November, 2003 at 16:16:15 -

Can't remember, don't have MMF in front of me

 
Craps, I'm an old man!

Capn Mud Guru



Registered
  09/11/2003
Points
  127
9th November, 2003 at 16:18:04 -

ok...would it help if i said i was using TGF?

 
www.burlapbuccaneers.cjb.net is the best site ever to be discovered.

ShadowCaster

Possibly Insane

Registered
  02/01/2002
Points
  2203
9th November, 2003 at 17:16:04 -

The "Save Via Selector" doesnt require you to enter a filter, that's only if you use the Dialog object. The Edit object automatically has Text Files as the default extension type. Unfortunately this doesnt automatically add that extension to the end of the file name if the user hasnt specified it him/herself.

So, if you want it to do that, I suggest upgrading to MMF and using the Dialog object to create your own Save window. You can then use the result of that, along with the regular "Save Text File" action, to create the result you're after.

If you cant upgrade to MMF, then you're going to have to remember to enter the file type each time instead of leaving it up to the application

Mike

 
"Now I guess we're... 'Path-E-Tech Management'" -Dilbert

Capn Mud Guru



Registered
  09/11/2003
Points
  127
9th November, 2003 at 23:08:28 -

Yea...I figured that out an hour ago, when I was trying different things. Now, I've ran into another obstacle. How do you make an edit object do the "Word Wrap" of the Notepad?

 
www.burlapbuccaneers.cjb.net is the best site ever to be discovered.

ShadowCaster

Possibly Insane

Registered
  02/01/2002
Points
  2203
9th November, 2003 at 23:33:34 -

Simply turn off "Horizontal Autoscroll" and "Horizontal Scroll Bar" in the object properties, and turn on the "Multiline" option

Mike

 
"Now I guess we're... 'Path-E-Tech Management'" -Dilbert

Capn Mud Guru



Registered
  09/11/2003
Points
  127
9th November, 2003 at 23:55:18 -

thanks

 
www.burlapbuccaneers.cjb.net is the best site ever to be discovered.

Capn Mud Guru



Registered
  09/11/2003
Points
  127
10th November, 2003 at 00:00:44 -

didn't seem to work. should I upload my problem somewhere?

 
www.burlapbuccaneers.cjb.net is the best site ever to be discovered.

Assault Andy

Administrator
I make other people create vaporware

Registered
  29/07/2002
Points
  5686

Game of the Week WinnerVIP Member360 OwnerGOTM JUNE - 2009 - WINNER!GOTM FEB - 2010 - WINNER!	I donated an open source project
10th November, 2003 at 01:39:55 -

No, all the answers are here. Try looking over them again. But my computer does have a problem with the rich edit object/DLL.

-Andy

 
Creator of Faerie Solitaire:
http://www.create-games.com/download.asp?id=7792
Also creator of ZDay20 and Dungeon Dash.
http://www.Jigxor.com
http://twitter.com/JigxorAndy

ShadowCaster

Possibly Insane

Registered
  02/01/2002
Points
  2203
10th November, 2003 at 04:06:49 -

What exactly isnt working? If it isnt wrapping to the next line, make sure you turned OFF BOTH the H-AUTOSCROLL and H-SCROLLBAR options, and you have turned ON the MULTILINE option, and optionally the V-AUTOSCROLL AND V-SCROLLBAR options as well.

If you have done this and it still isnt working, then you can upload an example of what you're doing. I dont have TGF installed ATM, but I can check it with MMF. As far as I know it shouldnt make a difference if I'm using MMF or TGF since it calls the same Windows DLL.

Mike

 
"Now I guess we're... 'Path-E-Tech Management'" -Dilbert

Capn Mud Guru



Registered
  09/11/2003
Points
  127
11th November, 2003 at 22:33:49 -

yea, it won't make a difference. www.angelfire.com/hero/mud/Tarder_Sauce_Notepad.zip is the file. If it doesn't work, either right click and select save as, copy&, or tell me and I'll email it to you. The choice is yours.

And Assault Andy, I did look over it again, nothing worked right. That is why I decided to upload it so someone coult take a look.

Thanks fer yer time.

 
www.burlapbuccaneers.cjb.net is the best site ever to be discovered.

Assault Andy

Administrator
I make other people create vaporware

Registered
  29/07/2002
Points
  5686

Game of the Week WinnerVIP Member360 OwnerGOTM JUNE - 2009 - WINNER!GOTM FEB - 2010 - WINNER!	I donated an open source project
11th November, 2003 at 23:01:46 -

Your program word wraps fine on my computer. In fact everything works fine and it looks like a nice little notepad.

-Andy

 
Creator of Faerie Solitaire:
http://www.create-games.com/download.asp?id=7792
Also creator of ZDay20 and Dungeon Dash.
http://www.Jigxor.com
http://twitter.com/JigxorAndy

Capn Mud Guru



Registered
  09/11/2003
Points
  127
12th November, 2003 at 22:02:39 -

arr...thankee. It doesn't seem to work on mine, but I'll continue work on it assuming it will work on everybody else's...

 
www.burlapbuccaneers.cjb.net is the best site ever to be discovered.
   

Post Reply



 



Advertisement

Worth A Click