possible bug with custom control implementation

Started by nitex, February 07, 2005, 06:35:31 PM

Previous topic - Next topic

nitex

This is a very basic test control which does nothing more than displaying
it's window text. The text is editable in the styles dialog and the control
should update it's window text accordingly. This does not function in the
dialog editor. In the custom controls preview dialog the ide seems to assign
some text and the control displays it correct. The preview dialog is showed,
if multiple custom control dlls are opened. This can be tested with the
tipofday custom control for example. The comments in the sourcecode
document the expected behaviour.

Pelle

Thank you for the report.

I have reversed the condition for the CCF_NOTEXT flag. If you change the following line in control.c...

acci[0].flOptions = 0; // no CCF_NOTEXT specified, control supports window text.

...to this...

acci[0].flOptions = CCF_NOTEXT;

...it should work - for now - I will fix this in the 3.0 IDE (remember to change back the code at that point!). The text will now also be visible in the property window...

Pelle
/Pelle

nitex

That was fast!  =D>

is there a way to test the ide version while compiling sourcecode. something like #ifdef POCC...

Alex

Pelle

Quote from: "nitex"is there a way to test the ide version while compiling sourcecode. something like #ifdef POCC...
Not in an easy way, at least. Usually no need to do this...

Pelle
/Pelle

nitex

i'm using #pragma message now to remind me.

alex