Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can I stop headers click in mouseup event?
Message
From
20/08/2001 12:39:13
 
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00546254
Message ID:
00546285
Views:
21
Hello Vlad

i'll get more into detail ..
1. the headers should sort the columns of the grid when clicked, but not when moved or resized, but they should be move- and resizable

i've half-managed this task, i've added "left" and "right" property to my columns calculated upon the "left" value of grid and the width value of each column

checking in the mousedown event of header if "nXCoord" parameter is in "resizing area"
->
if between(nXCoord, .parent.left, .parent.left + 3) or ;
between(nXCoord, .parent.right -3, .parent.right)
.doclick = .F. && own property that is checked in Click event
endif
(i don't know how much pixels that are .. so i just set it to -+3)

and checking in the mouseup event if the "nXCoord" in not all in the "full" area of header

now i get additional thoughts on considerations i have to make
and how to workaround them :)
(when mouseup event would return .F. cause when header is enlarged, so i think adding another property which is updated in mousedown should do the thing)

in addition i must write code which updates right and left values of columns after resizing and moving (after moving is the hard part i think cause of changed columnorder)

any tips on doing this are highly appreciated!

2. i want to access internet game servers over Winsock Api .. so i thought i can use C++ Com Objects to add multithreading functionality to my programm ..
for example if a user want to requery the data of 250 servers , i would create 32 COM objects and pass them the ID, IP and Port of the servers, so they could requery them at the same time (one server after another would be too slow, cause some servers may not respond at all), and when the COM object is ready with getting and parsing the data they should write it to the cursor or return it over parameters to a method of an vfp object which then updates the cursor,
in return the object should automatically pass another ID, IP and Port to the COM object if there are any servers left in the "serverpool" .. and so on until the there are no more servers which needed to get updatet .. and then destroying all the COM Objects

hope this is a realistic task
if not serveral days of dreaming are for nothing :)

Christian
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform