Is this really so difficult?

  • Thread starter Thread starter Brian Abbott
  • Start date Start date
B

Brian Abbott

Hi

I don't use .NetCF myself but have someone working for me developing a PPC
app using C#. To cut a long story short the spec is for different coloured
command buttons to be used rather than the default grey background, but the
developer (who otherwise seems pretty good) is resisting this saying it will
be a lot of work as .NetCF doesn't provide this capability natively.

With PC-based languages I work with, changing the backcolor is easy peasy,
either by subclassing or just setting a backcolor property.

So the question, is this _really_ so difficult in .NetCF?

Cheers

Brian Abbott
 
Brian Abbott said:
I don't use .NetCF myself but have someone working for me developing a PPC
app using C#. To cut a long story short the spec is for different coloured
command buttons to be used rather than the default grey background, but the
developer (who otherwise seems pretty good) is resisting this saying it will
be a lot of work as .NetCF doesn't provide this capability natively.

With PC-based languages I work with, changing the backcolor is easy peasy,
either by subclassing or just setting a backcolor property.

So the question, is this _really_ so difficult in .NetCF?

Yes, to put it simply.

There are many things in the full framework which aren't in the Compact
Framework. The BackColor property is present in Control, but is only
supported for certain controls.
 
Starting with SP2, the Button BackColor has been properly implemented. So if
you install SP2, then the developer can set the BackColor's in the
constructor quite easily.
http://www.microsoft.com/downloads/details.aspx?FamilyID=359ea6da-fc5
d-41cc-ac04-7bb50a134556&displaylang=en

I don't believe that's true, unfortunately.

Note that the page you linked to says

"Added support for ForeColor &/or BackColor for Button [...]" so it
could easily just be ForeColor.

Having said that, I've just tried setting both the BackColor *and* the
ForeColor of a button to different colours, and it had absolutely no
effect, so I don't know what they actually *have* changed there...
 
Jon Skeet said:
Starting with SP2, the Button BackColor has been properly implemented. So if
you install SP2, then the developer can set the BackColor's in the
constructor quite easily.
http://www.microsoft.com/downloads/details.aspx?FamilyID=359ea6da-fc5
d-41cc-ac04-7bb50a134556&displaylang=en

I don't believe that's true, unfortunately.

Note that the page you linked to says

"Added support for ForeColor &/or BackColor for Button [...]" so it
could easily just be ForeColor.

Having said that, I've just tried setting both the BackColor *and* the
ForeColor of a button to different colours, and it had absolutely no
effect, so I don't know what they actually *have* changed there...

My mistake - I appear to have SP1 on my device, not SP2. (I could have
sworn the devices came with SP2, but there we go...)
 
Thanks to you and Jon, that's useful.

Any reason why SP2 (RE-released 10 months ago) wouldn't be in use ?

Cheers

Brian Abbott
 
Brian Abbott said:
Thanks to you and Jon, that's useful.

Any reason why SP2 (RE-released 10 months ago) wouldn't be in use ?

It depends on what ROM your device has. Device manufacturers are
understandably leery of new versions of a ROM when the one they've got
is working mostly okay.

However, you can distribute SP2 and install it with your app.
 
Back
Top