15 мая 2023 года "Исходники.РУ" отмечают своё 23-летие!
Поздравляем всех причастных и неравнодушных с этим событием!
И огромное спасибо всем, кто был и остаётся с нами все эти годы!

Главная Форум Журнал Wiki DRKB Discuz!ML Помощь проекту


A request for some non-standard things...

Brad Wilson -- bradw@netnet.net
Saturday, January 13, 1996

I have need for two of the more "common" things that Microsoft uses
but did not present in a common control: wells and menu buttons.

Microsoft uses the well for color selection (they have what kinda looks
like a droplist combobox, but when you drop it, it displays a well (with
colors in it).  Ideally I would like the well to be able to support
things other than colors (arbitrary size items, perhaps not all the
same size).

Lots of people use menu buttons ... typically the end of the button has
a filled ">" or "V" on it, and when you click on it it drops down/over
a popup menu.

Before I dive into writing these, has anybody written MFC classes (or
even raw C code) for either of these?  Would anyone be interested in
MFC classes for them?  Does anyone who knows (and can say) know whether
Microsoft will provide them in the near-term future in MFC?

Thanks...
Brad

--
class CBradWilson : public CWorldWatchProgrammingTeam {
  public:
    CString GetInetAddr()   { return CString("bradw@exptech.com");      }
    CString GetPhone()      { return CString("+1 (810) 620-9803");      }
    CString GetURL()        { return CString("http://www.exptech.com"); }
    CString GetDisclaimer() { return CString("All I say is fact :-p");  }
};

//  QOTW: "There is no right or wrong ... just popular opinion"




Chong Zhang -- cz@dana.ucc.nau.edu
Tuesday, January 16, 1996

On Sat, 13 Jan 1996, Brad Wilson wrote:

> I have need for two of the more "common" things that Microsoft uses
> but did not present in a common control: wells and menu buttons.
> 
> Microsoft uses the well for color selection (they have what kinda looks
> like a droplist combobox, but when you drop it, it displays a well (with
> colors in it).  Ideally I would like the well to be able to support
> things other than colors (arbitrary size items, perhaps not all the
> same size).
>

I am not sure what you mean about the WELL control. But I did use drop 
down combo box for things with different sizes. I used the combo box with 
CBS_OWNERDRAW style, then gave each item its own height on MEASUREITEM 
message.
 
> Lots of people use menu buttons ... typically the end of the button has
> a filled ">" or "V" on it, and when you click on it it drops down/over
> a popup menu.
> 

I implemented similar popup menu with little effect. I loaded a new menu 
from the resource and poped it up at the current mouse position when 
responding to the button click message.

> Before I dive into writing these, has anybody written MFC classes (or
> even raw C code) for either of these?  Would anyone be interested in
> MFC classes for them?  Does anyone who knows (and can say) know whether
> Microsoft will provide them in the near-term future in MFC?
> 

I have no idea.

> Thanks...
> Brad
> 
> --
> class CBradWilson : public CWorldWatchProgrammingTeam {
>   public:
>     CString GetInetAddr()   { return CString("bradw@exptech.com");      }
>     CString GetPhone()      { return CString("+1 (810) 620-9803");      }
>     CString GetURL()        { return CString("http://www.exptech.com"); }
>     CString GetDisclaimer() { return CString("All I say is fact :-p");  }
> };
> 
> //  QOTW: "There is no right or wrong ... just popular opinion"
> 
> 



Brad Wilson -- bradw@netnet.net
Wednesday, January 17, 1996

Chong Zhang wrote:

> I am not sure what you mean about the WELL control.

In Win95, right click on the desktop and choose Properties.  Now go to the
Appearance page.  There are two wells labeled "Color:" (they look somewhat
like droplist combo boxes, with a color in them, until you drop them down;
then they reveal the color well).

> But I did use drop
> down combo box for things with different sizes.

I don't think I want a combobox here.  I think it should be a custom control
(I want well selections, with the possibility of adding other controls as
well, like the pushbutton labeled "Other..." in the desktop color well).

Thanks ...
Brad

--
class CBradWilson : public CWorldWatchProgrammingTeam {
  public:
    void GetInetAddr  ( CString& s ) { s = "bradw@exptech.com";      }
    void GetE164Addr  ( CString& s ) { s = "+1 (810) 620-9803";      }
    void GetURL       ( CString& s ) { s = "http://www.exptech.com"; }
    void GetDisclaimer( CString& s ) { s = "All I say is fact :-p";  }
};

//  Changes per suggestions for the best of society :-)
//  QOTW: "In the halls of justices the only justice is in the halls."




| Вернуться в корень Архива |