Board index » cppbuilder » Re: Component Editor problems
SP
![]() CBuilder Developer |
SP
![]() CBuilder Developer |
Re: Component Editor problems2005-04-01 10:05:14 PM cppbuilder2 You know what. I'm giving up on it... other programmers can just live with my hundred some properties listed in a row. I am wasting to much time trying to figure this out. Shannon |
SP
![]() CBuilder Developer |
2005-04-02 01:49:42 AM
Re:Re: Component Editor problems
Remy Lebeau (TeamB) wrote:
Quote"SP" < XXXX@XXXXX.COM >wrote in message problem freeing memory or it is freeing the wrong memory and I get an access violoation when closing down borland builder. I am able to create a program access the componet property and change the data now so I am making some progress. here is the code I use to open the form as showmodal. TfrmGraphDialog* frmGraphDialog = new TfrmGraphDialog(0); frmGraphDialog->ShowModal(); I found the following lines of code but I get a compiler error about "could not find a match for _STL::auto_ptr..." where the ... is the from declaration code. std::auto_ptr<TfrmGraphEditor*>frmGraphEditor(new TfrmGraphEditor(0)); frmGraphDialog->ShowModal(); what could be going wrong? Shannon |
Remy Lebeau (TeamB)
![]() CBuilder Developer |
2005-04-02 02:27:39 AM
Re:Re: Component Editor problems
"SP" < XXXX@XXXXX.COM >wrote in message
Quotehere is the code I use to open the form as showmodal. try { frmGraphDialog->ShowModal(); } __finally { delete frmGraphDialog; // <-- } QuoteI found the following lines of code but I get a compiler error about #include <memory> std::auto_ptr<TfrmGraphEditor>frmGraphEditor(new TfrmGraphEditor(NULL)); frmGraphDialog->ShowModal(); Gambit {smallsort} |
SP
![]() CBuilder Developer |
2005-04-02 03:04:14 AM
Re:Re: Component Editor problems
Remy Lebeau (TeamB) wrote:
Quote"SP" < XXXX@XXXXX.COM >wrote in message Shannon |
SP
![]() CBuilder Developer |
2005-04-09 01:28:42 AM
Re:Re: Component Editor problems
another question for you.
How do you store property changes using the propertyeditor. I've seen code resembleing this ((Tmyclass*)(component))->myproperty = whatIwant; but TPropertyEditor doesn't know what component is I've tried adding a dynamic_cast like myclassptr = dynamic_cast<Tmyclass*>(component); but again TPropertyEditor doesn't know what component is. I want to programmically set the properties but for some reason I can't find any example code that does that and I don't understand how it is done. If I set attributes to paSubClass instead of pa dialog and set the value in the object inspector everything works correctly, stores the data into the dfm as expected etc... but I want it to store during the exit of the dialog form. please help by explaining how the structure of TPropertyEditor works. I understand the TComponentEditor but TPropertyEditor is throwing me for a loop. thanks Shannon |
SP
![]() CBuilder Developer |
2005-04-09 03:09:37 AM
Re:Re: Component Editor problems
SP wrote:
Quoteanother question for you. Shannon |
SP
![]() CBuilder Developer |
2005-04-09 04:55:16 AM
Re:Re: Component Editor problems
SP wrote:
QuoteSP wrote: would be really nice if there was a completed examples of property editors that use padialog, pasubproperties and such instead of them just going to the point of getting the property to pop up and stops explaining what the hell is going on. can you tell this project is starting to get on my nervs. Shannon |
Remy Lebeau (TeamB)
![]() CBuilder Developer |
2005-04-09 04:57:51 AM
Re:Re: Component Editor problems
"SP" < XXXX@XXXXX.COM >wrote in message
QuoteHow do you store property changes using the propertyeditor. Gambit |
Remy Lebeau (TeamB)
![]() CBuilder Developer |
2005-04-09 04:58:44 AM
Re:Re: Component Editor problems
"SP" < XXXX@XXXXX.COM >wrote in message
Quoteok I found the GetComponentNames function from the IDesigner |
SP
![]() CBuilder Developer |
2005-04-09 05:06:33 AM
Re:Re: Component Editor problems
CRIPS Why didn't I think of doing that. I was trying to do so many
things like that but never thought of placing the 0 as the variable.... Remy Lebeau (TeamB) wrote: Quote"SP" < XXXX@XXXXX.COM >wrote in message |
Remy Lebeau (TeamB)
![]() CBuilder Developer |
2005-04-09 06:06:29 AM
Re:Re: Component Editor problems
"SP" < XXXX@XXXXX.COM >wrote in message
QuoteCRIPS Why didn't I think of doing that. I was trying to do Gambit |