mIRC Home    About    Download    Register    News    Help

Print Thread
#38535 27/07/03 06:22 AM
Joined: Jul 2003
Posts: 16
M
Pikka bird
OP Offline
Pikka bird
M
Joined: Jul 2003
Posts: 16
please i try many ways to do it but i cant

can of anyone Moderator or anybody help me



thnx



#38536 27/07/03 06:32 AM
Joined: Feb 2003
Posts: 79
A
Babel fish
Offline
Babel fish
A
Joined: Feb 2003
Posts: 79
do what?

#38537 27/07/03 06:39 AM
Joined: Jul 2003
Posts: 16
M
Pikka bird
OP Offline
Pikka bird
M
Joined: Jul 2003
Posts: 16
dialog caca {
title "New Project"
size -1 -1 305 93
option dbu
list 1, 143 15 144 69, size hsbar vsbar
}
on 1:dialog:caca:edit: {
did -a caca 1 List hola
did -a caca 1 List ke tal
did -a caca 1 List como va
}


a list box i wanna do


#38538 27/07/03 07:16 AM
Joined: Mar 2003
Posts: 1,271
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Mar 2003
Posts: 1,271
First off, I'd suggest reading a good tutorial, as there are some very basic errors in your code. You can find a good one at http://helpdesk.zaz.net/documents/dialog/dialog.html.

Now on to your code:

First your even syntax. From the help-file one would get this:
on 1:dialog:name:event:id: { ... }
I count three 'parameters' in that (name, event, id), where you only have two (yup, you forgot to specify the id)

Second, the "edit" specification you use. From the help-file one would get this:
edit text in editbox or combo box changed.
Yours is a listbox, where "edit" apparantly only works on a editbox (sounds fair don't you think, editing a editbox), or a combo box (which basically is a editbox).

Third, your actual actions. You use
did -a caca 1 List hola
Now this would literally print the text List hola into your listbox, which somehow I doubt you wanted to do.

So the suggested solution now is to read some tutorials, and decide on what you want. Your code indicates that you want to fill your listbox with values, the moment a user starts typing in any value. Strange thing to do. You probably want to use a button that the user pushes to fill the list (you would use sclick for the event), or fill the listbox with values when you create the dialog (you would then use init for the event).

But again -- start with the tutorial, work through it, do the examples (don't look at them, actually work them out), and frequently reference the helpfile for syntax.

Loc




DALnet #Helpdesk
I hear and I forget. I see and I remember. I do and I understand. -Confucius

Link Copied to Clipboard