mIRC Home    About    Download    Register    News    Help

Print Thread
#31811 24/06/03 01:52 AM
Joined: Mar 2003
Posts: 437
M
MTech Offline OP
Fjord artisan
OP Offline
Fjord artisan
M
Joined: Mar 2003
Posts: 437
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

#31812 24/06/03 02:02 AM
Joined: Jan 2003
Posts: 3,012
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
Scripting? DLL?


-KingTomato
#31813 24/06/03 02:10 AM
Joined: Mar 2003
Posts: 437
M
MTech Offline OP
Fjord artisan
OP Offline
Fjord artisan
M
Joined: Mar 2003
Posts: 437
scripting.
i dont like dlls unless it cant be done in script

#31814 24/06/03 03:07 AM
Joined: Jun 2003
Posts: 114
T
Vogon poet
Offline
Vogon poet
T
Joined: Jun 2003
Posts: 114
If it could be done in script why would you use a DLL at all? I'm confused by your statement...


-------------
I am the self-appointed God of needlessly complex mIRCscript.
#31815 24/06/03 03:09 AM
Joined: Mar 2003
Posts: 437
M
MTech Offline OP
Fjord artisan
OP Offline
Fjord artisan
M
Joined: Mar 2003
Posts: 437
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

#31816 24/06/03 03:10 AM
Joined: Jun 2003
Posts: 114
T
Vogon poet
Offline
Vogon poet
T
Joined: Jun 2003
Posts: 114
Oh, I'm sorry. Uhh.. you said 'cant' and since there was no apostrophe I completely missed the t.


-------------
I am the self-appointed God of needlessly complex mIRCscript.
#31817 24/06/03 03:15 AM
Joined: Mar 2003
Posts: 437
M
MTech Offline OP
Fjord artisan
OP Offline
Fjord artisan
M
Joined: Mar 2003
Posts: 437
oh ok...i don't like to waste time pushing the " ' " key when i can ignore it... :P

#31818 24/06/03 04:46 AM
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
Post deleted by SladeKraven

#31819 24/06/03 04:51 AM
Joined: Mar 2003
Posts: 437
M
MTech Offline OP
Fjord artisan
OP Offline
Fjord artisan
M
Joined: Mar 2003
Posts: 437
thats nice too:) hope i can get the rest of what i wanted

#31820 24/06/03 05:30 AM
Joined: Dec 2002
Posts: 1,527
_
Hoopy frood
Offline
Hoopy frood
_
Joined: Dec 2002
Posts: 1,527
one hint MDX ..... its all u need to learn about for dialogs


D3m0nnet.com
#31821 24/06/03 09:40 AM
Joined: Mar 2003
Posts: 437
M
MTech Offline OP
Fjord artisan
OP Offline
Fjord artisan
M
Joined: Mar 2003
Posts: 437
i dont recall a function in mdx for what i want

#31822 24/06/03 06:42 PM
Joined: May 2003
Posts: 730
S
Hoopy frood
Offline
Hoopy frood
S
Joined: May 2003
Posts: 730
u can use a timer, if u want it so explain about marquee and blink, i dunno what is that


#31823 24/06/03 07:52 PM
Joined: May 2003
Posts: 2,265
P
Hoopy frood
Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
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


new username: tidy_trax
#31824 24/06/03 08:00 PM
Joined: Mar 2003
Posts: 437
M
MTech Offline OP
Fjord artisan
OP Offline
Fjord artisan
M
Joined: Mar 2003
Posts: 437
ill put this off a bit i have a post i want answered...ty for your help

#31825 25/06/03 01:39 AM
Joined: Jan 2003
Posts: 3,012
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
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


-KingTomato
#31826 25/06/03 04:44 AM
Joined: Mar 2003
Posts: 437
M
MTech Offline OP
Fjord artisan
OP Offline
Fjord artisan
M
Joined: Mar 2003
Posts: 437
ty smile


Link Copied to Clipboard