|
Hi All
I have image on buttons.And i am trying to set TabStop focus on button.I have set TabStop properties TRUE of buttons.But it's working when i am useing tab.Some one help me how can use?
|
|
|
|
|
|
problem is that "tab focus not showing on button".
|
|
|
|
|
If you cant see it you must be show it yourself.
|
|
|
|
|
|
cpvc++ wrote: ut it's working when i am useing tab
Hmm. so shouldn't it work if the tabstop property is set to true
Some things seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
i set it "tabstop property true ".
|
|
|
|
|
|
but you yourself say that the tabstop property is set to true and then it is working. or do you mean to say that it is "NOT WORKING"
Some things seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
Its between working and not working.
|
|
|
|
|
|
It's just that you are not seeing the grid as you put a bitmap on top of it. I recommend you to draw this your self.
You need to google first, if you have "It's urgent please" mentioned in your question.
_AnShUmAn_
|
|
|
|
|
how can i get monitor resolution (currently set) using vc++ code coz i hv to give maximum size of my Parent dialog as default size.
|
|
|
|
|
Use the GetSystemMetrics function with SM_CXSCREEN for the pixel width, and SM_CYSCREEN for the pixel height of the monitor.
Regards,
--Perspx
"A refund for defective software might be nice, except it would bankrupt the entire software industry in the first year." -Andrew Tanenbaum
"Einstein argued that there must be simplified explanations of nature, because God is not capricious or arbitrary. No such faith comforts the software engineer." -Fred Brooks
|
|
|
|
|
|
|
Hi,
I am working VC++ on VC6.0 IDE
I am using lot of CString constants in my program
I am using #define to replace strings instead of USING string table and loading stings;
like:
#define ID_NAME _T("Krishna")
#define ID_PROFILE_PATH _T("\\Folder11\\Krish")
like above i have 10 t0 12 strings.
To work with this which way is the best way
using #defines or using string table?
If any methos is best, why?
Thanks in advance
----------------------------
KRISHNA KUMAR T M
|
|
|
|
|
krishnakumartm wrote: If any methos is best, why?
doesnt it depend on what the program does, and what its future prospects are ... if its just a one-off console mode program, then, maybe you dont need to think beyond #define
But if it is a serious program, and you may want to (for example) localise the strings for different languages later, then you should consider resource/string tables, or, even keeping the strings in an external file (possibly xml) .. maintenance will be way easier then if a little work is doen up-front.
'g'
|
|
|
|
|
Are you concerned about memory usage? Even so, you would need a bunch of string constants in order for that to be an issue.
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
|
|
|
|
|
i want to show browse button on a dialog box application and i want to select a folder not file.
how can i implement for browse control for selecting folder? thanks in advance.
|
|
|
|
|
You can use of SHBrowseForFolder .
|
|
|
|
|
thanks Hamid for replying me.
Could u plz tell me whether i can get some sample code or sample project for browse control?
|
|
|
|
|
|
hi Hamid,
thanks a lot for replying me.
i want to make implementation simple so what i have done is:
i have taken 1 button, on click event i have implemented as below:
void Logfilepath::OnBrowse()
{
// TODO: Add your control notification handler code here
{
CFileDialog FileDialog(TRUE,"*.*",NULL,OFN_HIDEREADONLY,"Text Files: (*.txt)|*.txt||",this);
if(FileDialog.DoModal() == IDOK)
{
CString PathName = FileDialog.GetPathName();
// CString PathName1 =FileDialog.GetFolderPath();
m_ctrledit.SetWindowText(PathName);
}
}
}
now with this implementation i am able to select files but i want to select only folder.
what other implementation i should do so that i will be able to select folder and not file?
|
|
|
|
|
Why you dont use of SHBrowseForFolder it simple to use.
|
|
|
|