About Store Forum Documentation Contact



Post Reply 
Pointing to custom type in ListGroup
Author Message
SFCBias Offline
Member

Post: #1
Pointing to custom type in ListGroup
Is it possible to have a list group display an object from a struct containing an object of your own type (which contains the data).

i.e.

Code:
class MyClass{
char* mString;
};

struct MyGroupInfo
{
  MyClass item1;
  MyClass item2;
  usigned item3;
}

Would it then be possible to do something like this

Code:
ListGroup(DATA_CHAR_PTR,0,sizeof(MyClass),0.5f,L"Item1");

I've already tried that code above. My goal is to display the contents of the char ptr inside my class, and how to do that if thats possible.
(This post was last modified: 06-12-2011 11:53 PM by SFCBias.)
06-12-2011 11:50 PM
Find all posts by this user Quote this message in a reply
rndbit Offline
Member

Post: #2
RE: Pointing to custom type in ListGroup
you need to update GUI text manually whenever it changes.. if its that what you are trying to do.
(This post was last modified: 06-13-2011 10:35 AM by rndbit.)
06-13-2011 10:35 AM
Find all posts by this user Quote this message in a reply
Post Reply