Search found 91 matches

by Sickboy
Wed Sep 21, 2005 10:31 am
Forum: C++ Development
Topic: Memory leak detection in dlls
Replies: 3
Views: 894

As i've already mentioned.
In normal applications these ways works.
But i thought there would be any problems when using dlls.

Finally another developer discovered the problem. Using macros, the debugger can't find any codeline for the memleak.

Thank you anyway.
by Sickboy
Tue Sep 20, 2005 9:34 am
Forum: C++ Development
Topic: How to use wxGrid in a document\view framework
Replies: 2
Views: 1014

Generally the structure is the same. You create the grid inside the wxView constructor and give the wxFrame pointer as parent to the grid. The datas you load into the document on the event OnOpenDocument. At the event OnNewDocument you should initialize your data structure. Take a look at the docVie...
by Sickboy
Mon Sep 19, 2005 4:21 pm
Forum: C++ Development
Topic: Memory leak detection in dlls
Replies: 3
Views: 894

Memory leak detection in dlls

anyone knows a way to detect memory leaks in a dll ? i've tried these ways, but never get a result using a dll :( In normal applications these ways works. #ifdef __WXMSW__ #include <wx/msw/msvcrt.h> #endif From http://www.litwindow.com/Knowhow/wxHowto/wxhowto.html 1. Include the following statements...
by Sickboy
Mon Sep 12, 2005 1:15 pm
Forum: C++ Development
Topic: How can i get wxToolbar control position
Replies: 5
Views: 1085

Thanks for your help Jorg. I found another way. Maybe simpler than yours... mToolbar->AddTool(ID_TEST, wxBitmap(Run_Test), wxT("Run")); mToolbar->Realize(); m_TestEndPos = mToolbar->GetBestSize(); mToolbar->AddTool(ID_TEST2, wxBitmap(Run_Test2), wxT("Last")); mToolbar->AddTool(ID_TEST3, wxBitmap(Run...
by Sickboy
Mon Sep 12, 2005 11:52 am
Forum: C++ Development
Topic: Anyone can explain me drag&drop with wxDataObject ?
Replies: 1
Views: 634

Anyone can explain me drag&drop with wxDataObject ?

I try to drag&drop an object of my class for a while, but stuck here: http://forums.wxwidgets.org/viewtopic.php?t=3938&highlight= I've tried to simplify my problem using a wxString to drag&drop with a wxDataObject but again without success :( this is the code: ReactionDnDObject::ReactionDnDObject(vo...
by Sickboy
Fri Sep 09, 2005 2:50 pm
Forum: C++ Development
Topic: what is the method draw picture on per cell on wxGrid?
Replies: 2
Views: 613

there's no direct way to paint a picture to a grid cell.
Create your own wxGridCellRenderer and add some wxDC functions to the OnPaint method.
What exactly you're tryin to do ?
by Sickboy
Fri Sep 09, 2005 2:44 pm
Forum: C++ Development
Topic: How can i get wxToolbar control position
Replies: 5
Views: 1085

id is this just the Event ID of the Toolbar button which i create in this way: mToolbar->AddControl(new wxButton(mToolbar, ID_TEST, wxT("TestPopup"), wxDefaultPosition, wxSize(60, 40), wxNO_BORDER)); Don't ask me why i get a pointer to the id ;) I get the correct id and i can access the toolbar but ...
by Sickboy
Fri Sep 09, 2005 2:21 pm
Forum: C++ Development
Topic: How can i get wxToolbar control position
Replies: 5
Views: 1085

How can i get wxToolbar control position

I've tried the following: int a = mToolbar->GetToolPos(*id); wxControl* ctrl = mToolbar->FindControl(a); wxPoint b= ctrl->GetPosition(); wxLogDebug(wxT("PosX%iY:%i"),b.x,b.y); But it stops with an unhandled exception in the wxWindow / GetPosition() method in the DoGetPosition(&w, &h); call. Any othe...
by Sickboy
Fri Sep 09, 2005 11:29 am
Forum: C++ Development
Topic: Problem with wxTreeMultiCtrl and Sizer
Replies: 1
Views: 491

Problem with wxTreeMultiCtrl and Sizer

Following code works fine in a dialog: wxDialog dlg(this,-1,wxT("dlgTest"),wxDefaultPosition,wxDefaultSize); wxStaticBox *pBox = new wxStaticBox(&dlg,-1,wxT("StaticBox"),wxPoint(10,10),wxSize(200,300)); wxStaticBoxSizer* pStatic = new wxStaticBoxSizer (pBox,wxHORIZONTAL); wxButton* nB = new wxButton...
by Sickboy
Tue Sep 06, 2005 8:16 am
Forum: C++ Development
Topic: Curso postion and styling a word within a wxGrid cell
Replies: 1
Views: 447

There's no direct way afaik. But you can write your own GridCellRenderer. In this renderer you can have a look at the received string and work with something like html tags. eg. This is a <b>test</b> In this case you would first draw a staticText containing "This is" and behind that the modified <b>...
by Sickboy
Mon Sep 05, 2005 2:16 pm
Forum: C++ Development
Topic: wxDataObject drag & drop problem
Replies: 0
Views: 480

wxDataObject drag & drop problem

I've got following wxDataObject derived class: #include <stdwx.h> #include ".\DragDropObject.h" ReactionDnDObject::ReactionDnDObject(void* buf, size_t len) { m_Reaction = (Reaction*)buf; m_ObjLen = sizeof(*m_Reaction); m_DataInputFormat[0].SetId(wxT("Reaction")); m_DataOutputFormat[0].SetId(wxT("Rea...
by Sickboy
Mon Aug 29, 2005 9:36 am
Forum: C++ Development
Topic: Drag cell on wxGrid
Replies: 2
Views: 820

There is no direct way to drag cells in wxGrid. I've started to write a "drag rows" functionality for the full row select option. But currently it isn't complete. If u'll try to write it take a look how to get mouse events like begin_drag, left_down, left_up, ... from my Tooltip example: http://www....
by Sickboy
Mon Aug 29, 2005 9:07 am
Forum: C++ Development
Topic: DrawDragRect?
Replies: 2
Views: 634

This method exist... take a look in the dragimage example.
by Sickboy
Mon Aug 29, 2005 9:05 am
Forum: C++ Development
Topic: StretchBlt - what function in widgets ???
Replies: 6
Views: 1729

Theres no stretch blit function, but you can stretch your bitmap if u use it as image :wink: Here an example from the documentation: // get the bitmap from somewhere wxBitmap bmp = ...; // rescale it to have size of 32*32 if ( bmp.GetWidth() != 32 || bmp.GetHeight() != 32 ) { wxImage image = bmp.Con...
by Sickboy
Thu Jul 21, 2005 2:17 pm
Forum: C++ Development
Topic: How to add bitmaps to wxMenu ?
Replies: 3
Views: 712

oh yes :)