On 13/01/2013 at 10:15, xxxxxxxx wrote:
I've been working a project that requires a Gedialog plugin to work very tightly with a Tag plugin.
This is something that is not covered in any of the SDK examples.
One problem was to figure out how to get the tag to save images inside of it internally.
That problem has been solved thanks to help from Robert&Steve.
This is what's left to solve:
1- How can I make the GeDialog not open at all if there is no object currently selected?
2- The way I have the code written in the GeDialog. It always resets the BitmapButton's image to be blank(NULL) when a saved scene is opened. And I need to find a way for the GeDialog to be intelligent enough to load the image that's saved in the tag onto the bitmap button when the dialog launches.
All of my attempts at trying to check for an active object. And also load the tag's saved image data into the BitmapButton while the GeDialog is opening have failed due to the GeDialog not doing what I expected during it's launch phase.
I obviously don't understand enough about what happens when a GeDialog launches. And how to do these tasks while it's launching. Or if it's even possible.
Here is a working example of where I'm at currently with it.
Notes are at the top of the source code:https://sites.google.com/site/scottayersmedia/Dialog_StorageTag.zip
Any tips or ideas on how to solve these two problems is much appreciated.
-ScottA