mIRC Homepage
Posted By: MTech text - 24/06/03 01:52 AM
how can i get different text effects in a text box (edit box)

marquee
marquee right
blink

and one that shakes left and right real fast
Posted By: KingTomato Re: text - 24/06/03 02:02 AM
Scripting? DLL?
Posted By: MTech Re: text - 24/06/03 02:10 AM
scripting.
i dont like dlls unless it cant be done in script
Posted By: Thray Re: text - 24/06/03 03:07 AM
If it could be done in script why would you use a DLL at all? I'm confused by your statement...
Posted By: MTech Re: text - 24/06/03 03:09 AM
i said exactly what you just did

if it cant be done in script, i have to use a dll

i know this can be done in script
i have seen it, i just dont remember wherereree
Posted By: Thray Re: text - 24/06/03 03:10 AM
Oh, I'm sorry. Uhh.. you said 'cant' and since there was no apostrophe I completely missed the t.
Posted By: MTech Re: text - 24/06/03 03:15 AM
oh ok...i don't like to waste time pushing the " ' " key when i can ignore it... :P
Posted By: SladeKraven Re: text *DELETED* - 24/06/03 04:46 AM
Post deleted by SladeKraven
Posted By: MTech Re: text - 24/06/03 04:51 AM
thats nice too:) hope i can get the rest of what i wanted
Posted By: _D3m0n_ Re: text - 24/06/03 05:30 AM
one hint MDX ..... its all u need to learn about for dialogs
Posted By: MTech Re: text - 24/06/03 09:40 AM
i dont recall a function in mdx for what i want
Posted By: ScatMan Re: text - 24/06/03 06:42 PM
u can use a timer, if u want it so explain about marquee and blink, i dunno what is that

Posted By: pheonix Re: text - 24/06/03 07:52 PM
i dont understand exactly what u want but in mdx there is a function called richedit(not in the help file) but it adds thing to an edit/list box exactly how it wud appear as a message to the channel

dll pathtomdxhere SetMdxControl id richedit > ctl_gen.mdx
but when u add something u have to use did -ra and look at my example:
did -ra name id text +m yourtexthere
the rest isnt optional grin
Posted By: MTech Re: text - 24/06/03 08:00 PM
ill put this off a bit i have a post i want answered...ty for your help
Posted By: KingTomato Re: text - 25/06/03 01:39 AM
Here ya go MTEch:

Code:
dialog styles {
  title "Editbox Styles"
  size -1 -1 125 20
  option dbu
  edit "KingTomato Styles Demo", 1, 0 0 100 10, autohs
  button "Close", 2, 100 0 25 10, ok
  radio "Shake", 3, 0 10 30 10, group
  radio "Scroll", 4, 45 10 30 10
  radio "Blink", 5, 90 10 30 10
}

on 1:DIALOG:styles:INIT:*: {
  /did -c $dname 3
  /styles.show $dname init
  .timerstyles -m 0 300 /styles.show $dname
}

alias styles.show {
  if ($dialog($$1)) {
    if ($2 == init) {
      /did -ra $$1 1 $replace($did($$1, 1), $chr(32), $chr(160))
      /set -u5 %styleMsg $did($$1, 1)
    }
    else /set -u5 %styleMsg %styleMsg

    var %curVal = $did($$1, 1)
    if ($did($$1, 3).state == 1) {
      if ($left(%curVal, 1) == $chr(160)) /did -ra $$1 1 $right(%curVal, -1)
      else /did -ra $$1 1 $+($chr(160),%curVal)
    }
    else if ($did($$1, 4).state == 1) {
      if (!%curVal) /did -ra $$1 1 %styleMsg
      /did -ra $$1 1 $right(%curVal, -1) $+ $left(%curVal, 1)
    }
    else if ($did($$1, 5).state == 1) {
      if (%curVal) /did -r $$1 1
      else /did -ra $$1 1 %styleMsg
    }
  }
  else .timer [ $+ [ $$1 ] ] off
}

Known bug: If you goto blink and let it disappear, and while the textbox is empty go to another mode (Scroll or shake) the text will not appear.. I tryed fixing it, but can't be bothered... Just a POC file anyways >:D
Posted By: MTech Re: text - 25/06/03 04:44 AM
ty smile
© mIRC Discussion Forums