AutoHotkey Community

It is currently May 27th, 2012, 10:50 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 6 posts ] 
Author Message
PostPosted: October 3rd, 2006, 8:13 am 
Offline

Joined: August 24th, 2005, 5:29 pm
Posts: 549
Location: Berlin / Germany
Is it possible, to limit multiline edit text input to the specified number of rows?
Code:
Gui, Add, Edit, Limit w192 r10 vCUR_TEXT -HScroll -VScroll

does not.

Anyone any idea?

_________________
nick :wink:


Last edited by nick on October 9th, 2006, 10:17 am, edited 1 time in total.

Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 3rd, 2006, 12:07 pm 
Offline

Joined: December 27th, 2005, 1:46 pm
Posts: 6837
Location: France (near Paris)
AFAIK, no. You can create several mono-line Edit fields... Or monitor the inputed text and remove any carriage return that could create an eleventh row.

_________________
Image vPhiLho := RegExReplace("Philippe Lhoste", "^(\w{3})\w*\s+\b(\w{3})\w*$", "$1$2")


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 9th, 2006, 6:47 am 
Offline

Joined: August 24th, 2005, 5:29 pm
Posts: 549
Location: Berlin / Germany
That's not the answer I wanted, but it was an imprecise question. So let's have a second try:

Is it possible to prevent vertical scrolling in multiline edits? Monitoring linefeeds is no save solution because I want to use the "Wrap" property.

:?:

_________________
nick :wink:


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 9th, 2006, 8:41 am 
Offline
User avatar

Joined: December 26th, 2005, 4:40 pm
Posts: 8776
nick wrote:
So let's have a second try:


Still not clear! :roll: Maybe you can try this:

Code:
WS_VSCROLL    = 0x200000
ES_WANTRETURN = 0x1000

Gui, Font, s10, Verdana
Gui, Add, Edit, R10 Limit255 w330 -%ES_WANTRETURN% -%WS_VSCROLL%
Gui, Show, ,Edit Control   [ WS_VSCROLL / ES_WANTRETURN ]
Return

GuiClose:
GuiEscape:
 ExitApp
Return


Regards, :)

_________________
URLGet - Internet Explorer based Downloader
StartEx - Portable Shortcut Link


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 9th, 2006, 10:16 am 
Offline

Joined: August 24th, 2005, 5:29 pm
Posts: 549
Location: Berlin / Germany
Goyyah wrote:
Still not clear! :roll: Maybe you can try this: ...


THX for the inspiration. I looked at the +/-(Unnamed Style) options and found

Code:
Gui, Add, Edit, w330 r10 -0x0040 -HScroll -VScroll


doing what I wanted!

Regards, :D

_________________
nick :wink:


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 9th, 2006, 1:53 pm 
Offline

Joined: December 27th, 2005, 1:46 pm
Posts: 6837
Location: France (near Paris)
Good catch! I wouldn't have guessed it does that. A trick to save.

_________________
Image vPhiLho := RegExReplace("Philippe Lhoste", "^(\w{3})\w*\s+\b(\w{3})\w*$", "$1$2")


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: BrandonHotkey, chaosad, Google Feedfetcher, HotkeyStick, krajan, Yahoo [Bot] and 32 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group