News:

Download Pelles C here: http://www.smorgasbordet.com/pellesc/

Main Menu

Controls 'extra data'

Started by John Z, Yesterday at 01:37:34 PM

Previous topic - Next topic

John Z

I see the need to add a few more options to my resizing effort.  Before adding a second configuration array or methods, I would like to know if the 'extra data' inserted by the IDE dialog designer is accessible without subclassing, or is it only incorporated in a subclassed control?

To add more flexibility to the resizer Lib is the extra data available without subclassing?

Example:
CONTROL "VR-HN", 4002, "Button", WS_TABSTOP, 28, 28, 50, 14 { 0xC0DE, 0x0001, 0x0008 } ->{ Magic# , version, code  }

I know none == 00, Resize == 10, Move == 11 (binary)
and Vertical is in upper bits XX-- while horizontal is in lower bits --XX

so 0x0008 means vertical is resize, horizonal is none i.e. 1000 (binary)
   0x000F means vertical is move, and horizontal is move i.e. 1111

Is there a way to access this when it exists? Resize 'none, none' means there is no magic.  :)

John Z

TimoVJL

#1
Just check Pelle's resizer.
May the source be with you

John Z

Yes, that is where if figured out the extra magic.  It looks like it is only incorporated into the subclassed control to me.  However I'm not well versed in that so I'm not positive it actually exists without subclassing and therefore is not available to use without subclassing.

I've never needed to subclass a control so I'm quite the novice.

John Z

Robert

Quote from: John Z on Yesterday at 01:37:34 PMI see the need to add a few more options to my resizing effort.  Before adding a second configuration array or methods, I would like to know if the 'extra data' inserted by the IDE dialog designer is accessible without subclassing, or is it only incorporated in a subclassed control?

To add more flexibility to the resizer Lib is the extra data available without subclassing?

Example:
CONTROL "VR-HN", 4002, "Button", WS_TABSTOP, 28, 28, 50, 14 { 0xC0DE, 0x0001, 0x0008 } ->{ Magic# , version, code  }

I know none == 00, Resize == 10, Move == 11 (binary)
and Vertical is in upper bits XX-- while horizontal is in lower bits --XX

so 0x0008 means vertical is resize, horizonal is none i.e. 1000 (binary)
  0x000F means vertical is move, and horizontal is move i.e. 1111

Is there a way to access this when it exists? Resize 'none, none' means there is no magic.  :)

John Z

Hi John:

I apologize if I missed it, but where is the source code for your Lib ?