Re: D2006 Object inspector component



DoctorC wrote:
I have looked at this and wondered

There is an event - - OnDraw

This allows for you to take over the drawing of each box.
With this you can change the background color of any box.

with this you can add the Plus Minus or other logo's if you so desire

From here it should not be too hard to do what you want.

Which component? I tried several components and several drawing events, but it goes quite messy or it takes a lot of coding...


and as you know with the TValuelisteditor you can also have each box as
standard entry or as drop down combo or trigger an other routine - -
(such as the OI does for bringing up the font dialog); and I have used these quite often to good effect - - -

No edit functionality needed, just showing values

and even add the drop down combo to the TStringGrid with good functionality.

Jim P.
Tvaluelisteditor

.



Relevant Pages

  • Re: Drawing on DC
    ... class Circle: public Drawing { ... It would be *called* from OnDraw, ... You should only draw when you need to draw, ... Drawing your objects on a bitmap merely renders the circle, rectangle, etc. as bits (which ...
    (microsoft.public.vc.mfc)
  • Re: MFC Custom Control in a MFC DLL
    ... supposed to start getting the DC since, as I did before in OnDraw(), I ... You are confusing drawing with "initialization". ... CWnd and SetWindowPosand the result is that it doesn't draw ... (There are VERY RARE exceptions, such as doing rubber-banding in OnMouseMove, but they are ...
    (microsoft.public.vc.mfc)
  • Re: Drawing on DC
    ... circles, class for rectangle, etc) ... class Circle: public Drawing { ... It would be *called* from OnDraw, ... You should only draw when you need to draw, ...
    (microsoft.public.vc.mfc)
  • Re: MFC Custom Control in a MFC DLL
    ... You are confusing drawing with "initialization". ... Doing drawing outside the OnDraw handler makes no sense! ... (There are VERY RARE exceptions, such as doing rubber-banding in OnMouseMove, but they are ... assume that it is not valid to draw outside OnDraw. ...
    (microsoft.public.vc.mfc)
  • Re: MFC Custom Control in a MFC DLL
    ... You are confusing drawing with "initialization". ... Doing drawing outside the OnDraw handler makes no sense! ... (There are VERY RARE exceptions, such as doing rubber-banding in OnMouseMove, but they are ... assume that it is not valid to draw outside OnDraw. ...
    (microsoft.public.vc.mfc)