|
Is there a UI library whose grid control supports using regular expression to control it input.
BCG? Xtreme Toolkit? Prof-UIS?
|
|
|
|
|
I dont know much about it but may be you can have look at Stingray Objecttive grid. It might serve your purpose.
|
|
|
|
|
Becuase I need to change evrything to unicode..
Our Philosophy, Mohammed Baqir Al Sadr
|
|
|
|
|
Assuming you're using Visual Studio you can use regular expressions to do this using the find and replace dialog.
Put the following in the "Find what" box
{:q}
and the following in the "Replace with" box
_T(\1)
Remember to check the "use regular expressions" box and the away you go
Personally I'd check the first one or two replacements before doing a replace all in all documents, but it depends how brave you are feeling
Edit: these are the curly brackets, just in case it's not clear on your screen
Graham
Librarians rule, Ook!
|
|
|
|
|
Thank you very much Graham...if one day you have a problem, please give me the chance to know it and try to pay my debt..
Our Philosophy, Mohammed Baqir Al Sadr
|
|
|
|
|
Do you really hard-coded 1001 strings?
Using a Regex tool you may automate the task.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
|
|
|
|
|
he hard-coded 1001 "xxx" strings ... wonder what kind of application it really is.
This signature was proudly tested on animals.
|
|
|
|
|
|
not even one word, just two letters!:
VI
|
|
|
|
|
the application is a chess application. consisting of a desktop client, a server application.
it is 3 years old now and it dates back to my 4th university year.
now i am trying to make radical changes to the code and also the interface so i can be able to deploy it.
from the one hand those refrences are because of neglectiona and lack of experience (i could have use the project ressources and use LoadString) since it was my first big app in my life..
from another hand, really it was unavoidably in many cases not to hardcode some strings.. in fact just for a small example, there was a parsing code that parses a chess PGN file, and looks for keyword, and tags,etc, then it takes the moves body and decrypt it as well by matching other keywords and entering recursively inside the recursive annotations..
finally there have been and even now still is a habit such I never for example use an enum, or an #define something..
I always use string even for my context data
for example if I have a base Session class.. then I put a type as member, then you will find something like :
CSession* pSession=??
if pSession->getType()=="machine Vs machine";
CMachineVsMachineSession* pMachineBattleSession=(CMachineVsMachineSession*) pSession;
pMachineBattleSession->relayUserPieceMoveAsAnnotationMove(...
that's becuase I have plenty of things and srtructures representinf plies, piece types, castling, session type with server, user account type,
so that I decided and stiil use the String, so that I code fast, because my memory remembers by text not by the enum keyword I would have put instead...
My shif to unicode was because of many things :
I want to nable internationalization of the app. at least I want to be able to let arab chess players be able to send arabic characters in chat during chess play.
also the look of the app, differes when you change charSet to Unicode (something I do'nt understand)(for example the dialogs andbuttons)
also there was an unavoidable dependence on Unicode thirdparty libraries. liking to them with MBRS creates linking pbms.
Fianlly I recently have had a big big problem with MFC extension DLL :
as I was separating some UIs ibnto extension DLL, some drag and drop featuers and focus pbms happens when they are hosted in the MFC client app which MBRS. this was explained, but after resolving many pbm, it lokks that evrything works fine for me if I integrate that DLL inside a Unicode simple app.
I hope I explained to you the situatiuon and that now I look less incompetent.
Our Philosophy, Mohammed Baqir Al Sadr
|
|
|
|
|
Here is what MSDN says about this:
" If the string is found, this method selects the string in the list box and copies it to the edit control."
My code finds the string but does not do anything to the Form view edit part of the combo box dialog.
What did I missed?
CString strText;
CComboBox * pBoxOne;
pBoxOne = ( CComboBox *) GetDlgItem(IDC_COMBO1);
int i = pBoxOne->SelectString(-1,"21"); // OK
pBoxOne->GetLBText( i, strText); // OK
m_strBand = strText;
Using VC 6.0
Thanks for your help.
Vaclav
|
|
|
|
|
Use a control variable for your edit control along with SetWindowText(), or call UpdateData(false); after you change the value of m_strBand from the program. I will suggest you to use a Control variable instead of calling UpdateData() for all good reasons (Google for "avoid UpdateData").
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
|
Depends on the version. It was a MDI until version... (I don't remember ). Now it si SDI .
MFC App wizard provide templates for both types of application.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
|
|
|
|
|
CPallini wrote: Now it si SDI
Not only now, Word 2003 is already SDI. New document doesn't open a new document inside the frame, it opens another instance of the application. I don't honestly remember if Word 2000 was already SDI or still MDI.
Greetings.
--------
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
“The First Rule of Program Optimization: Don't do it. The Second Rule of Program Optimization (for experts only!): Don't do it yet.” - Michael A. Jackson
Rating helpfull answers is nice, but saying thanks can be even nicer.
|
|
|
|
|
Too long to be explained in an answer. I think you should try searching a bit of info, read the help of VC++ about MDI-SDI and if you don't understand something more concrete, then ask... But such a question... is going to have no "right" answer for you.
Greetings.
--------
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
“The First Rule of Program Optimization: Don't do it. The Second Rule of Program Optimization (for experts only!): Don't do it yet.” - Michael A. Jackson
Rating helpfull answers is nice, but saying thanks can be even nicer.
|
|
|
|
|
Is MS Word is MDI/ SDI
Click Here [^]
How to implement in VC6.
Example[^]
Yes U Can ...If U Can ,Dream it , U can do it ...ICAN
|
|
|
|
|
Hai, I am confused about Hessian.
Hessian is 2nd order differential of Gaussian. And has matrix 2x2.
Now, what number is in Hessian Matrix.
example:
Gaussian equation = F(x,y)= (1/(2*pi*T^2))exp-((x^2+y^2)/2T^2)
Then,
H = [Fxx(x,y) Fxy(x,y) ;
Fyx(x,y) Fyy(x,y)]
So, what is significant number of matrix content? Then this matrix will be convoluted with image.
Please, If u know, answer that question, Thanks Before.
please, send me through:
poetra_ardiansyah@yahoo.co.id
tra
|
|
|
|
|
Hai, I am confused about Hessian.
Hessian is 2nd order differential of Gaussian. And has matrix 2x2.
Now, what number is in Hessian Matrix.
example:
Gaussian equation = F(x,y)= (1/(2*pi*T^2))exp-((x^2+y^2)/2T^2)
Then,
H = [Fxx(x,y) Fxy(x,y) ;
Fyx(x,y) Fyy(x,y)]
So, what is significant number of matrix content? Then this matrix will be convoluted with image.
Please, If u know, answer that question, Thanks Before.
tra
|
|
|
|
|
traelektro wrote: Hessian is 2nd order differential of Gaussian
Nope. More generally, the Hessian matrix is the square matrix of second-order partial derivatives of a function [^].
traelektro wrote: Now, what number is in Hessian Matrix.
example:
Gaussian equation = F(x,y)= (1/(2*pi*T^2))exp-((x^2+y^2)/2T^2)
Then,
H = [Fxx(x,y) Fxy(x,y) ;
Fyx(x,y) Fyy(x,y)]
So, what is significant number of matrix content?
What has it to do with C++ ? What exactly are you asking for?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
|
|
|
|
|
@Codeproject
Sorry,I have a mistake.
Yes, I mean, Hessian Matrix is the square matrix of second-order partial derivatives of a function. The Function I used is Gaussian Function. Please, what is exact contents in Hessian Matrix?
Gaussian Function = F(x,y) = (1/(2*pi*T^2))exp-((x^2+y^2)/2T^2) where T is scale.
mask (Hessian) 2x2
H=[a b
c d]
H = Hessian Matrix.
a=...?
b=...?
c=...?
d=...?
please, i am waiting your reply. thank You
tra
|
|
|
|
|
If I remember well old good math (i.e. please check)
Fx = -(1/(2*pi*T^2))x/T^2 exp(-(x^2+y^2)/2T^2)
Fy = -(1/(2*pi*T^2))y/T^2 exp(-(x^2+y^2)/2T^2)
hence
a = Fxx = (1/(2*pi*T^2))(x^2/T^4 - 1/T^2)exp(-(x^2+y^2)/2T^2)
b = Fxy = (1/(2*pi*T^2))(xy/T^4) exp(-(x^2+y^2)/2T^2)
c = Fyx = Fxy
d = Fyy = (1/(2*pi*T^2))(y^2/T^4 - 1/T^2)exp(-(x^2+y^2)/2T^2)
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
|
|
|
|
|
Guten Tag, Mr. Kindman - CPallini.
I am glad to receive ur reply.
Now that 2x2 matrix will be convoluted with original image.
Do U know what are x, y and T ? What value is these (x, y and T)? So that I can know values of this matrix.
I will apply this matrix on Visual C++.
And please visit mywebsite:
http://ardiansyahputra.wordpress.com
Regard,
tra
modified on Wednesday, June 4, 2008 5:09 AM
|
|
|
|
|
Good luck with your matrix and convoluted images.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
|
|
|
|
|
arigatoo gozaimasu
tra
|
|
|
|
|