Search found 74 matches

by bone
Wed Jul 09, 2008 4:32 am
Forum: C++ Development
Topic: tab flow control with wxwidgets
Replies: 2
Views: 883

Use wxWindow::SetFocus() ie pmybutton->SetFocus() when the dialog is shown/activated Many controls are derived from other controls and it is worth looking at the "derived from" section in help and checking the methods for the base control. You can also use Use wxButton::SetDefault to make ...
by bone
Sat Jun 28, 2008 10:26 am
Forum: C++ Development
Topic: wxComboBox onlostfocus event
Replies: 0
Views: 579

wxComboBox onlostfocus event

I have used the KILL_FOCUS event to try and either (if the user has typed a new item that is not in the combo's list) 1. add a new item to a combobox from its texctrl and move on the to the next control in the tab order. 2. remove the text from the combobox's textctrl and retain/setfocus to the comb...
by bone
Sat Jun 28, 2008 9:54 am
Forum: wxCode
Topic: Unicode Firebird DatabaseLayer
Replies: 1
Views: 1100

In fact all you need for Version 2 is wxString FirebirdDatabaseLayer::TranslateErrorCodeToString(ISC_STATUS_ARRAY status) { char szError[512]; wxString strReturn = wxEmptyString; ISC_STATUS* pVector = (ISC_STATUS*)status; while (fb_interpret(szError, sizeof(szError), (const ISC_STATUS**)&pVector...
by bone
Sat Jun 28, 2008 9:40 am
Forum: C++ Development
Topic: wxWebcore / ATTRIBUTE_PRINTF error
Replies: 4
Views: 1684

if you don't #include <wx/string.h> along with wx/debug.h you will get the error
expected initializer before "ATTRIBUTE_PRINTF_3"
by bone
Thu Jun 12, 2008 10:26 am
Forum: C++ Development
Topic: Changing order of items in wxlistctrl
Replies: 3
Views: 1027

That is more clear. There is no pre-built method to do what you want in report view. SortItems can be used to do what you want by setting each item's itemdata to a long in the order you need (see SetItemData). Your button click retrieves the items current index position and reduces its itemdata valu...
by bone
Thu Jun 12, 2008 4:28 am
Forum: C++ Development
Topic: Changing order of items in wxlistctrl
Replies: 3
Views: 1027

wxListCtrl has bool wxListCtrl::SortItems(wxListCtrlCompare fnSortCallBack, long data) There are some posts within this news group that refer to sorting that should be of help. Here are a few: http://forums.wxwidgets.org/viewtopic.php?t=16542&highlight=wxlistctrl+sortitems http://forums.wxwidget...
by bone
Tue May 27, 2008 4:43 am
Forum: C++ Development
Topic: Calling an event by a literal
Replies: 5
Views: 4873

How can I raise an event by using a literal and without if...else if...?
Perhaps a function reference in an array or hash map capable of storing objects and accessing the function references via a literal string key.
Cheers
by bone
Wed May 21, 2008 10:43 am
Forum: C++ Development
Topic: wxFileSelector segfault in debug
Replies: 2
Views: 922

Funny, I searched before posting but the keys I searched for did not bring up a result. Perhaps this was because they were within a quote block. I did not think that it was a wxWidgets problem as the wxFileSelector dialog is a native OS dialog and therefore there was no solution other than perhaps t...
by bone
Tue May 20, 2008 8:18 am
Forum: wxCode
Topic: Unicode Firebird DatabaseLayer
Replies: 1
Views: 1100

Unicode Firebird DatabaseLayer

I had some strange untranslated error messages returned from FirebirdDatabaseLayer::TranslateErrorCodeToString when I changing from ANSI to Unicode build. The following code translates properly in Unicode and used to work in ANSI (taken from my prog "fbServiceLayer") in Win XP. I don't kno...
by bone
Mon May 19, 2008 1:53 pm
Forum: C++ Development
Topic: wxFileSelector segfault in debug
Replies: 2
Views: 922

wxFileSelector segfault in debug

In unicode build 2.8 (Win XP pro) I call the wxFileSelector from a dialog button when debugging. The fileselector shows up on screen as per usual. However if I use the "look in:" combobox I get a segfault SIGSEGV in ?? () () The call stack is as follows: #0 002AC410 ??() (??:??) #1 042FFFB...
by bone
Sun Mar 02, 2008 11:00 pm
Forum: Component Writing
Topic: wxPopupWindow and wxListBox and Sizing
Replies: 1
Views: 1716

Have a look at wxWindow::GetTextExtent
by bone
Wed Feb 27, 2008 4:48 am
Forum: wxDev-C++
Topic: DevPak Creation on VISTA - READ ME
Replies: 8
Views: 5773

This article is of interest for Vista victims

http://support.microsoft.com/default.aspx/kb/927387

A burglar took my Vista machine recently, he must have been desperate.
by bone
Sun Feb 24, 2008 3:25 am
Forum: Compiler / Linking / IDE Related
Topic: Code::Blocks/dgb Unicode debugging for wxString
Replies: 10
Views: 7282

Perhaps you would get more response in the codeblocks forum at
http://forums.codeblocks.org/
by bone
Sun Feb 24, 2008 2:59 am
Forum: C++ Development
Topic: Linker Error in DLL compilation
Replies: 3
Views: 1210

Make sure your compiler can "see" the object (lib*.a) / lib (*.lib) files that you are trying to link to. It will need the paths to these.
by bone
Fri Feb 22, 2008 9:48 am
Forum: C++ Development
Topic:
Replies: 5
Views: 2343

I am not sure what you want to do here but I think it is use the enter key to move between 3 controls wxTextCtrl, wxComboBox and wxGrid. The enter key should move you between the textbox to the combobox and then to the wxGrid. A couple of points: If you have wxWANTS_CHARS set for the wxCombo you wil...