| 
 | 
 
Joined:  Aug 2007 
Posts: 331  
Pan-dimensional mouse 
 | 
 
OP
 
Pan-dimensional mouse 
Joined:  Aug 2007 
Posts: 331  | 
im trying to create my own custom edit box.. how would i include spaces in it
  and how would i simulate word wrapping 
 
 |  
 
 | 
 
 
 |  
 
| 
 | 
 
Joined:  Jan 2003 
Posts: 2,125  
Hoopy frood 
 | 
 
 
Hoopy frood 
Joined:  Jan 2003 
Posts: 2,125  | 
You really have to try harder to make your posts clearer, almost all your posts are way too short and convey a feeling that you just can't be bothered to explain properly and give details. Assuming you're talking about picture windows: For the spaces issue, use any of the workarounds suggested  here. As for word wrapping,  /help $wrap  
 
 |  
 
 | 
 
 
 |  
 
| 
 | 
 
Joined:  Aug 2007 
Posts: 331  
Pan-dimensional mouse 
 | 
 
OP
 
Pan-dimensional mouse 
Joined:  Aug 2007 
Posts: 331  | 
sorry.. i ment wrapping in picwins too and i wanted to create my own version of a rich edit text box 
 
 |  
 
 | 
 
 
 |  
 
| 
 | 
 
Joined:  Aug 2007 
Posts: 331  
Pan-dimensional mouse 
 | 
 
OP
 
Pan-dimensional mouse 
Joined:  Aug 2007 
Posts: 331  | 
well i didnt understand that article very much.. but i did figure out another way to do it, so thx anyway..
  but onto the next thing... what is a simple formula to create multiples(etc. line numbers and knowing how to space them correctly) like: i want the bar to be drawn at 39 if the line == 1 and 100 if its 2 and so on(random numbers) 
Last edited by foshizzle; 11/02/08 12:23 AM.
 
 
 |  
 
 | 
 
 
 |  
 
| 
 | 
 
Joined:  Oct 2004 
Posts: 8,061  
Hoopy frood 
 | 
 
 
Hoopy frood 
Joined:  Oct 2004 
Posts: 8,061  | 
As before, you need to explain better what you want.  I *think* you're talking about multiple characters repeating, such as "a" repeating 100 times (or spaces repeating that many).  If so, see /help $str .  If not, please explain better.
  For rich edit, use DCX. 
 
 |  
 
 | 
 
 
 |  
 
| 
 | 
 
Joined:  Aug 2007 
Posts: 331  
Pan-dimensional mouse 
 | 
 
OP
 
Pan-dimensional mouse 
Joined:  Aug 2007 
Posts: 331  | 
not $str.. and im using picwins.. i wanted to use it for drawing text at a current position resembling different lines
  ex: draw blah on line 1(10y) draw blah on line 2(25y) so on so forth ... you get what i mean? yes? no? maybe so? 
 
 |  
 
 | 
 
 
 |  
 
| 
 | 
 
Joined:  Dec 2002 
Posts: 2,884  
Hoopy frood 
 | 
 
 
Hoopy frood 
Joined:  Dec 2002 
Posts: 2,884  | 
Use $width() to figure out where you need to wrap text. Use $height() to get line heights. 
 
 |  
 
 | 
 
 
 |  
 
| 
 | 
 
Joined:  Aug 2007 
Posts: 331  
Pan-dimensional mouse 
 | 
 
OP
 
Pan-dimensional mouse 
Joined:  Aug 2007 
Posts: 331  | 
i get that but how about the factors and how would i break up the string of text into dif lines 
Last edited by foshizzle; 11/02/08 02:14 AM.
 
 
 |  
 
 | 
 
 
 |  
 
| 
 | 
 
Joined:  Sep 2005 
Posts: 2,630  
Hoopy frood 
 | 
 
 
Hoopy frood 
Joined:  Sep 2005 
Posts: 2,630  | 
i get that but how about the factors and how would i break up the string of text into dif lines  qwerty already told you: /help $wrap  
 
 |  
 
 | 
 
 
 |  
 
| 
 | 
 
Joined:  Aug 2007 
Posts: 331  
Pan-dimensional mouse 
 | 
 
OP
 
Pan-dimensional mouse 
Joined:  Aug 2007 
Posts: 331  | 
that still doesnt tell me how to do factoring 
 
 |  
 
 | 
 
 
 |  
 
| 
 | 
 
Joined:  Oct 2004 
Posts: 8,061  
Hoopy frood 
 | 
 
 
Hoopy frood 
Joined:  Oct 2004 
Posts: 8,061  | 
 |  
 
 | 
 
 
 |  
 
| 
 | 
 
Joined:  Dec 2002 
Posts: 2,884  
Hoopy frood 
 | 
 
 
Hoopy frood 
Joined:  Dec 2002 
Posts: 2,884  | 
Nobody knows what you mean by factoring. Here's a simple example of how you might do it: ; Setup variables
var %text = THIS IS THE TEXT TO BE DISPLAYED
var %fontname = FONT NAME HERE
var %fontsize = FONT SIZE HERE
var %width = THIS IS THE WIDTH THE TEXT NEEDS TO FIT IN
var %window = THE PICWIN YOU WANT TO DRAW ON
var %color = A $RGB() VALUE OF THE TEXT COLOUR
; End of setup variables
var %lines = $wrap(%text, %fontname, %fontsize, %width, 0)
var %height = $height(%text, %fontname, %fontsize)
var %i = 1
while %i <= %lines {
  drawtext -r %window %color $qt(%fontname) %fontsize 0 $calc(%height * (%i -1)) $wrap(%text, %fontname, %fontsize, %width, %i)
  inc %i
} 
 
 |  
 
 | 
 
 
 |  
 
| 
 | 
 
Joined:  Aug 2007 
Posts: 331  
Pan-dimensional mouse 
 | 
 
OP
 
Pan-dimensional mouse 
Joined:  Aug 2007 
Posts: 331  | 
nvm but what i was saying.. how do u create a while loop to create infanite number of lines.. and put the certain text on the certain line what do i add to to incorporate new lines into this(¶ is a new line) -- using a string as my text.. i need to separate each line and write it to a new position but idk how to do that    var %tex = $regsubex($hget(Note [ $+ [ $1 ] ],Text),/\—/gSi, $chr(32)),%i = 1
  $iif(%tex, drawtext -pn $1 $3 verdana 12 5 $calc(12 + 12 * %i) %tex, halt)
  
Last edited by foshizzle; 12/02/08 01:05 AM.
 
 
 |  
 
 | 
 
 
 |  
 
| 
 | 
 
Joined:  Oct 2003 
Posts: 284  
Fjord artisan 
 | 
 
 
Fjord artisan 
Joined:  Oct 2003 
Posts: 284  | 
In a picwin? Have you looked at the commands for picwins? At all?
  And...this _inifinite_ number of lines in a while loop - you're just going to create an infinite loop, aren't you? Unless you're clever about it, you're going to lock mIRC up.
  Oh. The help has the commands for picture windows: /help Picture Windows
  And more specifically for your question: /help /drawtext
  [edit] And how many questions are you trying to ask at once? [/edit] 
Last edited by Sais; 12/02/08 01:33 AM.
 
 
 |  
 
 | 
 
 
 |  
 
| 
 | 
 
Joined:  Aug 2007 
Posts: 331  
Pan-dimensional mouse 
 | 
 
OP
 
Pan-dimensional mouse 
Joined:  Aug 2007 
Posts: 331  | 
did u read any of what i had said earlier? 
 
 |  
 
 | 
 
 
 |  
 
| 
 | 
 
Joined:  Oct 2003 
Posts: 284  
Fjord artisan 
 | 
 
 
Fjord artisan 
Joined:  Oct 2003 
Posts: 284  | 
All of it....before you edited it 
Last edited by Sais; 12/02/08 01:37 AM.
 
 
 |  
 
 | 
 
 
 |  
 
| 
 | 
 
Joined:  Oct 2003 
Posts: 3,641  
Hoopy frood 
 | 
 
 
Hoopy frood 
Joined:  Oct 2003 
Posts: 3,641  | 
@ foshizzle:
  It is my humble opinion that you need to stop posting on this board until you learn how to communicate your thoughts coherently and completely. Put away your keyboard, go to a book store, pick up a book on English grammar, and don't come back until you finish it.
  Regards. 
 
 |  
 
 | 
 
 
 |  
 
| 
 | 
 
Joined:  Aug 2007 
Posts: 331  
Pan-dimensional mouse 
 | 
 
OP
 
Pan-dimensional mouse 
Joined:  Aug 2007 
Posts: 331  | 
Sais, then if you know so much, help me. Don't give me a link that does not have to do anything with what I was talking about.
  is that better Argv0? 
 
 |  
 
 | 
 
 
 |  
 
| 
 | 
 
Joined:  Oct 2003 
Posts: 284  
Fjord artisan 
 | 
 
 
Fjord artisan 
Joined:  Oct 2003 
Posts: 284  | 
When I answered, you had posted only: 
  "but what i was saying.. how do u create a while loop to create infanite number of lines.. and put the certain text on the certain line"
  And that has nothing to do with the additional edit you made that I can discern.
  P.S. There was never any claim of knowledge. I just tried to decipher your question as best I could, and it suggested you hadn't read the help file. (See also my comment below) 
Last edited by Sais; 12/02/08 02:25 AM.
 
 
 |  
 
 | 
 
 
 |  
 
| 
 | 
 
| 
 
Reaper
 
 | 
 
| 
 Reaper 
 | 
i dont know what you are trying to create but to me you are not making any sense. what is this script supposed to do? i mean we cant help you unless you tell us what the script is supposed to do and what you are trying to create with this script. i mean you are just asking us random questions and not telling us what you are trying to create. basically be specific in what you need help with. i dont like having to guess plus you can find most stuff in the help file. we are here to help you understand stuff in the help file. we are not here to quote you every line in the help file. basically read the help file before posting questions because you will find most your answers there. just ask specific questions about what you need. 
 
 |  
 
 | 
 
 
 |  
 
 
   |  
 
 |