Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem with FoxySlider class

Status
Not open for further replies.

Gerrit Broekhuis

Programmer
Aug 16, 2004
316
NL
Hi,

In a new project I'm trying to use the FoxySlider class. I have version "v0.99a 2014-12-05" in my project.

Basically it's working fine. I have juist one very nasty bug I cannot find or solve that has bothered me now for several days.

I discovered that by clicking on the xslider imgtrack object something unwanted happens in my program (it works asif I had clicked on another object). So I added “NODEFAULT” to all click events in all the objects in this class. There is no difference whatsoever. I checked my code many, many times, rebuilt the form, put the affected object inside a container, put the FoxySlider xslider objecx in a seperate container, etc., etc., but there is no change in the xslider's behaviour.

In the click event of xslider.imgtrack I have for testing:
“WAIT WINDOW "click" timeout(1)
NODEFAULT”

When I click on the imgtrack bar the wait window is shown and something unwanted is happenning in my program.
How do I get the FoxySlider class to NOT respond to any clicks?


Regards, Gerrit
 
Hi Gerrit,

I'm not familiar with FoxySlider, so I'm not the best person to help you with this. But, in general, if you want to prevent the code in the Click event from executing, NODEFAULT won't do that. Instead, add [tt]RETURN .f.[/tt] to the control's When event.

Perhaps someone else here can provide more help. I did try searching for FoxySlider documentation, but all I found was some greeting cards with a picture of a fox on them, and something called a "Foxy Slider Quarter Horse", whatever that it.

Mike

__________________________________
Mike Lewis (Edinburgh, Scotland)

Visual FoxPro articles, tips and downloads
 
Hi Mike,

The imgTrack object in FoxySlider is an "image" and has no "When" event. I tried RETURN .F. in Click, but the click is still in action.
The container with the imgTrack object has no "When" event either. I tried RETURN .F. there too, but this FoxySlider class keeps passing on Clicks to another object.
Very frustrating indeed.

I have now included a zip with the FoxySlider class.

Regards, Gerrit
 
Gerrit,

i've not used this class either so can't offer any real help.

But did you try putting AEVENTS() and ASTACKINFO() in your other object's code? They might show you the path backwards...

hth

n
 
I don't know this control either, but what does the Event Tracker tell you about what's going on?

Tamar
 
Hi Tamar,

I’ve worked with Foxpro since 1986, but what is the Event Tracker? I guess I should have known by now...
Can you give some additional information as I don’t have the possibility to use my computer today.
Then I will check tomorrow.

Regards, Gerrit
 
The Event Tracker is a tool in the VFP Debugger that lets you see what events fire while code is running. It's one of the first places I turn when I'm having trouble understanding why things are happening in the order they are.

I doubt I can explain it in a message better than I did in the paper Mike linked.

Tamar
 
Hi,

I’m very sorry, but I have given up on this. I was unable to find the cause for the unwanted click behavior.

In the mean time I’ve developped my own solution for this “slider”. My slider will show the actual value, show relative tooltips and will work well with both the mouse and touch on touchscreens. My solution is using a container, 45 shapes (in this case), a timer and a single custom form method.

81B9CD8F-82E7-4181-AB83-D27791142F07_qcngz1.png


Regards, Gerrit
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top