Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Color change with setting security
Message
From
17/04/2003 10:15:27
 
 
To
16/04/2003 16:41:07
Bill Breay
Custom Business Software
Arvada, Colorado, United States
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Miscellaneous
Thread ID:
00778611
Message ID:
00778835
Views:
15
>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform