| View previous topic :: View next topic |
| Author |
Message |
moke Contributor

Joined: 02 Jan 2002 Posts: 162
|
Posted: Mon May 19, 2003 7:17 pm Post subject: Drag Drop bug |
|
|
Ok how 'bout this one. Create a dialog using the dragdrop property. Do
not show it yet. Create another dialog without dragdrop and show it. Now
go back to the first dialog and show it. You lose the drag drop property of
the first dialog. This actually drove me nuts for awhile before I realized it
must be a bug. The example here explains it a little clearer.
It would appear that if you’re using the dragdrop property you must show
that dialog before creating another dialog without dragdrop.
moke
| Code: |
Title Drag and Drop Example
DIALOG CREATE,Drag and Drop Example,-1,0,294,188,DRAGDROP
DIALOG ADD,BUTTON,OK,136,52,64,24
DIALOG ADD,BUTTON,Cancel,136,180,64,24
DIALOG ADD,LIST,LB,10,10,272,114
DIALOG ADD,STATUS,SB,Drag files from Explorer and drop on the dialog
DIALOG CREATE,Example,-1,0,294,188
DIALOG ADD,BUTTON,OK,136,52,64,24
DIALOG ADD,BUTTON,Cancel,136,180,64,24
DIALOG ADD,LIST,LB,10,10,272,114
DIALOG ADD,STATUS,SB,Drag files from Explorer and drop on the dialog
DIALOG SHOW
wait 3
dialog hide
dialog select,0
DIALOG SHOW
:loop
wait event
%E = @event()
if @equal(%E,DRAGDROP)
list create,LB
list DROPFILES,LB
dialog set,SB,@count(LB) files were dropped
goto loop
end
|
|
|
| Back to top |
|
 |
FreezingFire Admin Team

Joined: 23 Jun 2002 Posts: 3508
|
Posted: Mon May 19, 2003 7:21 pm Post subject: |
|
|
It's present in VDS 4.5 too. _________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
| Back to top |
|
 |
moke Contributor

Joined: 02 Jan 2002 Posts: 162
|
Posted: Mon May 19, 2003 7:32 pm Post subject: |
|
|
Thanks for checking FF.
This was a big headache ‘till I figured out it was a bug. I actually found
this while upgrading an older app to be DD compatible. I actually had to
release my app flashing the user the wrong screen because there was
just too much code I would’ve had to change.
Hopefully by seeing it here others might save some time.
moke |
|
| Back to top |
|
 |
FreezingFire Admin Team

Joined: 23 Jun 2002 Posts: 3508
|
Posted: Mon May 19, 2003 8:12 pm Post subject: |
|
|
If you're talking about upgrading code from VDS 2.x, don't forget about
the code converter.  _________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
| Back to top |
|
 |
moke Contributor

Joined: 02 Jan 2002 Posts: 162
|
Posted: Mon May 19, 2003 8:26 pm Post subject: |
|
|
No, I was talking about a previously released application that I was
updating with some additional features. Although, this particular code did
start out in 2.x., it was upgraded (using the converter ) quite a while
ago.
What I meant was that had I known about the bug earlier in the
development of my product I might have been able to make it a little
more presentable to the user, but at this point there was just too much
code I would’ve had to reprogram and my release date would’ve been WAY
off schedule.
moke |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|