 |
|
 |
For goodness sake, it seems you've done a good job here, but then blown it by failing to post your updates to this site. The zip files on your free-hosted site do not download reliably, so we can't get at the corrected version of your software.
I know its good fun having your own little website, but you're using codeproject.com to get exposure for your coding effort, why not use it to distribute the software?
Yours,
An annoyed user who will now use someone else's options dialog for his super high profile commercial application that would have had your name in its credits!
|
|
|
|
 |
|
 |
I've got a copy of the March code. If you want it, message me.
|
|
|
|
 |
|
 |
Have you got version 1.3? I was not able to download it. Obviously in 1.3 there are some memory problems fixed...
I have a version of SettingsDlg.cpp/SettingsDlg.h with creation date 03/07/02 and i'm getting some memory leaks.
If you have got a newer version please mail it to me.
thanks in advance...
Michael
|
|
|
|
 |
|
 |
Because the project use the message:WM_SETTEXT,There is compile error in Visual Studio.Net.
|
|
|
|
 |
|
 |
Change the return type of CPrefsStatic::OnSetText from BOOL to LRESULT, then it will compile in VC7.
|
|
|
|
 |
|
 |
what's wrong with ur web site?
|
|
|
|
 |
|
 |
first,I must thank you for your program.
but,I cant not use it in Winxp(memory leak),In olevar1.h, while (pidlWalker->mkid.cb).
and ,1.2 ver,I can not visit your homepage .
|
|
|
|
 |
|
 |
Please visit http://yellowine.netfirms.com for the newest version.
|
|
|
|
 |
|
 |
V1.2 of CSettingsDialog was updated with "dynamically delete and insert pages. "
Logically, if a page is deleted from a tree node, all the pages associated with nodes which are sub-nodes of that tree node are also deleted. Please visit here to download the newest source codes and project and the forum for more info.
|
|
|
|
 |
|
 |
I simply was not able to access your homepage, why not post it here?
|
|
|
|
 |
|
 |
Please visit http://yellowine.netfirms.com for the newest version.
|
|
|
|
 |
|
 |
Seems I failed to make it clear, but I'm not able to visit your web site. I used the mentioned url, but my browser told me there maybe something wrong with the server.
|
|
|
|
 |
|
 |
As of 10/14, the links to the source and demo are still broken.
|
|
|
|
 |
|
 |
In your sample project (and in what I'm working on), when you peruse the tree with cursor keys, if you select the first tree node, it gets de-selected. Another up-key re-selects it. The same behavior occurs when you press PgUp.
Is there any easy fix for this?
|
|
|
|
 |
|
 |
The problem you found could be fixed as two steps:
(1) Go to CSettingsDialog.cpp, find function
void CSettingsDialog::ShowPage(const PAGE_INFO *pInfo, UINT nShow /* = SW_SHOW */)
In the "if (nShow == SW_SHOW)" block of that function, comment out the statement "pInfo->pWnd->SetFocus();", that is, to make that block look like this:
if (nShow == SW_SHOW) {
HTREEITEM hItem = FindItem(pInfo->pWnd);
if (hItem) m_TreeCtrl.SelectItem(hItem);
}
(2) In the resource view of your project, make sure that EACH PAGE should be checked as "Control" as their style in Properties tab.
This way, both the cursor keys and Tab key should work.
Let me know if this solves your problem.
|
|
|
|
 |
|
 |
I want to delete a tree item and its related dialog page durning the run time.
can someone help me?
|
|
|
|
 |
|
 |
Good question! I will work on this and will reply to you. Please check back.
|
|
|
|
 |
|
 |
I have update the project on my homepage with CSettingsDialog.
Now it is possible to dynamically delete a tree node and it's associated pages.
Please go to my homepage to download the newest source codes.
|
|
|
|
 |
|
 |
Hi,
I just noticed when using the class with a database form/property page that if you go from one form to another the events for the object are not triggered.
I have 1 form that allows you to enter lookup records into a table (Form 1), then on another form (Form 2), it has a combobox that displays the values from the previous form. If you enter a record in form 1, then activate form 2 the new record will be displayed.
then if you go back to Form 1, and add another record, then go back to Form 2 it will not be shown in the comobox on form 2.
After looking at the code, the forms are created once, then hidden/shown as required. If you have the OnsetActive() handler in a property page, it will never be activated, thereby if using databases, you don't have the ability to refresh data if neccessary (as shown above with Form 1/2 example).
Is there anyway to send some type of notification message to the forms as they are displayed/hidden.
|
|
|
|
 |
|
 |
I think i resolved my requirement
i added the OnShowWindow(..) handler to my forms
and modified SettingsDlg.cpp as follows:
void CSettingsDialog::ShowPage(const PAGE_INFO *pInfo, UINT nShow /* = SW_SHOW */)
{
...
....
pInfo->pWnd->ShowWindow(nShow); // Show or hide the window
pInfo->pWnd->PostMessage(WM_SHOWWINDOW, nShow, 0); // <<== **** NEW ***
.....
....
|
|
|
|
 |
|
 |
(im a newbie, go easy on me )im using your class as a popup dialog with a series of CFormView pages. It works fine until i click on the form, when it gives a Debug Assertion failed, in the viewcore.cpp file.
CFrameWnd* pParentFrame = GetParentFrame();
...
...
line 249 ASSERT(pParentFrame == pDesktopWnd || pDesktopWnd->IsChild(pParentFrame));
...
looks like it doesnt work if the window is not child of CMainFrame. Ive tried everything but it doesnt seem to work! It only works if:
a) i call it in the OnCreate function of a view
b) i run the release version. this one is obvious cause it ignores the ASSERT
|
|
|
|
 |
|
 |
Please let me know your VC++ version and OS. I used VC6 and Win98/NT/2K, no such a problem on CFormView. The ASSERTION problem occurs on CHtmlView and CView derived classes.
Anyway, try this:
In every of your Form View class, overide the event handler OnMouseActivate:
CYourFormViewClass::OnMouseActivate(...)
{
CWnd::OnMouseActivate(....)
}
Please let me know if this helps.
|
|
|
|
 |
|
 |
Hi. Thanks for the quick answer.
The error seems to occur before the OnMouseActivate message.
Im using VC6 with Win2k, english.
Your demo project runs well here, but when i call the dialog as a popup, it doesnt work.
Have u tried it like that?
|
|
|
|
 |
|
 |
Pop-up means modaless? Anyway, I will be working on the modaless CSettingsDialog, check back later.
|
|
|
|
 |
|
 |
Hi. Just updated my project with the latest CSettingsDlg SRC and its working now!!
Thanks for the help and the code!
|
|
|
|
 |