Search found 396 matches
- Mon Jun 05, 2006 9:03 pm
- Forum: C++ Development
- Topic: wxNotebook style trouble
- Replies: 8
- Views: 1480
Well actually I solved it myself.... void Notebook::OnTabPosition(wxCommandEvent& event) { long style = GetWindowStyleFlag(); style &= ~wxNB_BOTTOM; if (event.GetId() == idTabsAtBottom) style |= wxNB_BOTTOM; SetWindowStyleFlag(style); SetSize(GetBestSize()); SetSize(GetParent()->GetClientSize()); } ...
- Mon Jun 05, 2006 8:53 pm
- Forum: C++ Development
- Topic: wxNotebook style trouble
- Replies: 8
- Views: 1480
Tried that no go.toxicBunny wrote:Have you tried adding
orCode: Select all
Refresh();
at the end of your OnTabPosition() function?Code: Select all
Refresh(); Update();

- Mon Jun 05, 2006 8:47 pm
- Forum: C++ Development
- Topic: wxNotebook style trouble
- Replies: 8
- Views: 1480
- Mon Jun 05, 2006 7:53 pm
- Forum: C++ Development
- Topic: wxNotebook style trouble
- Replies: 8
- Views: 1480
I don't understand. Can you show some other code or some wxSizer code? I don't use wxSizer..... m_pNotebook = new Notebook(Manager::Get()->GetAppWindow(), wxID_ANY, wxDefaultPosition, wxDefaultSize, 0); void Notebook::OnRightDown(wxMouseEvent& event) { wxPoint pt = event.GetPosition(); ScreenToClie...
- Mon Jun 05, 2006 6:39 pm
- Forum: C++ Development
- Topic: wxNotebook style trouble
- Replies: 8
- Views: 1480
wxNotebook style trouble
I have a small problem with this code. The notebook control does not resize correctly..... void Notebook::OnTabPosition(wxCommandEvent& event) { long style = GetWindowStyleFlag(); style &= ~wxNB_BOTTOM; if (event.GetId() == idTabsAtBottom) style |= wxNB_BOTTOM; SetWindowStyleFlag(style); } http://im...
- Mon Jun 05, 2006 1:16 pm
- Forum: C++ Development
- Topic: taskbar icon
- Replies: 1
- Views: 693
Re: taskbar icon
http://www.wxwidgets.org/manuals/2.6.3/ ... askbariconcyrixware wrote:How to show taskbar icon? (frame)
regards
- Sun Jun 04, 2006 12:43 am
- Forum: C++ Development
- Topic: Library documentation
- Replies: 1
- Views: 664
Re: Library documentation
Excuse me, please, if this question is already posted I am using wxDev-C++ 4.9.9.2 (with WinXP) and I have full documentation for wxWidgets library. If I press F1, the IDE launches a .chm but doesn't find the word that I have selected. No problem, I do it manually. But, I don't have documentation f...
- Thu Jun 01, 2006 8:46 pm
- Forum: Open Discussion
- Topic: IRC channel for wxWidget?
- Replies: 2
- Views: 1030
- Thu Jun 01, 2006 8:43 pm
- Forum: C++ Development
- Topic: Error: wxWidgets 2.6.3 with OpenGL / Visual C++ 2005 Express
- Replies: 4
- Views: 1320
Re: Error: wxWidgets 2.6.3 with OpenGL / Visual C++ 2005 Exp
Hi I'm new to wxWidgets, but after some serious research I decided to port my project (a big OpenGL 3D visualization package) from MFC to wxWidgets. What I have done: 1. Download wxWidgets 2.6.3. 2. Use Visual C++ 2005 Express to build wxWidgets. In this step I simply ask VC8 to automatically conve...
- Thu Jun 01, 2006 2:34 pm
- Forum: C++ Development
- Topic: wxNotebook::HitTest()
- Replies: 5
- Views: 1148
- Thu Jun 01, 2006 2:07 pm
- Forum: C++ Development
- Topic: wxNotebook::HitTest()
- Replies: 5
- Views: 1148
Still no go.... I don't get the popup menu.benedicte wrote:Why not using the HitTest return value (wxNOT_FOUND if no tab at the specified position)
Code: Select all
int tab = m_pNotebook->HitTest(event.GetPosition(), 0);
if (tab != wxNOT_FOUND)
{
....
}
- Thu Jun 01, 2006 1:17 pm
- Forum: C++ Development
- Topic: wxNotebook::HitTest()
- Replies: 5
- Views: 1148
wxNotebook::HitTest()
void Class::OnRightDown(wxMouseEvent& event) { long flags; m_pNotebook->HitTest(event.GetPosition(), &flags); if (flags != wxNB_HITTEST_NOWHERE) { wxMenu* menu = new wxMenu; menu->Append(idClose, _("Close")); menu->Append(idCloseAll, _("Close all")); ...... m_pNotebook->PopupMenu(menu, event.GetPos...
- Wed May 31, 2006 12:43 pm
- Forum: Open Discussion
- Topic: A frustrated newbie in wxWidgets
- Replies: 12
- Views: 2676
- Wed May 31, 2006 12:40 pm
- Forum: C++ Development
- Topic: wxFileHistory
- Replies: 2
- Views: 958
See the note below UseMenu . You need to call AddFilesToMenu(mnu) only once, right after UseMenu(mnu) -- it is used to populate the menu with files that were put into history before the menu was attached. As for the path not being full... I scanned the source (src/common/docview.cpp) and found that...
- Tue May 30, 2006 1:56 pm
- Forum: C++ Development
- Topic: wxFileHistory
- Replies: 2
- Views: 958
wxFileHistory
Hi I'm having a minor problem with wxFileHistory.... Here is the relevant code. void MainFrame::InitializeRecentFilesHistory() { wxMenuBar* mbar = GetMenuBar(); if (!mbar) return; wxMenu* recentFiles; mbar->GetMenu(0)->FindItem(idFileOpenRecentFileClearHistory, &recentFiles); if (!recentFiles) retur...