Search found 29 matches
- Wed May 21, 2008 6:01 pm
- Forum: C++ Development
- Topic: wxPropertyGrid event
- Replies: 0
- Views: 551
wxPropertyGrid event
Hi. I am adding a property to propertygrid, but dont understand how to attach my event with it. I am doing some thing like this wxPropertyGrid *pg = ...; wxPGId item = pg->Append(wxIntProperty("Height",400); pg->SetPropertyEditor(item, wxPGEditor_TextCtrlAndButton); now all I want is click...
- Wed May 14, 2008 4:08 pm
- Forum: C++ Development
- Topic: how to display a button in grid ?
- Replies: 3
- Views: 1448
- Tue May 13, 2008 6:48 pm
- Forum: C++ Development
- Topic: wxTreeCtrl with the style wxTR_MULTIPLE, missing events
- Replies: 1
- Views: 734
I fixed that problem by using on mouse left button up event. There was nothing else which gets notified if you select and unselect the same item (using CTRL key). I did something like this tree->Connect(wxEVT_LEFT_UP, wxMouseEventHandler(TreeView::OnMouseUp), NULL, this); then void TreeView::OnMouse...
- Tue May 13, 2008 6:42 pm
- Forum: C++ Development
- Topic: problem in event handler
- Replies: 5
- Views: 1315
problem in event handler
Hi. I am trying to use static event handler for my control but not getting any where(dynamic works fine though). This is how I am doing it class MyClass : public wxEvtHandler { public: ... enum {ID_RB0, ID_RB1}; MyClass(wxWindow* parent) void CreateControl(); void OnRB0(wxCommandEvent&); void On...
- Fri Apr 25, 2008 4:50 pm
- Forum: C++ Development
- Topic: wxTimer don't refresh
- Replies: 1
- Views: 825
- Fri Apr 25, 2008 4:47 pm
- Forum: C++ Development
- Topic: using wxConfigFile
- Replies: 8
- Views: 2165
using wxConfigFile
Hi. Iam using wxConfigFile to save application settings. But every time the "MyApp.ini" file is created in C:\Documents and Settings\CURRENT_USER directory. Is there any way to change its location, something like in "C:\Settings" etc. I am doing some thing like this (please ignor...
- Thu Apr 24, 2008 5:26 pm
- Forum: C++ Development
- Topic: using xpm's
- Replies: 1
- Views: 806
- Thu Apr 24, 2008 5:20 pm
- Forum: C++ Development
- Topic: using xpm's
- Replies: 1
- Views: 806
using xpm's
hi, I am trying to create bitmap from an xpm file, and not getting any where. This is what I am doing #include "mydir/xpmdata/cursor.xpm" void MyFrame::CreateControls() { wxBitmap cursor(cursor_xpm, wxBITMAP_TYPE_XPM); } but doing so does not creats the bitmap and keeps on giving me error ...
- Wed Apr 16, 2008 10:11 am
- Forum: C++ Development
- Topic: wxObject concept
- Replies: 3
- Views: 1090
- Tue Apr 15, 2008 6:16 pm
- Forum: C++ Development
- Topic: wxObject concept
- Replies: 3
- Views: 1090
wxObject concept
Hi, just wondering if I derive a class from wxObject , and then new it, will this be automatically deleted when my frame is deleted ??? I mean some thing like this class MyObj : public wxObject { public: int x; Data* myData; } then somewhere in a frame i do void MyFrame::MyFrameFunc(){ MyObj* obj = ...
- Tue Apr 08, 2008 8:32 am
- Forum: C++ Development
- Topic: Label on bitmapButton
- Replies: 5
- Views: 1514
- Mon Apr 07, 2008 10:38 pm
- Forum: C++ Development
- Topic: Label on bitmapButton
- Replies: 5
- Views: 1514
Label on bitmapButton
Hi. Is it possible to have a label on bitmap button as well as bitmap. I am trying but only getting bitmap and no label. I am doing some thing like this... wxBitmap* bmpButton = new wxBitmapButton(myframe, -1, buttonBMP, wxPoint(-1,-1), wxSize(-1,-1), wxBU_RIGHT); bmpButton->SetLabel("MyButton&...
- Tue Mar 18, 2008 9:48 am
- Forum: C++ Development
- Topic: event handler
- Replies: 1
- Views: 720
event handler
Hi, I am trying to attach my fun with a menu. I am doing some thing like this in xp, Visual Studio 2005 //this is global function(not member of any class) void myFunc() { int x = 0; } then in void MyFrame::createcontrols() { wxMenu* menu = new wxMenu; menu->Append(1100, "MyMenu"); menu->Co...
- Fri Mar 14, 2008 10:28 am
- Forum: C++ Development
- Topic: printf not working in wx
- Replies: 4
- Views: 2275
printf not working in wx
Hi. I am not sure if its wx related.
I am trying to use printf("myfar %i",myvar); in a sample wx project but nothing appears in output window, any hints
PS: cout<< does not work either
Thanks
I am trying to use printf("myfar %i",myvar); in a sample wx project but nothing appears in output window, any hints
PS: cout<< does not work either
Thanks
- Wed Feb 27, 2008 6:20 pm
- Forum: C++ Development
- Topic: Using Passing wx events from winProc()
- Replies: 1
- Views: 1155
Using Passing wx events from winProc()
I want to pass events from within WndProc of my Win32 application to wx. I am trying to some thing like this, but dont know about pros or cons. I am not an expert, so If any one know a better way please let me know as well. Any help will be greatly appreciated. Cheers This is what I am doing. class ...