Search found 21 matches

by ilovasz
Thu Sep 03, 2009 8:06 am
Forum: C++ Development
Topic: Change border of wxPanel
Replies: 5
Views: 2562

Hi,

did You try to use
void wxWindow::SetWindowStyle(long style)
to change the border or any other style for that matter?

LI
by ilovasz
Fri Aug 28, 2009 11:28 am
Forum: C++ Development
Topic: how to read data from MySQL table...
Replies: 7
Views: 1482

You're welcome

LI
by ilovasz
Fri Aug 28, 2009 9:21 am
Forum: C++ Development
Topic: how to read data from MySQL table...
Replies: 7
Views: 1482

Hi, according to http://wiki.wxwidgets.org/ODBC , wxODBC has been removed from wxWidgets 2.8+ You should take a look at the wxDatabaseLayer component. You can find it here: http://wxcode.sourceforge.net/components/databaselayer/ Other alternatives are wxDba ( http://debea.net/trac/wiki/WxDba ) wxMyS...
by ilovasz
Thu Aug 13, 2009 12:39 pm
Forum: C++ Development
Topic: How to pass TopWindow's public variable into child dialog?
Replies: 12
Views: 2447

Hi,

I usually use

Code: Select all

wxTheApp->GetTopWindow()
to get access to the main frame.

LI
by ilovasz
Thu Aug 13, 2009 8:39 am
Forum: C++ Development
Topic: GetScrollPos for list box
Replies: 7
Views: 1734

Hi.

Yes the above code only tested on Windows (that's my main dev platform).
Now I've tested on Fedora 11 (64 bit) with wxGTK-2.8.10 and unfortunately I've got the same error...
../src/gtk/window.cpp(4303): assert "sb" failed in GetScrollPos(): this window is not scrollable
A bug maybe?

LI
by ilovasz
Tue Aug 11, 2009 7:51 pm
Forum: C++ Development
Topic: GetScrollPos for list box
Replies: 7
Views: 1734

Hi. This one works with wxListBox wxString sel = m_LBSource->GetStringSelection(); int sp = m_LBSource->GetScrollPos( wxVERTICAL ); m_LBTarget->SetStringSelection( sel ); ::SendMessage((HWND)m_LBTarget->GetHWND(), WM_VSCROLL, MAKELONG(SB_THUMBPOSITION, sp), NULL ); m_LBTarget->SetScrollPos( wxVERTIC...
by ilovasz
Sun Jul 26, 2009 8:14 pm
Forum: C++ Development
Topic: Capturing Previous Size Before Maximize
Replies: 13
Views: 1864

Hi,

In the OnSize() event check if the window if Maximized.
If it's true don't store the current size value.

LI
by ilovasz
Sat Jul 25, 2009 2:44 pm
Forum: C++ Development
Topic: Capturing Previous Size Before Maximize
Replies: 13
Views: 1864

Hi.

How about using IsMaximized() to check if the given window is maximized and store it somewhere besides the window dimension? So when you next time launch the application it can check if a given window was maximized before closed and you can use Maximize() on that window...

LI
by ilovasz
Tue May 12, 2009 9:03 pm
Forum: C++ Development
Topic: Application layout
Replies: 7
Views: 1169

Hi leiradella,

if I'm not mistaken You might want to check out these addons/libraries:

wxArt2D http://www.wxart2d.org
wxShapeFramework http://sourceforge.net/projects/wxsf/
wxworkspaceview http://code.google.com/p/wxworkspaceview/

LI
by ilovasz
Tue May 12, 2009 8:53 pm
Forum: C++ Development
Topic: wxComboBox - Is there a better way?
Replies: 4
Views: 935

Hi Dodle, from the documentation: wxComboBox(wxWindow* parent, wxWindowID id, const wxString& value, const wxPoint& pos, const wxSize& size, const wxArrayString& choices, long style = 0, const wxValidator& validator = wxDefaultValidator, const wxString& name = "comboBox") So You can use wxArrayStrin...
by ilovasz
Sat Apr 25, 2009 2:15 pm
Forum: Open Discussion
Topic: Fighting with a collegue over [...]
Replies: 5
Views: 2066

Hi.

I would go with [...] and an informative tooltip assigned to it. This way you will have more space for the relevant data (the path) but still provide information for the lost.

LI
by ilovasz
Sat Apr 04, 2009 9:31 am
Forum: C++ Development
Topic: Event for dropdown menu?
Replies: 4
Views: 966

You might be interested in these experimental data aware controls based on DatabaseLayer:

http://www.twinforms.com/products/wxwid ... ntrols.php

I didn't check them myself but looks promising.

Regards,
LI
by ilovasz
Fri Apr 03, 2009 12:38 pm
Forum: C++ Development
Topic: wxComboBox - Can't change combobox value?!
Replies: 14
Views: 2836

Hi How about this? void TestComboBox::OnComboboxSelected( wxCommandEvent& event ) { int idx = combo->GetCurrentSelection(); if( idx == 2 ) { combo->SetString( idx, _T("New Value")); combo->SetSelection( idx ); } event.Skip(); } Assumning combo is a pointer to the wxComboBox control... LI
by ilovasz
Wed Apr 01, 2009 1:16 pm
Forum: C++ Development
Topic: Addressing the main frame itself
Replies: 1
Views: 471

Hi.

Code: Select all

wxWindow * main = wxTheApp->GetTopWindow();
main->SetLabel( _T("the new title") );
See dox for more info...

Regards,
LI
by ilovasz
Tue Mar 31, 2009 4:27 pm
Forum: Compiler / Linking / IDE Related
Topic: wxwidgets linux and win
Replies: 5
Views: 1030

We're using VS on Windows, Code::Blocks on Linux.
CB can import VS project/solution.
Works fine here.

LI