AVAX-software.com Forums: Dragging control on the form - AVAX-software.com Forums

Jump to content

Page 1 of 1

Dragging control on the form

#1 User is offline   hamipers Icon

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 50
  • Joined: 06-May 05
  • Location:Ker
  • Interests:ASP.NET<br />C#.NET<br />MS SQL Server 2000<br />Delphi<br />.<br />.<br />.<br />Painting<br />Sculpture<br />Music<br />Thinking

Posted 15 May 2005 - 08:18 AM

Hi,
When I try to drag a control on the form containing the avax control, almost everything stops functioning. I would like to know why this happens. Is it because I'm using an unregistered version?

#2 User is offline   Athanasios Gardos Icon

  • Administrator
  • Icon
  • Group: Admin
  • Posts: 333
  • Joined: 21-March 05
  • Gender:Male

Posted 15 May 2005 - 06:02 PM

Hi,

You have to set the OLEDropMode Avax propery to 1 (=Manual).
Call cAvax1.SetAvaxProperty(OLEDropMode_p, 1!)
Athanasios Gardos
Avax-Software.com

#3 User is offline   hamipers Icon

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 50
  • Joined: 06-May 05
  • Location:Ker
  • Interests:ASP.NET<br />C#.NET<br />MS SQL Server 2000<br />Delphi<br />.<br />.<br />.<br />Painting<br />Sculpture<br />Music<br />Thinking

Posted 17 May 2005 - 10:36 AM

I used this in FRMMain_Load:
cAvax1.SetAvaxProperty(Avax.AvaxProp.OLEDropMode_p, 1)

But it didn't work. Should I use it somewhere else? or is the code wrong?

#4 User is offline   Athanasios Gardos Icon

  • Administrator
  • Icon
  • Group: Admin
  • Posts: 333
  • Joined: 21-March 05
  • Gender:Male

Posted 17 May 2005 - 12:36 PM

There is nothing wrong. To see if it working just drag-drop a bmp file inside AVAX.
AVAX also supports the following events:
OLECompleteDrag, OLEDragDrop, OLEGiveFeedback, OLESetData, OLEStartDrag.
For more about drag-drop please have a look at: planetsourcecode Drag-Drop example
Athanasios Gardos
Avax-Software.com

#5 User is offline   hamipers Icon

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 50
  • Joined: 06-May 05
  • Location:Ker
  • Interests:ASP.NET<br />C#.NET<br />MS SQL Server 2000<br />Delphi<br />.<br />.<br />.<br />Painting<br />Sculpture<br />Music<br />Thinking

Posted 17 May 2005 - 04:01 PM

Oh maybe I didn't explain well. I mean when I try to drag a control like a button on the form beside the avax control at programming time and while designing the from which I wanna display to the user, everything stops working. when I run the project, I just can use some limited functions like drawing lines. And on the other hand I can't use import option. Whats wrong with it? I used what you mentioned previously. By the way I couldn't find the properties you said on your last reply. The only thing I could use was this:
Call cAvax1.SetAvaxProperty(Avax.AvaxProp.OLEDropMode_p, 1)
Would you please give me a full list of the properties I can use in SetAvaxProperty method? Your help files don't include this.
Thank you so much in advance and sorry for disturbing

#6 User is offline   Athanasios Gardos Icon

  • Administrator
  • Icon
  • Group: Admin
  • Posts: 333
  • Joined: 21-March 05
  • Gender:Male

Posted 18 May 2005 - 07:45 AM

Hi,

Can you please send me a small example at gardos@hol.gr?
Athanasios Gardos
Avax-Software.com

Page 1 of 1


Fast Reply

  

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users