Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Slider Control
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
01275347
Message ID:
01275996
Vues:
22
>>>>>>Also, I noticed that GetPercent is not being called. is this needed?
>>>>>
>>>>>oH Yes, this needs to be removed as well
>>>>>
>>>>>
>>>>>>Can you please look at txtFocus.KeyPress? I cannot seem to keep the focus on the control when
>>>>>>the user presses an Arrow key. The PgUp and PgDown are working ok.
>>>>>
>>>>>Have you tried to add a NODEFAULT on the KeyPress event ?
>>>>
>>>>Not sure why I didn't think of that. Lack of sleep I think.
>>>>
>>>>Anyway,I just posted the latest changes. It's all yours.
>>>
>>>
>>>Another point:
>>>
>>>I saw you added the possibility to enable / disable the control. Cool.
>>>But this still needs a small change, to make it behave like the ActiveX, and give a better effect, creating a disabled Image version of each of the controls images.
>>>
>>>You can see how this should be easilly:
>>>
>>>In the TEST2.SCX, in the INIT() event of the FORM, add this line:
>>>
This.oLEcontrol1.OBJECT.Enabled = .F.
>>>
>>>
>>>So, we will need to add 2 new properties:
>>>ThumbActive - Image for the button when anabled and has the mouse over it
>>>ThumbDisabled - Image in GreyScale to be used when disabled
>>
>>Yes, I agree. I was actually thinking of re-doing the way the track images are handled. The
>>problem lies in the fact that the track is one image, and some images don't stretch very well.
>>
>>One way to handle it is to create TrackEnd1, TrackBody and TrackEnd2 images. Then stretch only
>>the body image. The drawback is then there are 3 images to deal with.
>>
>>Any thoughts?
>>
>>Are you makign any more changes?
>
>The track image is aproblem, specially for the case when the control will be big, when the image will be forced to be resized. The easiest way is to create a really long image, eg of 600 pixels, and when VFP will resize it the size will be reduced, and there will be no problems regarding this. GIFs work nice for this case, because the size is smaller than BMP, and tracks don't need any special effect.
>
>The ActiveX does not have an image, I think. It seems that they just use one or 2 lines. We could even change this for a polygon shape, using the new functionalities of VFP9.
>
>Did you know that using GdiPlusX we can retrieve these themes information from Windows, what will even make unnecessary to send the images ? OTOH, users would have more difficulties in creating new styles. I prefer the way it is done right now.
>
>Further, the images can be included in the VCX, using a cool technique from Bernard too.
>
>
>Anyway, handling 3 images for the Track is not that difficult...

Yes, I agree that using images is better. I think it gives the user more flexability to make
it look the way they want.

Are you going to do anything else to it? If not, I want to do the Thumb disable picture code.
If you're working on it, I will wait.
Everything makes sense in someone's mind
public class SystemCrasher :ICrashable
In addition, an integer field is not for irrational people
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform