NO

Author Topic: possible bug with custom control implementation  (Read 5174 times)

nitex

  • Guest
possible bug with custom control implementation
« on: February 07, 2005, 06:35:31 PM »
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.

Offline Pelle

  • Administrator
  • Member
  • *****
  • Posts: 2266
    • http://www.smorgasbordet.com
possible bug with custom control implementation
« Reply #1 on: February 07, 2005, 07:48:53 PM »
Thank you for the report.

I have reversed the condition for the CCF_NOTEXT flag. If you change the following line in control.c...
Code: [Select]

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

...to this...
Code: [Select]

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

  • Guest
possible bug with custom control implementation
« Reply #2 on: February 07, 2005, 07:57:00 PM »
That was fast!  =D>

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

Alex

Offline Pelle

  • Administrator
  • Member
  • *****
  • Posts: 2266
    • http://www.smorgasbordet.com
possible bug with custom control implementation
« Reply #3 on: February 07, 2005, 08:39:34 PM »
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

  • Guest
possible bug with custom control implementation
« Reply #4 on: February 08, 2005, 04:12:31 PM »
i'm using #pragma message now to remind me.

alex