|
Joined: Aug 2004
Posts: 7,252
Hoopy frood
|
OP
Hoopy frood
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. edit "", 1018, 380 3 440 40, tab 1000 read hsbar
|
|
|
|
Joined: Jun 2003
Posts: 92
Babel fish
|
Babel fish
Joined: Jun 2003
Posts: 92 |
k1ll3rz
|
|
|
|
Joined: Aug 2004
Posts: 7,252
Hoopy frood
|
OP
Hoopy frood
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.
|
|
|
|
Joined: Jun 2003
Posts: 92
Babel fish
|
Babel fish
Joined: Jun 2003
Posts: 92 |
show me the whole code u r uusing
k1ll3rz
|
|
|
|
Joined: Aug 2004
Posts: 7,252
Hoopy frood
|
OP
Hoopy frood
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 did -zra $dname 1018 $strip($chan(%chan).topic)
Where %chan is the channel as selected in another section of the dialog.
|
|
|
|
Joined: Jun 2003
Posts: 92
Babel fish
|
Babel fish
Joined: Jun 2003
Posts: 92 |
did -z $dname 1018 needs to be after the code u combined it with
k1ll3rz
|
|
|
|
Joined: Aug 2004
Posts: 7,252
Hoopy frood
|
OP
Hoopy frood
Joined: Aug 2004
Posts: 7,252 |
Not working. In case I've done something wrong, here's the on dialog event for that part as I currently have it. 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
|
|
|
|
Joined: Jun 2003
Posts: 92
Babel fish
|
Babel fish
Joined: Jun 2003
Posts: 92 |
try: did -z channel_control 1018
k1ll3rz
|
|
|
|
Joined: Aug 2004
Posts: 7,252
Hoopy frood
|
OP
Hoopy frood
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.
|
|
|
|
Joined: Jun 2003
Posts: 92
Babel fish
|
Babel fish
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
|
|
|
|
Joined: Aug 2004
Posts: 7,252
Hoopy frood
|
OP
Hoopy frood
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.
|
|
|
|
Joined: Jun 2003
Posts: 92
Babel fish
|
Babel fish
Joined: Jun 2003
Posts: 92 |
edit wut i just said then use diid -z channel_control 1018
k1ll3rz
|
|
|
|
Joined: Aug 2004
Posts: 7,252
Hoopy frood
|
OP
Hoopy frood
Joined: Aug 2004
Posts: 7,252 |
|
|
|
|
Joined: Jun 2003
Posts: 92
Babel fish
|
Babel fish
Joined: Jun 2003
Posts: 92 |
not sure without seeing the whole script then...............
k1ll3rz
|
|
|
|
Joined: Aug 2004
Posts: 7,252
Hoopy frood
|
OP
Hoopy frood
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)
|
|
|
|
Joined: Oct 2005
Posts: 1,741
Hoopy frood
|
Hoopy frood
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: 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
|
|
|
|
Joined: Aug 2004
Posts: 7,252
Hoopy frood
|
OP
Hoopy frood
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.
|
|
|
|
Joined: Dec 2002
Posts: 1,245
Hoopy frood
|
Hoopy frood
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
|
|
|
|
Joined: Aug 2004
Posts: 7,252
Hoopy frood
|
OP
Hoopy frood
Joined: Aug 2004
Posts: 7,252 |
Obviously not, since that was suggested and tried earlier.
|
|
|
|
Joined: Mar 2005
Posts: 420
Fjord artisan
|
Fjord artisan
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!
|
|
|
|
|