Previous Attempts :
1. AutoComplete : Cannot create Multi-Coloumn Suggestion.
2. Panel with info with Raise() - Stays behide wxScrolledWindow. Without wxScrolledWindow Works.
3. wxListCtrl, wxGrid and other widgets : With wxScrolledWindow Crashes, Without wxScrolledwindow works.
Now Current Attempt :
4. Create wxFrame with Style : wxFRAME_TOOL_WINDOW|wxSTAY_ON_TOP - VBOX with button - On Focus Show Frame - on click set button info. - On Focus Out Hide Frame.
Code: Select all
#ifndef MYFRAME_H
#define MYFRAME_H
#include<wx/frame.h>
#include<wx/sizer.h>
#include<wx/button.h>
#include<wx/textctrl.h>
#include<wx/panel.h>
class MyFrame:public wxFrame{
public:
MyFrame();
private:
wxPanel *panel;
wxFrame *list;
wxBoxSizer *vbox;
wxButton *btn;
wxTextCtrl *txt;
wxRect rect;
int flag=0,flag1=0;
void ChildFocus(wxChildFocusEvent &event);
void OnFocus(wxFocusEvent &event);
void Suggestion();
void OnFocusOut(wxFocusEvent &event);
void HideSuggestion();
void ShowList();
void FrameFocus(wxFocusEvent &event);
};
#endif
1. If could solve ChildFocusEvent Problem, It will worth my days of hard work.
2. If You have another logic or suggestion your well come.