|
| FBFolderPopup broken? |
 |
Tue, 24 Apr 2007 22:07:24 +000 |
Hi,
I created a drop down list with items "Load" and "Save" and
set up a callback thusly:
FBList MyList;
MyList.Items.SetString( "Load~Save" );
MyList.OnChange.Add (this, (FBCallBack)&MyClass::StuffSelected );
now in the StuffSelected function I've got something like:
FBFilePopup MyPopup;
if( MyList.ItemIndex == 0 )
MyPopup.Style = kFBFilePopupOpen;
else
MyPopup.Style = kFBFilePopupSave;
MyPopup.Execute();
If( MyList.ItemIndex == 0 )
LoadFile( MyPopup.FullFilename );
else
SaveFile( MyPopup.FullFilename );
So as you can see, based on what item is selected in the drop down list you
either load or save a file. Everything works just great.
Unfortunately, I've noticed that all my FBFolderPopups I've got in my UI stop
working after I select something in the list. The FBFilePopups I have still
work. The FBFolderPopups work as long as I don't select anything in the drop
down list, but as soon as I do, they stop working.
Now here's the weirder part. I modified the ortooluidemo example (the UI Demo
plugin under the OpenReality menu) so that under the "Special" tab the
FilePopup button actually calls FBFolderPopup instead of FBFilePopup. No big
deal, right? I rebuilt it and it calls FBFolderPopup as it should. If,
however, I run my plugin and select something from the aforementioned drop-down
list, THE FBFOLDERPOPUP IN ORUITOOLDEMO STOPS WORKING, TOO.
I'm going a bit loopy. Is this a weird bug, or am I missing a call to some |
| Post Reply
|
|
|
|
|
|
|
|
|
|