Board index » cppbuilder » New Windows Controls Features

New Windows Controls Features


2008-01-06 11:41:12 PM
cppbuilder49
Hi,
Just read an interesting article about new features for windows
controls.
msdn.microsoft.com/msdnmag/issues/07/08/WindowsCPP/default.aspx
It would be nice if the VCL eventually supported these. Would it be
best to create a QC entry for each one or the whole lot?
Warmest regards, Stuart
 
 

Re:New Windows Controls Features

"Stuart Kelly" < XXXX@XXXXX.COM >wrote in message
Quote
Just read an interesting article about new features for windows
controls.

msdn.microsoft.com/msdnmag/issues/07/08/WindowsCPP/default.aspx

It would be nice if the VCL eventually supported these.
There is nothing described in that article that can't be done today with the
current VCL. All you need are the new style/message IDs and structure
definitions, which you can get from updated PSDK header files, or just
define them manually in your own code. Then use SetWindowLong() or
SendMessage() accordingly at runtime to activate the desired features.
Gambit
 

Re:New Windows Controls Features

How do I call EM_SETCUEBANNER fro a TEdit control
Example I would like to set the cuebannertext to be "Pressure BAR" for a
TEdit contorl named Edit1
SnedMessage(Edit1->Handle, EM_SETCUEBANNER, 0, what do I put here?);
 

{smallsort}

Re:New Windows Controls Features

Mark Richards wrote:
Quote
Example I would like to set the cuebannertext to be "Pressure BAR"
SnedMessage(Edit1->Handle, EM_SETCUEBANNER, 0, what do I put here?);
msdn2.microsoft.com/en-us/library/bb761639.aspx
lParam
[in] A pointer to a Unicode string that contains the text to display as the textual cue.
Also shown in a Macro to be
lpcwText
A pointer to a Unicode string that contains the text to set as the textual cue.
Which I think would be L"Pressure BAR"
 

Re:New Windows Controls Features

"Mark Richards" < XXXX@XXXXX.COM >wrote in message
Quote
How do I call EM_SETCUEBANNER fro a TEdit control
SendMessage(Edit1->Handle, EM_SETCUEBANNER, 0, (LPARAM) L"My Text
Here");
// or:
// Edit1->Perform(EM_SETCUEBANNER, 0, (int) L"My Text Here");
Or:
WideString s = "My Text Here";
SendMessage(Edit1->Handle, EM_SETCUEBANNER, 0, (LPARAM) s.c_bstr());
// or:
// Edit1->Perform(EM_SETCUEBANNER, 0, (int) s.c_bstr());
Gambit
 

Re:New Windows Controls Features

Can this be applied to TDBEdit controls? Or does anyone know a way to create
a TDBEdit control that has the EM_SETCUEBANNER facility?
 

Re:New Windows Controls Features

"Mark Richards" < XXXX@XXXXX.COM >wrote in message
Quote
Can this be applied to TDBEdit controls?
I don't know. You will have to try it and see what happens. Keep in mind
that TDBEdit derives from TCustomMaskEdit, not T(Custom)Edit directly, so
the masking features might interfer.
Gambit