1. Re Drag'n'Drop -- If at 1st U don't succeed -- Call it Version 1

Hello,

Selgor here

Drag n Drop is a problem in Euphoria 4 amateurs

But, rethink code and get the list right ??

Thank u all for reading the code

Maybe ... like me ...

U do not understand error explanation

Try again I shall

Cheers

Selgor

new topic     » topic index » view message » categorize

2. Re: Re Drag'n'Drop -- If at 1st U don't succeed -- Call it Version 1

Often documentation might be hard to find. So much so that users do not bother reading it and just assume how things should work. However, in the case of the Win32lib wrapper it is well documented. So, Read The Manual. The drag and drop event gets called three times when you drop a file once. The manual will tell you why.

Shawn Pringle

new topic     » goto parent     » topic index » view message » categorize

3. Re: Re Drag'n'Drop -- If at 1st U don't succeed -- Call it Version 1

Hello Shawn

Is this what you are writibg about?

 
integer vFileCount 
      procedure dropped( integer self, integer event, sequence parms ) 
          if parms[1] = 0 then 
              if length(parms[2]) = 1 then 
                  -- Opening call, the file count. 
                   setEnable(actionButton, w32False) 
                  eraseItems(TheList) 
                  vFileCount = parms[2] 
 
              elsif length(parms[2]) = 0 then 
                  -- Final call. 
                   setEnable(actionButton, w32True) 
 
 
              else 
                  -- add the file name to the list 
                   addItem( TheList, parms[2] ) 
              end if 
          end if 
      end procedure 
      setHandler(TheList, w32HDragAndDrop, routine_id("dropped")) 
 

I read all that

I am writing about the Error messages
To me ...... they are difficult to understand

Cheers

Selgor

new topic     » goto parent     » topic index » view message » categorize

4. Re: Re Drag'n'Drop -- If at 1st U don't succeed -- Call it Version 1

Okay. This is what I think you mean. When a newbie who doesn't read the manual writes this for the first time, he assumes that params is the filename and he get some kind of error. If the error message is hard to understand, post it here and we can talk about suggestions for alternatives.

Shawn Pringle

new topic     » goto parent     » topic index » view message » categorize

5. Re: Re Drag'n'Drop -- If at 1st U don't succeed -- Call it Version 1

Shawn

I posted about help with Drag n Drop programme

In that post I showed some of the error message

The post is

"Please some help with Drag n Drop programme nearly works.... etc"

Post is still there

Dan Moyer responded

Do you want the whole error message ?

Cheers

Selgor

new topic     » goto parent     » topic index » view message » categorize

6. Re: Re Drag'n'Drop -- If at 1st U don't succeed -- Call it Version 1

and by the way

The programme used to work with

win32lib0.57.9

Sure a lot of change has occurred since

My point is simple ....

Why won't it still work ??

Cheers

Selgor

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu