User forums > General (but related to Code::Blocks)
show debugger tip under curser when ctrl key is pressed
ollydbg:
Is it possible to emulate a wxEVT_SCI_DWELLSTART event, and send it directly to the debugger plugin?
(I do not need the other plugin to receive this event in this situation)
thanks!
oBFusCATed:
Ollydbg: it will be ugly, if possible:)
There is a need for tooltip redesign, but I'm not sure what could be done to improve the current situation.
Probably the best solution is tooltip grouping...
ollydbg:
--- Quote from: oBFusCATed on January 05, 2011, 01:38:18 pm ---Ollydbg: it will be ugly, if possible:)
--- End quote ---
agreed. really ugly.
we need to consider a better way.
--- Quote ---There is a need for tooltip redesign, but I'm not sure what could be done to improve the current situation.
Probably the best solution is tooltip grouping...
--- End quote ---
tooltip grouping. you mean just stack the tip window one by one??
Currently, As I know, the tip windows is just a wxWindow, see
plugins\debuggergdb\gdb_tipwindow.cpp(trunk)
see:
--- Code: ---class GDBTipWindowView : public wxWindow
{
public:
GDBTipWindowView(wxWindow *parent);
// event handlers
void OnPaint(wxPaintEvent& event);
void OnMouseClick(wxMouseEvent& event);
void OnMouseMove(wxMouseEvent& event);
#if !wxUSE_POPUPWIN
void OnKillFocus(wxFocusEvent& event);
#endif // wxUSE_POPUPWIN
// calculate the client rect we need to display the text
void Adjust(const wxString& symbol, const wxString& typ, const wxString& addr, const wxString& contents, wxCoord maxLength);
private:
wxSize GetTextSize(wxArrayString& array, const wxString& text, wxCoord maxLength, int indentationAfterFirstLine = 0);
void PrintArray(wxDC& dc, wxPoint& pt, const wxArrayString& array);
wxString AdjustContents(const wxString& contents);
GDBTipWindow* m_parent;
wxCoord m_headerHeight;
wxString m_symbol;
wxString m_type;
wxString m_address;
wxString m_contents;
#if !wxUSE_POPUPWIN
long m_creationTime;
#endif // !wxUSE_POPUPWIN
DECLARE_EVENT_TABLE()
DECLARE_NO_COPY_CLASS(GDBTipWindowView)
};
--- End code ---
oBFusCATed:
By grouping I mean:
1. display all tooltips vertically in different windows
or
2. display all tooltips vertically in one window
Another option is to have tooltip manager which shows only one tooltip at a time.
And there are tooltip priorities, so the best priority wins.
Maybe this is the simpler solution.
ollydbg:
--- Quote from: oBFusCATed on January 05, 2011, 02:05:19 pm ---By grouping I mean:
1. display all tooltips vertically in different windows
or
2. display all tooltips vertically in one window
Another option is to have tooltip manager which shows only one tooltip at a time.
And there are tooltip priorities, so the best priority wins.
Maybe this is the simpler solution.
--- End quote ---
I would prefer only one window. and the idea tooltip manager is a good solution. Currently the tooltip from codecompletion and gdb will battle. (we have discussed this issue one years ago)
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version