Search found 396 matches

by sethjackson
Mon Jun 05, 2006 9:03 pm
Forum: C++ Development
Topic: wxNotebook style trouble
Replies: 8
Views: 1055

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()); } ...
by sethjackson
Mon Jun 05, 2006 8:53 pm
Forum: C++ Development
Topic: wxNotebook style trouble
Replies: 8
Views: 1055

toxicBunny wrote:Have you tried adding

Code: Select all

Refresh();
or

Code: Select all

Refresh();
Update();
at the end of your OnTabPosition() function?
Tried that no go. :(
by sethjackson
Mon Jun 05, 2006 8:47 pm
Forum: C++ Development
Topic: wxNotebook style trouble
Replies: 8
Views: 1055

benedicte wrote:You should put the notebook in a sizer to attach it to the main frame.
Umm how? Isn't there any other way to do this?
by sethjackson
Mon Jun 05, 2006 7:53 pm
Forum: C++ Development
Topic: wxNotebook style trouble
Replies: 8
Views: 1055

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...
by sethjackson
Mon Jun 05, 2006 6:39 pm
Forum: C++ Development
Topic: wxNotebook style trouble
Replies: 8
Views: 1055

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...
by sethjackson
Mon Jun 05, 2006 1:16 pm
Forum: C++ Development
Topic: taskbar icon
Replies: 1
Views: 496

Re: taskbar icon

cyrixware wrote:How to show taskbar icon? (frame)

regards
http://www.wxwidgets.org/manuals/2.6.3/ ... askbaricon
by sethjackson
Sun Jun 04, 2006 12:43 am
Forum: C++ Development
Topic: Library documentation
Replies: 1
Views: 498

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...
by sethjackson
Thu Jun 01, 2006 8:46 pm
Forum: Open Discussion
Topic: IRC channel for wxWidget?
Replies: 2
Views: 790

Very nice. 8) I had not noticed this.....
by sethjackson
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: 998

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...
by sethjackson
Thu Jun 01, 2006 2:34 pm
Forum: C++ Development
Topic: wxNotebook::HitTest()
Replies: 5
Views: 901

I accepted your answer (I have no clue why I have to use ScreenToClient() though), but it works now.

I also did what phlox81 suggested too.

Thanks for all the help. :D
by sethjackson
Thu Jun 01, 2006 2:07 pm
Forum: C++ Development
Topic: wxNotebook::HitTest()
Replies: 5
Views: 901

benedicte wrote:Why not using the HitTest return value (wxNOT_FOUND if no tab at the specified position) :?:
Still no go.... I don't get the popup menu.

Code: Select all

    int tab = m_pNotebook->HitTest(event.GetPosition(), 0);

    if (tab != wxNOT_FOUND)
    {
        ....
    }
by sethjackson
Thu Jun 01, 2006 1:17 pm
Forum: C++ Development
Topic: wxNotebook::HitTest()
Replies: 5
Views: 901

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...
by sethjackson
Wed May 31, 2006 12:43 pm
Forum: Open Discussion
Topic: A frustrated newbie in wxWidgets
Replies: 12
Views: 1959

upCASE wrote:Great example.
Maybe this should be featured on the new wxWidgets site.
Yeah. That is a nice app. 8)
by sethjackson
Wed May 31, 2006 12:40 pm
Forum: C++ Development
Topic: wxFileHistory
Replies: 2
Views: 740

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...
by sethjackson
Tue May 30, 2006 1:56 pm
Forum: C++ Development
Topic: wxFileHistory
Replies: 2
Views: 740

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...