Search found 152 matches

by ONeill
Sat Mar 14, 2009 9:02 pm
Forum: C++ Development
Topic: Catch paste event if wxGrid cell is selected
Replies: 8
Views: 1265

Hm, you're right. I forgott that. The Barcode reader emulates a keyboard, so i have to catch the key events not the paste events. Allthough i tested the codes above by pasting over keyboard and not over the barcode reader because i do not have the reader right now. So i have to wait until monday til...
by ONeill
Sat Mar 14, 2009 7:24 pm
Forum: C++ Development
Topic: Catch paste event if wxGrid cell is selected
Replies: 8
Views: 1265

Oh sorry, i didn't see that, but the event isn called:

Code: Select all

wxWindow *tempWin = inventurliste->GetTargetWindow();	tempWin->Connect(tempWin->GetId(),wxEVT_COMMAND_TEXT_PASTE,wxKeyEventHandler(MyFrame::OnKeyUp),0,this);
Nothing happens. :-/
by ONeill
Sat Mar 14, 2009 6:54 pm
Forum: C++ Development
Topic: Catch paste event if wxGrid cell is selected
Replies: 8
Views: 1265

Thanks for your answear, but i tried it that way with the code in my first post. It is the same like yours. I connecting the paste event to the whole grid.
by ONeill
Sat Mar 14, 2009 5:45 pm
Forum: C++ Development
Topic: Catch paste event if wxGrid cell is selected
Replies: 8
Views: 1265

The problem is, that the paste command is automaticly generated from a barcode reader. So I can't use a popup menü. That would be easy.

I have to catch the paste event if the cell only is selected.
by ONeill
Sat Mar 14, 2009 1:57 pm
Forum: C++ Development
Topic: Catch paste event if wxGrid cell is selected
Replies: 8
Views: 1265

Catch paste event if wxGrid cell is selected

Hello, i want to catch the paste event, if a cell is selected (not when the cursos is IN the cell). I tried this code: inventurliste->Connect(wxID_ANY,wxEVT_COMMAND_TEXT_PASTE,wxKeyEventHandler(MyFrame::OnKeyUp)); But this connect only catches the paste event IF the cursos is IN the cell. How can i ...
by ONeill
Sat Mar 14, 2009 1:55 pm
Forum: C++ Development
Topic: Select a grid cell for direct input
Replies: 3
Views: 983

Ok, doesn't need that functionality anymore.
by ONeill
Sat Mar 14, 2009 12:43 pm
Forum: C++ Development
Topic: Select a grid cell for direct input
Replies: 3
Views: 983

Thanks for that! ^^

I want that my program selects the grid, not the user! :lol:
by ONeill
Fri Mar 13, 2009 1:06 pm
Forum: C++ Development
Topic: Select a grid cell for direct input
Replies: 3
Views: 983

Select a grid cell for direct input

Hello,

i've got a wxGrid component and i want to select a specific cell, so that the user can directly enter input without calling enter first or something.

How is that possible?

Thanks for help
by ONeill
Thu Jan 29, 2009 11:56 am
Forum: C++ Development
Topic: Close program correctly in OnInit
Replies: 5
Views: 1293

@David

Thanks for your time. If I didn't make a mistake in the switch/case the suggestion from framepointer would have worked.

:)
by ONeill
Wed Jan 28, 2009 9:17 pm
Forum: C++ Development
Topic: Close program correctly in OnInit
Replies: 5
Views: 1293

Hm, that didn't work. The process is still running in taskmanager.
by ONeill
Wed Jan 28, 2009 8:14 pm
Forum: C++ Development
Topic: Close program correctly in OnInit
Replies: 5
Views: 1293

Close program correctly in OnInit

Hello, if i start my program, the user is able to chose what he wants to do, even if he only wants to close it directly. I've got the following OnInit method: bool MyApp::OnInit() { //Handler für alle Bildformate Initialisieren ::wxInitAllImageHandlers(); //Programm anzeigen try { MyStartDialog dlg;...
by ONeill
Fri Jan 23, 2009 5:49 pm
Forum: C++ Development
Topic: wxGrid and AutoSize
Replies: 2
Views: 702

The method is helpfull for me, but doesn't solve the problem. I will choose a width which is big enough for content. Not the best method but it is okay this time. :)
by ONeill
Thu Jan 22, 2009 10:03 pm
Forum: C++ Development
Topic: wxGrid and AutoSize
Replies: 2
Views: 702

wxGrid and AutoSize

Hello, after using the search and google, i didn't find a satisfying answear for my question. After adding a row with content to my grid, I want it to resize, so that the grid fits to his content. Obviously I should use the AutoSize function, but they don't seem to work. I tried to use AutoSize, Aut...
by ONeill
Thu Jan 22, 2009 10:57 am
Forum: C++ Development
Topic: Sizer problem!
Replies: 3
Views: 1007

Thanks,

with some editing your code worked well. I didn't know how to add a sizer into a sizer. The tutorials i read, didn't handle that, but it is that simple! :)
by ONeill
Wed Jan 21, 2009 10:29 pm
Forum: C++ Development
Topic: Sizer problem!
Replies: 3
Views: 1007

Sizer problem!

Hello, I was sitting the whole evening trying to figure out how to make my program scalable. Currently my program is static and looks like the screenshot. I only want the left part, the notebook with its GroupBox, to be scalable. Currently the GroupBox is static. I figured out, that i have to use wx...