|
Thanks for ur view
nirmal
|
|
|
|
|
There is a game programing library called Allegro which is able to run in DOS, it's GUI it's a bit poor, but nontheless it may help you. www.allego.cc
|
|
|
|
|
There have been GUI programs even back in the DOS days (and before!). For example, CURSES can be used on Unix platforms to implement GUIs like how Turbo C/Pascal did in the DOS days.
First, you need to define what you mean by "GUI" do you want non-character-based graphics, or are character graphics good enough? For example, if you are happy with buttons looking like one of these:
+--------+ /--------\
| OK | | OK | [OK]
+--------+ \--------/ -Or using a different colors to represent depth, tou can do that using standard ASCII characters. Hell, even extended ASCII characters used to be used to draw lines/boxes/frames, etc - anyone ever use a PC-based BBS before, or remember The Draw?
-=- James If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong! Avoid driving a vehicle taller than you and remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road! DeleteFXPFiles & CheckFavorites (Please rate this post!)
|
|
|
|
|
James R. Twine wrote: For example, CURSES can be used on Unix platforms...
That brings back memories. I believe Unix uses XWindows these days.
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"There is no death, only a change of worlds." - Native American Proverb
|
|
|
|
|
Hi,
In the creation of MFC application
MFC AppWizard – Step 2 of 4 ,
What other support would you like to include?
Automation.
I want to know if we check this option Automation during the creation of the application what features will be added to our application ?? what are its advantages ???? can anyone please tell me…
Regards,
Parichay.
|
|
|
|
|
This would be best answered by just doing it. Create two projects, one with Automation support, and the other without. Compare them.
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"There is no death, only a change of worlds." - Native American Proverb
|
|
|
|
|
Hi,
I have 3 Dialog window , when the application runs it loads the initial dialog DTDlg from there when I click on next button it opens the 2nd dialog window I have used ( m_dUpdateDlg.DoModal (); ) code to open the 2nd window. From 2nd window when click on next window button it opens the 3rd window
( m_dStatusDlg.DoModal (); )
In this process all the 3 window will be open one above the other I want to know how close the 2nd dialog window then open the 3r d window.??
Please can anyone tell me how to close and then open other dialog window??
Regards,
Parichay.
|
|
|
|
|
where have u put in the code to for calling the constructor for dialogs..?
|
|
|
|
|
void CCreateDlg::OnOk()
{
// TODO: Add your control notification handler code here
int iResults; // This variable will capture the button selection
// Ask the user
iResults = MessageBox("Would u like to add documetns to the index now",
"Desktop Search",MB_YESNO | MB_ICONQUESTION);
// Determine which button the user clicked
// Give the user a message showing which button was clicked
switch (iResults)
{
case IDYES: // The Yes button?
//call the Update dialog window if user press yes
m_dUpdateDlg.DoModal ();
break;
case IDNO: // The No button?
OnOK();
break;
}
}
i have added the code on ok button when user press yes it opens the 2nd dialog box , iwant to know how to close the present dialog box then open the new dialog box.
|
|
|
|
|
Try keeping the oonok call outside swich... it shuld work.... as i have done below
void CCreateDlg::OnOk()
{
// TODO: Add your control notification handler code here
int iResults; // This variable will capture the button selection
// Ask the user
iResults = MessageBox("Would u like to add documetns to the index now",
"Desktop Search",MB_YESNO | MB_ICONQUESTION);
// Determine which button the user clicked
// Give the user a message showing which button was clicked
switch (iResults)
{
case IDYES: // The Yes button?
//call the Update dialog window if user press yes
m_dUpdateDlg.DoModal ();
break;
case IDNO: // The No button?
break;
}
OnOK();
}
|
|
|
|
|
I changed the code i placed the OnOK() after switch but dialog box is not closing. still the 2nd window is open .. can plz tell me anymore solutins??
|
|
|
|
|
When you are calling the next dialog witn DoModal use EndDialog() before calling the next dialog.
|
|
|
|
|
call CDialog::OnOk imeediately before switch
-- modified at 5:03 Monday 10th April, 2006
|
|
|
|
|
Hi
yes, before calling the domodal fr any dialog destroy the previous one by using EndDialog.
But I would suggest you implement the child dialog concept. So that when you close the first dialog you will not get he flickering effect. adn there you willnot face problem for closing and switching betwen the dialogs.
Cheers
"Peace of mind through Technology"
|
|
|
|
|
Keep it simple - open both (the 2nd and 3rd) from the 1st dialog. When the second dialog is closed it will return a value indicating what button/command was used to close it.
So you can, for example, open the third dialog if the second one returned IDOK .
Peace!
-=- James If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong! Avoid driving a vehicle taller than you and remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road! DeleteFXPFiles & CheckFavorites (Please rate this post!)
|
|
|
|
|
parichaybp wrote: Please can anyone tell me how to close...dialog window??
To close a modal dialog, simply call EndDialog() .
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"There is no death, only a change of worlds." - Native American Proverb
|
|
|
|
|
can spmebody pls advice me how to fire IHTMLSelectElement onchange event.. i tried IHTMLWindow2 execscript......... but this does not work since the javascript function uses this pointer
|
|
|
|
|
Can I add a new interface to existing activex control. I want to add new methods and adding them under current interface seems to be dangerous. I want to add then under new interface. Any help on it ?
Best Regards,
"C makes it easy to shoot yourself in the foot. C++ makes it
harder, but when you do, it blows away your whole leg."
- Bjarne Stroustrup
-- modified at 2:46 Monday 10th April, 2006
|
|
|
|
|
Identity Undisclosed wrote: adding them under new interface seems to be dangerous.
Add new functionality to an ActiveX control by adding a new interface is the norm.
Steve
|
|
|
|
|
Oh sorry. You can see the modified post.
Yeah I want to add new functionality by adding interface. Please any help on it. Any link or article.
I shall be thankful to u.
Best Regards,
"C makes it easy to shoot yourself in the foot. C++ makes it
harder, but when you do, it blows away your whole leg."
- Bjarne Stroustrup
|
|
|
|
|
Can you be more specific? Do you have the source? Is it written with ATL, MFC, straight C/C++ or some other framework?
Steve
|
|
|
|
|
Yeah I have the source. It is written in MFC.
"C makes it easy to shoot yourself in the foot. C++ makes it
harder, but when you do, it blows away your whole leg."
- Bjarne Stroustrup
|
|
|
|
|
Are you using IDispatch an based interface?
Steve
|
|
|
|
|
How to make an owner drwan Picture Box in ATL ( not using MFC support). My aim to make the picture transparent in the dialog.
I am using ATL composite control dialog. But in the Picture Control, there is no Owner draw property listed in Property Window. I manuall modified rc file and add SS_OWNERDRAW, But i am not gettiing the WM_DRAWITEM message....
I did try to set owner draw
::SetWindowLong( ::GetDlgItem( m_hWnd, IDC_STATIC_PIC ), GWL_STYLE, (::GetWindowLong(::GetDlgItem( m_hWnd, IDC_STATIC_PIC ), GWL_STYLE ) )| SS_OWNERDRAW );
also by SendDlgItemMessage()
Since the I am not getting WM_DRAWITEM to my ATL dialog, i cant do anything to make picture box the transparent.
Any suggestion , code are welcome
Thanks
|
|
|
|
|
hey..
i am learning activeX programming using VC6 ..i want to remove, from the property pages the tabs for stock properties e.g font,color etc.
how to do it?
thanks
|
|
|
|