Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Color change with setting security
Message
De
17/04/2003 10:15:27
 
 
À
16/04/2003 16:41:07
Bill Breay
Custom Business Software
Arvada, Colorado, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
The Mere Mortals Framework
Divers
Thread ID:
00778611
Message ID:
00778835
Vues:
26
>I have a grid (child of cgridlist) with custom controls (a textbox and a combobox). I did this because I wanted security applied to the controls so that the user could still scroll the grid in the readonly mode. The scrolling works fine.
>
>However, the back color of the comboboxes changes from the normal grey to white when the security is changed from full to readonly. I believe it is done via code. ??? None of the properties seem to have any effect.

The first-level base classes in ccontrols.vcx contain the color-changing code that runs when changing access. You'll have to override it at this level.

>The grid is in a container with the lostfocus, gotfocus etc set as defined in the developers guide. The grid has sethighlight set to on, which does not work on the combobox either.

The grid is using cgridtextboxes which have code to make them work. The combobox you're using doesn't. You'll need to VB-inherit code.

>Is there a way to negate the color change with security being set as readonly and have the highlight work as without security???

I'm not sure, haven't worked too deeply with security setting during runtime.

Chris.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform