Jump to content

Recommended Posts

Posted

Enable Display Properties large fonts. Height of menu depends on the font, which depends on the theme in the display properties.

GUICreate("AuPad", 600, 500
GUICtrlCreateEdit("", 0, 0, 600, 495

500 - 495 = 5

5 pixel width of the menu all the time?

Posted

  On 9/22/2014 at 5:57 PM, AZJIO said:

Enable Display Properties large fonts. Height of menu depends on the font, which depends on the theme in the display properties.

GUICreate("AuPad", 600, 500

GUICtrlCreateEdit("", 0, 0, 600, 495

500 - 495 = 5

5 pixel width of the menu all the time?

 

Should I make it bigger for large fonts? Say.. 10-15 pixels at all times?

Snips & Scripts

  Reveal hidden contents

My Snips: graphCPUTemp ~ getENVvars
My Scripts: Short-Order Encrypter - message and file encryption V1.6.1 ~ AuPad - Notepad written entirely in AutoIt V1.9.4

Feel free to use any of my code for your own use.                                                                                                                                                           Forum FAQ

 

Posted
  On 9/22/2014 at 5:53 PM, DreamVB said:

Looking good dude., Hay how about for tabs multiple files. should not be to hard to implant using the tab control. just an idea for you.

 

Thanks DreamVB :D

Definitely something to think about, will give it a look I've got the next couple days free so I'll be experimenting a lot ;)

Snips & Scripts

  Reveal hidden contents

My Snips: graphCPUTemp ~ getENVvars
My Scripts: Short-Order Encrypter - message and file encryption V1.6.1 ~ AuPad - Notepad written entirely in AutoIt V1.9.4

Feel free to use any of my code for your own use.                                                                                                                                                           Forum FAQ

 

Posted (edited)

  On 9/22/2014 at 5:57 PM, AZJIO said:

Enable Display Properties large fonts. Height of menu depends on the font, which depends on the theme in the display properties.

GUICreate("AuPad", 600, 500

GUICtrlCreateEdit("", 0, 0, 600, 495

500 - 495 = 5

5 pixel width of the menu all the time?

 

Hm. Maybe this would be accomplished better with GUICtrlSetResizing( controlID, $GUI_DOCKAUTO). I will give this a test today.

Edited by MikahS

Snips & Scripts

  Reveal hidden contents

My Snips: graphCPUTemp ~ getENVvars
My Scripts: Short-Order Encrypter - message and file encryption V1.6.1 ~ AuPad - Notepad written entirely in AutoIt V1.9.4

Feel free to use any of my code for your own use.                                                                                                                                                           Forum FAQ

 

Posted (edited)
  On 9/23/2014 at 11:36 AM, junkew said:

At the moment I use large text file viewer for huge logfiles of several gigabytes so just interested to now how this tool will handle large files

 

I'm thinking about trying out getting the size and if it is > "example size" then read in as binary or UTF16 Little Endian, which should speed this up greatly I'm hoping. I will give this a test today.

Edited by MikahS

Snips & Scripts

  Reveal hidden contents

My Snips: graphCPUTemp ~ getENVvars
My Scripts: Short-Order Encrypter - message and file encryption V1.6.1 ~ AuPad - Notepad written entirely in AutoIt V1.9.4

Feel free to use any of my code for your own use.                                                                                                                                                           Forum FAQ

 

Posted
  On 9/23/2014 at 11:36 AM, junkew said:

At the moment I use large text file viewer for huge logfiles of several gigabytes so just interested to now how this tool will handle large files

 

I've changed the handling of large files into reading them with binary and then converting it. It is definitely faster, but I'm not sure this will be good enough for files > 1 gig. As, AutoIt is not capable (or my ignorance thinks) of reading very large files in a quick manner. It will still work with large files, it will just take awhile to read them in. Will post an updated version with this soon :)

Snips & Scripts

  Reveal hidden contents

My Snips: graphCPUTemp ~ getENVvars
My Scripts: Short-Order Encrypter - message and file encryption V1.6.1 ~ AuPad - Notepad written entirely in AutoIt V1.9.4

Feel free to use any of my code for your own use.                                                                                                                                                           Forum FAQ

 

Posted

junkew

Log Viewer - it is a different type of program. You load is not the whole file, but only part of which can be viewed. When turn the scrollbar, then tip the line number. When released the scrollbar, then loads the specified portion of the file. Either you have to create an item such as GUICtrlCreateEdit, but with better properties, designed for large files. For example Scintilla.

Posted (edited)

---==== 1.6.0 ====---
- Added better text limit
- Fixed the edit control to show the horizontal scrollbar
- Made resizing of the edit control AUTO; making the menu AUTO, instead of just 5 pixel height
- Changed any file over 100 MB to read in as binary
- Changed any file dragged and dropped to read in as binary if over 100 MB in size
- Added accelerator keys for uppercase, lowercase and save as
- Took out unnecarry MsgBox in save function
- Added print by line support
- Added ini file for settings saved
- Added setting in ini for word wrap

Edited by MikahS

Snips & Scripts

  Reveal hidden contents

My Snips: graphCPUTemp ~ getENVvars
My Scripts: Short-Order Encrypter - message and file encryption V1.6.1 ~ AuPad - Notepad written entirely in AutoIt V1.9.4

Feel free to use any of my code for your own use.                                                                                                                                                           Forum FAQ

 

Posted

Nice update again

How about .LOG support like notepad.

It be easy to do just check the very first line for .LOG

Also for very large file support you could have a look into the Windows API WriteFile and ReadFile.

Keep up the good work. 

On Error Resume Pulling Hair Out.

Posted
  On 9/25/2014 at 8:49 PM, AZJIO said:

when you close the question arises: "there has been changes to, would you like to save?". No cancel button.

1. Close button could be pressed accidentally.

2. Before saving, I wanted to correct something.

 

Very good suggestion I will be sure to do this!

  On 9/25/2014 at 9:12 PM, DreamVB said:

Nice update again

How about .LOG support like notepad.

It be easy to do just check the very first line for .LOG

Also for very large file support you could have a look into the Windows API WriteFile and ReadFile.

Keep up the good work. 

 

I've been looking over this and it looks fun, I will be sure to research this a lot more ;)

  On 9/25/2014 at 9:56 PM, AZJIO said:

And what if the print standard notepad?

if FileExists ( "notepad" )

if FileGetVersion( "notepad" )

Then -> notepad /P filename.tmp

Yes?

 

Are you meaning make a temporary file, then print it using the printing support of notepad?

Snips & Scripts

  Reveal hidden contents

My Snips: graphCPUTemp ~ getENVvars
My Scripts: Short-Order Encrypter - message and file encryption V1.6.1 ~ AuPad - Notepad written entirely in AutoIt V1.9.4

Feel free to use any of my code for your own use.                                                                                                                                                           Forum FAQ

 

  • 2 weeks later...
Posted

UPDATE

---==== 1.7.0 ====---
- Added cancel button when quitting
- Took out extra include
- Set default font into font variables
- Set default font when word wrap has been selected
- Set default font when taking off word wrap
- Added RTF files and All files to save dialog
- Added redo functionality
- added character attribute functionality for rich edit
- added rtf files to the open file dialog
- Added color support
- Added picture support
- Added background color support
- Added stream rtf from file support
- Added stream rtf to file support
- Added recent files to menu item
- Added AutoIt syntax highlighting; thanks goes to Beege for RESH UDF
- Took out word wrap function and menu item as RichEdit is word wrapped already
- Took out ini for the word wrap, but want to be very portable anyway
- Added check for character attributes change
- Added au3 file type for open and save dialog boxes

Snips & Scripts

  Reveal hidden contents

My Snips: graphCPUTemp ~ getENVvars
My Scripts: Short-Order Encrypter - message and file encryption V1.6.1 ~ AuPad - Notepad written entirely in AutoIt V1.9.4

Feel free to use any of my code for your own use.                                                                                                                                                           Forum FAQ

 

Posted

I suppose this requires the "Preview" ?

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

Posted
  On 10/9/2014 at 6:37 PM, mLipok said:

I suppose this requires the "Preview" ?

 

It would be very cool to transition from martin's dll print library to your RTF print library. ;)

Snips & Scripts

  Reveal hidden contents

My Snips: graphCPUTemp ~ getENVvars
My Scripts: Short-Order Encrypter - message and file encryption V1.6.1 ~ AuPad - Notepad written entirely in AutoIt V1.9.4

Feel free to use any of my code for your own use.                                                                                                                                                           Forum FAQ

 

Posted

Nice update but I spotted some bugs

The maximize does not resize the edit box.

Also the syntax highlighting seems to note work right on large text. also noticed it will hang the app and you cannot exit.

keep up the good work it's looking better with each update.

On Error Resume Pulling Hair Out.

  • 2 weeks later...
Posted
  On 10/11/2014 at 11:43 AM, DreamVB said:

Nice update but I spotted some bugs

The maximize does not resize the edit box.

Also the syntax highlighting seems to note work right on large text. also noticed it will hang the app and you cannot exit.

keep up the good work it's looking better with each update.

 

Thank you for the words of encouragment! Working on these right now. :)

  On 10/12/2014 at 12:39 AM, AZJIO said:

The font size doesn't change

Date has to be inserted into a cursor position

Many features don't work

 

Thank you for taking the time to look over it AZJIO!

Snips & Scripts

  Reveal hidden contents

My Snips: graphCPUTemp ~ getENVvars
My Scripts: Short-Order Encrypter - message and file encryption V1.6.1 ~ AuPad - Notepad written entirely in AutoIt V1.9.4

Feel free to use any of my code for your own use.                                                                                                                                                           Forum FAQ

 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...