I have a dlg box created in MFC and i need to handle a certain key combination:
CTRL+E+G+S
i only know how to handle individual key presses
any help would be appreciated.
Cheers,
Wiggis
bind <widget> <key> {command} is for mormal tk widgets but the Tree widget does not have the bind command and therefore this method does not work.
BWidget Tree has two methods defined for binding events
$tree bindText
$tree bindImage
but these only seem to accept mouse button bindings
Hi,
I need to bind key events to a tree widget such as <Key-Return> but i seem to be having no luck.
the standard:-
$tree bindText <Key-Return> "puts $d"
does not work,
Any ideas?
also how can i bind a mouse click onto the background of the tree.
cheers for any help,
Dave
unfortunatly this is the wrong way round for waht i am trying to do.
This article is for embedding Tk into C++ what i want to do is embedd C++ into TK.
Thanks anyway
Hi,
I need a way of creating or emulating a TK widget using C++.
Basically i need to embedd an app inside of tk and this seems to be the best solution and i just do not know how to do it.
the
int main(int argc, char* argv[])
method stores all command line arguments in the argv[] array
you can then access them the same way you would normally access members of an array, just make sure the parameter exists before you try and access it
you could try this, (a bit easier than trying to use CString)
char* n;
cout << "Hi Start Inputting the values (10# Max - Enter 'end' to End) \n\n\n" ;
for (i=0;i<10;i++)
{
cout << "Enter No " << i+1 << " : " << " " ;
cin >> n;
if (n ==...
AnsiString is a Borland Data Type that is not supported by Visual C++ and unfortunately you probably will have to change all occurances and update the methods called on them as most of them don't exist outside of Borland.
as apatterno said one alternative is to use the STL
regards
Dave
try getting hold of Visual C++ and create a sample hello world Win32 Application, it will have all of the base code you need for creating a window.
this can be much simpler than trying to understand how the author of a book approaches the task.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.