Search found 21 matches
- Mon Aug 19, 2013 7:43 am
- Forum: C++ Development
- Topic: wxGetKeyState not working for Command Key
- Replies: 1
- Views: 672
wxGetKeyState not working for Command Key
Hi Experts, I was trying to use wxGetKeyState(WXK_COMMAND) to check whether or not Command Key is pressed on MAC but it is always returning false. I am not sure what is wrong. I am using this code to put some conditions on paste (which is combination of COMMAND + V) void CNTextCtrl::OnKey(wxKeyEvent...
- Tue May 28, 2013 2:08 pm
- Forum: Platform Related Issues
- Topic: Characters are garbled on MAC 10.6 while using wxDateTime
- Replies: 6
- Views: 3239
Re: Characters are garbled on MAC 10.6 while using wxDateTim
Your suggestion is perfectly ok but the problem is that the project where i am using this code supports around 16 languages. So getting the localized strings for all languages and putting them in the code is not a feasible solution in my case. Could you please suggest me any other C++ API which can ...
- Tue May 28, 2013 8:31 am
- Forum: Platform Related Issues
- Topic: Characters are garbled on MAC 10.6 while using wxDateTime
- Replies: 6
- Views: 3239
Re: Characters are garbled on MAC 10.6 while using wxDateTim
Thanks for your reply. I tried to debug the code and found that from wxDateTime::GetWeekDayName() and wxDateTime::GetAmPmStrings() I am getting garbled values. And that is the reason I am seeing this issue. As you guys mentioned that this could be wx Widgets issue, Is there any patch for this ? Coul...
- Tue May 28, 2013 5:25 am
- Forum: Platform Related Issues
- Topic: Characters are garbled on MAC 10.6 while using wxDateTime
- Replies: 6
- Views: 3239
Characters are garbled on MAC 10.6 while using wxDateTime
Hello All, I have written a code to get the date and time using wxDateTime using the time-stamp. Lets say time-stamp value is 1368718091 then I am using following function to get the date time : wxString UIBase_X::ConvertDateTimeToLocalFormat(const wxString &strSetting) { wxString strName = _T(""); ...
- Thu Mar 07, 2013 11:22 am
- Forum: C++ Development
- Topic: wxArrayString sorting issue when strings have special chars
- Replies: 15
- Views: 3493
Re: wxArrayString sorting issue when strings have special ch
I tried setting different locales but it does not seem to do any thing for me. Nothing changes after changing locale. I also tried to share this problem with the expert though mail but looks like either I don't have enough permission to send mail to those email-ids or any other formality needed to s...
- Thu Mar 07, 2013 10:20 am
- Forum: Platform Related Issues
- Topic: wxArrayString sorting issue on MAC OSX
- Replies: 0
- Views: 1596
wxArrayString sorting issue on MAC OSX
Hi Experts, I am using widgets 2.9 and it is working awesome. Recently I got a problem where if I have a wxArrayString where few strings are having special characters in it then the sorting is having some problem. wxArrayString arrLocalPresetList; arrLocalPresetList.Add("Bc"); arrLocalPresetList.Add...
- Thu Mar 07, 2013 10:14 am
- Forum: C++ Development
- Topic: wxArrayString sorting issue when strings have special chars
- Replies: 15
- Views: 3493
Re: wxArrayString sorting issue when strings have special ch
Hi, Thanks for your reply. Actually my project support around 15 languages and we have common code for all the languages. If I will set any particular locale then it may not work for other languages. Could you please let me know if there is any other forum where I can get MAC support or it will be g...
- Thu Mar 07, 2013 7:23 am
- Forum: C++ Development
- Topic: wxArrayString sorting issue when strings have special chars
- Replies: 15
- Views: 3493
Re: wxArrayString sorting issue when strings have special ch
Hi , Thanks a lot for your help. It is working perfect in the same manner as I was expecting but one issue is there that this is not working for MAC. Actually we are supporting our project for two platform (Windows and MAC) and all the changes should work on both but in this case the sorting is runn...
- Tue Mar 05, 2013 1:48 pm
- Forum: C++ Development
- Topic: wxArrayString sorting issue when strings have special chars
- Replies: 15
- Views: 3493
Re: wxArrayString sorting issue when strings have special ch
First of all it is not changing other parts of the program. I am using sorting function on the same "Preset" combobox wxArrayString. earlier the compare function was like this : bool CJPUtility::CompareStringData(const wxString& first, const wxString& second) { if(first.IsEmpty() && second.IsEmpty()...
- Tue Mar 05, 2013 11:33 am
- Forum: C++ Development
- Topic: wxArrayString sorting issue when strings have special chars
- Replies: 15
- Views: 3493
Re: wxArrayString sorting issue when strings have special ch
Hey, Sorry. I attached same one I guess with different names. I have now attached the screenshot after your suggested changes and as you can see special character sorting is done but now other strings are not sorted. Please let me know how can I write this new function so that it can be used to sort...
- Tue Mar 05, 2013 2:03 am
- Forum: C++ Development
- Topic: wxArrayString sorting issue when strings have special chars
- Replies: 15
- Views: 3493
Re: wxArrayString sorting issue when strings have special ch
Hi, Thanks for being so quick and understanding the urgency. I tried this compare function and it seems to be fixing the issue but after this other strings are not sorted. I have attached two screenshots : one before this change and one after change. You can see that earlier all strings were properl...
- Mon Mar 04, 2013 1:57 pm
- Forum: C++ Development
- Topic: wxArrayString sorting issue when strings have special chars
- Replies: 15
- Views: 3493
Re: wxArrayString sorting issue when strings have special ch
Thankx for the reply. Dont we have any thing already implemented in widgets ?
If not , any idea how to get it done usnig compare function?
Regards,
Vivek
If not , any idea how to get it done usnig compare function?
Regards,
Vivek
- Mon Mar 04, 2013 10:28 am
- Forum: C++ Development
- Topic: wxArrayString sorting issue when strings have special chars
- Replies: 15
- Views: 3493
wxArrayString sorting issue when strings have special chars
Hi Guys, I am using widgets 2.9 and it is working awesome. Recently I got a problem where if I have a wxArrayString where few strings are having special characters in it then the sorting is having some problem. wxArrayString arrLocalPresetList; arrLocalPresetList.Add("Bc"); arrLocalPresetList.Add("B...
- Thu Jan 24, 2013 10:59 am
- Forum: Platform Related Issues
- Topic: Need to understand few lines of code in widgets 2.9
- Replies: 2
- Views: 1721
Need to understand few lines of code
Hi Guys, I am using wx Widgets 2.9.2 on MACOS with c++ I was working on some scrolling issue and found one piece of code which I just want to understand . The path is wxWidgets-2.9\src\osx\carbon\textctrl.cpp we are basically trying to implement scrolling in Text Control : if (( frameOptions & (kTXN...
- Wed Dec 19, 2012 6:46 am
- Forum: Platform Related Issues
- Topic: Tool Tip does not show on MAC OSX
- Replies: 7
- Views: 2890
Re: Tool Tip does not show on MAC OSX
Hi Guys, My code is same for both Win and MAC but the tool tip appears on Win but does not appears on MAC . The users of my projects say that this is a discrepancy between platform which should not be there. That is why i just wanted to know that this is platform/widgets limitation on MAC or somethi...