Search found 65 matches

by Nelson Joseph
Wed Aug 31, 2011 6:14 am
Forum: C++ Development
Topic: Context menu does not appear at exact mouse position
Replies: 8
Views: 2308

Re: Context menu does not appear at exact mouse position

Thanks Catalin. It works fine.
by Nelson Joseph
Wed Aug 31, 2011 4:56 am
Forum: C++ Development
Topic: Multiple wxGrid tables in one object??
Replies: 1
Views: 762

Re: Multiple wxGrid tables in one object??

vector <float> m_dimValues; ... ... ... wxGrid m_grid = new wxGrid( this, wxID_ANY ); m_grid->CreateGrid( row, column ); ... ... for ( int row = 0; row < numRows; row++ ) { for ( int column = 0; column < dim; column++ ) { m_grid->SetCellValue ( row, column, wxString::Format( "%f", m_dimValues.at ( ...
by Nelson Joseph
Tue Aug 30, 2011 6:57 am
Forum: C++ Development
Topic: Flickering Issue
Replies: 15
Views: 3807

Re: Flickering Issue

Hi, me using wxWidgets in WInCE platform. I have created a frame with background image is a picture chart and many bitmapbuttons and other custom control over that chart on frame :) . When chart is updated using refresh() call, the whole controls over the chart get affected and shows a flicker. I h...
by Nelson Joseph
Tue Aug 30, 2011 6:48 am
Forum: C++ Development
Topic: Context menu does not appear at exact mouse position
Replies: 8
Views: 2308

Re: Context menu does not appear at exact mouse position

I'd suggest not to try to calculate and manually set the menu position when the position is known. Just calling PopupMenu with the default coordinates always worked correctly for me. If I remove my toolbar, then it works perfectly. What is the relation between toolbar and context menu? Any suggesti...
by Nelson Joseph
Tue Aug 30, 2011 4:27 am
Forum: C++ Development
Topic: Context menu does not appear at exact mouse position
Replies: 8
Views: 2308

Re: Context menu does not appear at exact mouse position

Catalin:

Thanks for your quick reply.
I changed the code as you said, but I cant see any changes in output. Same thing is happening.
by Nelson Joseph
Mon Aug 29, 2011 11:51 am
Forum: C++ Development
Topic: Context menu does not appear at exact mouse position
Replies: 8
Views: 2308

Context menu does not appear at exact mouse position

Hi All, I am using the following code to create context menu. It works fine but the issue is, it does not appear at the mouse position. Instead, it appears 30 pixel ablove from the mouse's Y value. void MyFrame::OnContextMenu( wxContextMenuEvent& event ) { wxPoint point = event.GetPosition(); // If ...
by Nelson Joseph
Mon Aug 29, 2011 5:47 am
Forum: C++ Development
Topic: Customize wxAuiNotebook
Replies: 5
Views: 1125

Re: Customize wxAuiNotebook

Have you tried wxAUI_NB_CLOSE_ON_ACTIVE_TAB option to your first requirement?
by Nelson Joseph
Mon Aug 29, 2011 5:29 am
Forum: C++ Development
Topic: wxNotebook - How I can get wxSize value of a single tab
Replies: 11
Views: 3187

Re: wxNotebook - How I can get wxSize value of a single tab

Thanks Auria. This looks very simple :D
by Nelson Joseph
Sun Aug 28, 2011 6:51 am
Forum: C++ Development
Topic: wxNotebook - How I can get wxSize value of a single tab
Replies: 11
Views: 3187

Re: wxNotebook - How I can get wxSize value of a single tab

Try this:

Code: Select all

wxSize sz = this->GetSize();
int iHeight = sz.GetHeight();
int iPos = iHeight/2;
boxSizer->Add( innerPanel, 0, wxCENTER | wxTOP, iPos, 0 );
by Nelson Joseph
Sun Aug 28, 2011 6:28 am
Forum: C++ Development
Topic: wxAuiToolbar
Replies: 3
Views: 990

Re: wxAuiToolbar

wxITEM_DROPDOWN kind for toolbar buttons avialable in wxWidgets 2.9+ only
by Nelson Joseph
Sat Aug 27, 2011 11:19 am
Forum: Platform Related Issues
Topic: All OpenGL examples crash wx-2.8.11 Win 7 VC++ 2008 Express
Replies: 2
Views: 1078

Re: All OpenGL examples crash wx-2.8.11 Win 7 VC++ 2008 Expr

Add the following libraries in your Additional Dependencies ( Linker settings )
opengl32.lib
wxmsw28d_gl.lib
by Nelson Joseph
Sat Aug 27, 2011 11:12 am
Forum: Platform Related Issues
Topic: Windows 7 Aero blinking problem
Replies: 2
Views: 1127

Re: Windows 7 Aero blinking problem

Have you tried wxCLIP_CHILDREN ? Use this style to eliminate flicker caused by the background being repainted.
by Nelson Joseph
Sat Aug 27, 2011 10:59 am
Forum: C++ Development
Topic: wxAuiToolbar
Replies: 3
Views: 990

Re: wxAuiToolbar

which style it does not recognize?
Tell your platform and version of wxWidgets.
by Nelson Joseph
Sat Aug 27, 2011 5:10 am
Forum: C++ Development
Topic: auimanager, size and panel
Replies: 1
Views: 620

Re: auimanager, size and panel

To set min and max size, try the following functions:

Code: Select all

void SetMinSize(const wxSize& size)
void SetMaxSize(const wxSize& size)
by Nelson Joseph
Wed Aug 24, 2011 6:58 am
Forum: C++ Development
Topic: wxNotebook - How I can get wxSize value of a single tab
Replies: 11
Views: 3187

Re: wxNotebook - How I can get wxSize value of a single tab

Hope the following code could be helpful... wxNotebook* tabs = new wxNotebook( this, wxID_ANY ); wxPanel* extPanel = new wxPanel( tabs, wxID_ANY ); wxPanel* innerPanel = new wxPanel( extPanel, wxID_ANY ); innerPanel->SetBackgroundColour(wxColor(0, 0, 255)); innerPanel->SetSize( wxSize( 200, 200 ) );...