mIRC Home    About    Download    Register    News    Help

Print Thread
Page 1 of 2 1 2
#145906 29/03/06 06:29 AM
Joined: Aug 2004
Posts: 7,252
R
RusselB Offline OP
Hoopy frood
OP Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
When I go to add text to the dialog ID using the code for the ID as shown below, the horizontal scroll bar disappears, and the text moves to the end of the display. This isn't a problem if the text fits in the display, however, if it doesn't, I don't have the horizontal scroll bar to use for scrolling.
Code:
   edit "", 1018, 380 3 440 40, tab 1000 read hsbar 
 

#145907 29/03/06 06:41 AM
Joined: Jun 2003
Posts: 92
K
Babel fish
Offline
Babel fish
K
Joined: Jun 2003
Posts: 92
did -z $dname 1018


k1ll3rz
#145908 29/03/06 06:48 AM
Joined: Aug 2004
Posts: 7,252
R
RusselB Offline OP
Hoopy frood
OP Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
thanks for that, now a related problem, the scroll bar isn't scrolling..this is my first time working with the scroll bars, so I've got almost no idea as to what I should or should not be including for parameters.

#145909 29/03/06 06:51 AM
Joined: Jun 2003
Posts: 92
K
Babel fish
Offline
Babel fish
K
Joined: Jun 2003
Posts: 92
show me the whole code u r uusing


k1ll3rz
#145910 29/03/06 07:32 AM
Joined: Aug 2004
Posts: 7,252
R
RusselB Offline OP
Hoopy frood
OP Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
The entire code isn't necessary, and it's currently nearly 5000 lines. However, the part of the code that places the information into the edit box is
Code:
   did -zra $dname 1018 $strip($chan(%chan).topic)
 
Where %chan is the channel as selected in another section of the dialog.

#145911 29/03/06 08:00 AM
Joined: Jun 2003
Posts: 92
K
Babel fish
Offline
Babel fish
K
Joined: Jun 2003
Posts: 92
did -z $dname 1018 needs to be after the code u combined it with


k1ll3rz
#145912 29/03/06 08:17 AM
Joined: Aug 2004
Posts: 7,252
R
RusselB Offline OP
Hoopy frood
OP Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
frown Not working. In case I've done something wrong, here's the on dialog event for that part as I currently have it.
Code:
 on *:dialog:Channel_Control:sclick:1004,2004,304:{
  did -r $dname 1006,2006,306
  did -c $dname 1004,2004,304 $did($did).sel
  .scon %cid
  set %chan $did($did).seltext
  did -ra $dname 1018 $strip($chan(%chan).topic)
  did -z $dname 1018
  var %a = 1, %b = $nick(%chan,0)
  while %a <= %b {
    did -a $dname 1006,2006,306 $nick(%chan,%a)
    inc %a
  }
}
 
This works fine with the exception of the dialog scroll bar for ID 1018

#145913 29/03/06 08:29 AM
Joined: Jun 2003
Posts: 92
K
Babel fish
Offline
Babel fish
K
Joined: Jun 2003
Posts: 92
try: did -z channel_control 1018


k1ll3rz
#145914 29/03/06 08:40 AM
Joined: Aug 2004
Posts: 7,252
R
RusselB Offline OP
Hoopy frood
OP Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
Scroll bar still doesn't work, and it disappears if the text is longer than the length of the edit box, also, it doesn't come back until the dialog is closed and then reopened.

Added the -z switch to the /did -ra line so that the scroll bar at least shows when the length of the entry doesn't exceed the length of the box.

#145915 29/03/06 08:53 AM
Joined: Jun 2003
Posts: 92
K
Babel fish
Offline
Babel fish
K
Joined: Jun 2003
Posts: 92
instead of:
edit "", 1018, 380 3 440 40, tab 1000 read hsbar

ttry:
edit "", 1018, 380 3 440 40, tab 1000 read autohs autovs return


k1ll3rz
#145916 29/03/06 09:06 AM
Joined: Aug 2004
Posts: 7,252
R
RusselB Offline OP
Hoopy frood
OP Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
That makes the text only show the last part of the topic (unless the entire topic fits). I had the same results on my own initial attempt using just autohs.

#145917 29/03/06 09:10 AM
Joined: Jun 2003
Posts: 92
K
Babel fish
Offline
Babel fish
K
Joined: Jun 2003
Posts: 92
edit wut i just said then use diid -z channel_control 1018


k1ll3rz
#145918 29/03/06 09:17 AM
Joined: Aug 2004
Posts: 7,252
R
RusselB Offline OP
Hoopy frood
OP Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
I did before I posted.

#145919 29/03/06 09:28 AM
Joined: Jun 2003
Posts: 92
K
Babel fish
Offline
Babel fish
K
Joined: Jun 2003
Posts: 92
not sure without seeing the whole script then...............


k1ll3rz
#145920 29/03/06 09:48 AM
Joined: Aug 2004
Posts: 7,252
R
RusselB Offline OP
Hoopy frood
OP Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
Thanks for trying anyways. I for one don't feel like copy & pasting roughly 5000 lines of code, especially when most of it has no relevance to this problem (ie: doesn't even use that dialog ID)

#145921 29/03/06 03:19 PM
Joined: Oct 2005
Posts: 1,741
G
Hoopy frood
Offline
Hoopy frood
G
Joined: Oct 2005
Posts: 1,741
You need to specify the "multi" option on the edit box for hsbar to work (apparently). I used this code to test:

Code:
alias testd { dialog -m test test }
dialog test {
  size -1 -1 600 100 
  option dbu
  edit "", 1018, 10 3 440 40, tab 1000 read multi hsbar
}
on *:dialog:test:init:0:{ did -ra $dname 1018 $str(abcde $+ $chr(32),150) }



-genius_at_work

#145922 29/03/06 04:12 PM
Joined: Aug 2004
Posts: 7,252
R
RusselB Offline OP
Hoopy frood
OP Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
Thanks Genius...once again you've resolved a problem I was having. I don't know if this next item, which is related, is a fluke or a bug (personally I don't think it should be this way), but I've noticed that sometimes the scroll bar shows and sometimes it doesn't, even though testing the scroll bar (even when it doesn't show) still works (the scroll bar shows up with the exception of the left & right scroll arrow keys (for lack of a better term). I've been unable to figure out a specific relation between the topic length and when the scroll bar does/does not display.

#145923 29/03/06 07:38 PM
Joined: Dec 2002
Posts: 1,245
M
Hoopy frood
Offline
Hoopy frood
M
Joined: Dec 2002
Posts: 1,245
Genius, wouldnt putting the -z on a second line have done it too?

did -ra $dname 1018 $strip($chan(%chan).topic)
did -z $dname 1018

#145924 29/03/06 07:43 PM
Joined: Aug 2004
Posts: 7,252
R
RusselB Offline OP
Hoopy frood
OP Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
Obviously not, since that was suggested and tried earlier.

#145925 29/03/06 11:19 PM
Joined: Mar 2005
Posts: 420
X
Fjord artisan
Offline
Fjord artisan
X
Joined: Mar 2005
Posts: 420
AFAIK, The scroll bar only shows if the length of the text is more than the length of the edit box.


If you have a plastic floor runner over your tiles, then you're one Hella Pinoy!
Page 1 of 2 1 2

Link Copied to Clipboard