|
P$YCH0 wrote: I don't need to DISABLE context menu! I don't want CREATE my own menu!
That's what you'll have to do indeed; most languages don't support extending the default context-menu, only replacing it with a custom one.
P$YCH0 wrote: I just want to get ('handle to' or 'use system resource' or 'something else') existing menu and modify it!
That 'might' be done using a custom message handler, search for "WinProc" and WM_CONTEXTMENU
I are Troll
|
|
|
|
|
Do U know why that won't work?
Tip: the key word is HANDLE.
The question: Does WM_CONTEXTMENU has a handle?
The answer: Yes.
Another question: What handle?
|
|
|
|
|
P$YCH0 wrote: Another question: What handle?
Would the one mentioned here[^] work?
I are Troll
|
|
|
|
|
Yes it works and works quite well, It would work much better if you would try it.
F*** sake! Man, try it in your project first. Do you think YOU ARE the one at univers who can read talmud MSDN?
Do u realy think so?
P.S. You know, there's a SPY++... Try to start learning this tool it helps to prevent forum from sh*t, mf-expert
|
|
|
|
|
There really is no need for this kind of response. Eddy has made a perfectly reasonable suggestion to try and help you. If you cannot be bothered to go and investigate whether it will help then that is your problem.
Just say 'NO' to evaluated arguments for diadic functions! Ash
|
|
|
|
|
P$YCH0 wrote: Man, try it in your project first.
My projects don't require extending the system's default menu, I usually put in a new one. Cut, copy, paste and delete are easily added.
I don't have VB6 installed on my machine, and I doubt that openSuse would like it. Further, I doubt that it would be worth the time invested, compared to the added functionality. Yes, there are some 3rd party tools that integrate with every textbox, and they don't show up when you create something from scratch. Is that the reason of this exercise?
P$YCH0 wrote: Do you think YOU ARE the one at univers who can read talmud MSDN?
I think that most people have more important things to do than meditate on MSDN[^]
P$YCH0 wrote: Try to start learning this tool it helps to prevent forum from sh*t, mf-expert
You're gonna go far kid
I are Troll
|
|
|
|
|
Hate mfs who spit a bulshit! Don't be one of them! OK!
Man, what a f*** you wrote here? What a SUSE? What a 3d party tools? Are you crazy? Do you think it usefull? It's long time you keep silent, right? Wanna say something?
WHY YOU ARE ALL insted of direct answer "Yes, do this way..." or "No! It's impossible" trying to spit sh*t? Ah?
Please, excuse me for my impertinent words. I tired of useless advises.
... and i found the solution, relax
|
|
|
|
|
If you believe that this sort of language and attitude is going to get you help in the future you are likely to be sadly disappointed.
Just say 'NO' to evaluated arguments for diadic functions! Ash
|
|
|
|
|
Here[^] is the VB6 reference for the TextBox , but I cannot see any property or method that offers what you want. However, VB6 is very old now and I don't think there is much support for it from Microsoft so you may find that there is no answer to your query.
Just say 'NO' to evaluated arguments for diadic functions! Ash
|
|
|
|
|
Richard MacCutchan wrote: but I cannot see any property or method that offers what you want
U R right.
But let me ask you... How the context menu appears in textbox? We both know that there's no magic in real life
|
|
|
|
|
I c there's no anyone who helps me, it's a pity.
|
|
|
|
|
P$YCH0 wrote: I c there's no anyone who helps me, it's a pity.
That's not true; both Eddy and I have tried to help you by researching the general area that you are trying to work in. The fact that we did not find an answer that satisfies you is down to the fact that you are expecting something that may not be available, and working with a very old and unsupported language.
Quite frankly, for someone who only joined CodeProject today, your attitude does not help your cause.
Just say 'NO' to evaluated arguments for diadic functions! Ash
|
|
|
|
|
someone who only joined CodeProject today
Yes you are right. I'm new to this forum. But my experience in programming VB6 quite long it's more then 1 day
And you judge a man only using term 'forum-life-time'? Yes it's realy wisely!
Instead of workin' advise YOU spit a common words. You know, I'm searching for answer but not earning 'reputation on forum' by 'bullshit posts'.
Yes I'm not 'power poster' but that's not the goal to strike VB-newbiew by 'empty' advises like 'screw tones of left-part libraries to your tiny project'
But any way thank you for useless posts.
Let me give you 'working' advise: If you don NOT know what to say, then keep silent.
P.S. Sorry for my english (but, that's a another cause for you to comment
|
|
|
|
|
Richard MacCutchan wrote: Quite frankly, for someone who only joined CodeProject today, your attitude does not help your cause.
Exactly what I was thinking............
Dave
Find Me On: Web| Facebook| Twitter| LinkedIn
CPRepWatcher now available as Packaged Chrome Extension, visit my articles for link.
|
|
|
|
|
It's only gurus like you spitting bulshits!
You can say something on its merits?
Let's go...
Pizdabol!
|
|
|
|
|
to the losers
Yo, Dave & Richard
U both suck that proposition
So why you are tryin'
To askin' the question
your turn mf's
|
|
|
|
|
I don't know who who are, or who you think you are, or what impression you are trying to make, but I would just like to offer the following advice;
Your method of answer, language capabilities, and presentation style will quickly alienate you within the community. The CodeProject is a community of professionals and hobbyists with a wide range of skills and all anyone here is trying to do is help each other.
Your style may work well and be accepted on other forums, but is not generally accepted on the this site (except maybe in the Back Room and SoapBox forums).
All that will happen is people will just start to ignore you, and then what assistance will be available to you?
Time to drop the teenager attitude and grow up, or it will be a future of 'extra fries' for you.
That is all I am going to say on the subject.......
Dave
Find Me On: Web| Facebook| Twitter| LinkedIn
CPRepWatcher now available as Packaged Chrome Extension, visit my articles for link.
|
|
|
|
|
And you have said nothing.
I ask concrete question. And you the professional start flame.
There's no right answer from you.
Is it professional to said everithing except the coverage of the topic?
Ask yourself, is your answers useful for me and maybe future "explorers" and hobbyists?
Count the flood answers! The problem remains unresolved.
So why you start answer the question you can't resolve?
And leave your reprimands to your kids if any.
|
|
|
|
|
The VB6 textbox doesn't expose any kind of methods for getting at the ContextMenu. You'll have to use Win32 functions to get at it and modify it. Warning! Not for the faint of heart or noobie of VB.
Example[^]
Keep in mind that Microsoft hasn't supported VB6 in years and the communities on the 'Net that are supporting questions like this are disappearing fast. I would highly suggest abandoning VB6 development and moving to VB.NET.
BTW: If you used VB.NET, this question would likely never have come up because it exposes what's needed to do what you want without poking around in Win32.
|
|
|
|
|
Oh, realy? Thank you, at least you are not trying to attaint me.
Can you post your realization of 'get at it and modify it'. I'm interesting only the point there you are getting handle of the context menu.
[with doubt ] You are not dglienna, right?
|
|
|
|
|
I don't have an example.
I abandoned all VB6 developement 9 years ago when I got my hands on the .NET 1.0 Beta.
P$YCH0 wrote: You are not dglienna, right?
Nope.
|
|
|
|
|
|
For your future reference, using bold inside a code block, does not show up very well. It would be better to do something like:
Public Sub New(ByVal lineIn As String)
parent = Trim(lineIn.Substring(0, colStarts(1)))
enfant = Trim(lineIn.Substring(colStarts(1), colStarts(2) - colStarts(1)))
des_F = Trim(lineIn.Substring(colStarts(2), colStarts(3) - colStarts(2)))
des_AD_F = Trim(lineIn.Substring(colStarts(3), colStarts(4) - colStarts(3)))
des_A = Trim(lineIn.Substring(colStarts(4), colStarts(5) - colStarts(4)))
des_AD_A = Trim(lineIn.Substring(colStarts(5), colStarts(6) - colStarts(5)))
draw_iss = Trim(lineIn.Substring(colStarts(6), colStarts(7) - colStarts(6)))
dnf = Trim(lineIn.Substring(colStarts(7), colStarts(8) - colStarts(7)))
baloon = Trim(lineIn.Substring(colStarts(8), colStarts(9) - colStarts(8)))
util_qte = Trim(lineIn.Substring(colStarts(9), lineIn.Length - colStarts(9)))
lastRowNum += 1
rowNumber = lastRowNum
SetDigitsAndSuffix(parent, parDigits, parSuffix)
SetDigitsAndSuffix(enfant, enfDigits, enfSuffix)
End Sub
Also, without knowing the values of colStarts() and lineIn it is very difficult to offer a sensible suggestion.
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
Hi Vijay
My guess is that the input file is not the format you expect i.e. does not have the header line with the fields that are expected.
If I'm right the colStarts() array won't be set up correctly - that might mean changing the function that creates the array.
Regards
David R
---------------------------------------------------------------
"Every program eventually becomes rococo, and then rubble." - Alan Perlis
The only valid measurement of code quality: WTFs/minute.
|
|
|
|
|
Hello David,
Hope you remember me.
The application produces thiss error message for only few input files. and more over, the input file is formatted to a desired format, so that the comparision between the 2 files are done easily.
The columns of the 2 files compared are the same.
|
|
|
|