is it possible change the border-color of a wxStaticText?
text = new wxStaticText(this, wxID_ANY, _("abcd"), wxPoint(100,100), wxSize(50,50), wxSIMPLE_BORDER);
I search in documentation but don't have success...
Search found 56 matches
- Fri Feb 21, 2020 11:14 pm
- Forum: C++ Development
- Topic: border-color wxStaticText
- Replies: 3
- Views: 801
- Thu Feb 20, 2020 2:47 am
- Forum: C++ Development
- Topic: One object in two classes
- Replies: 2
- Views: 558
One object in two classes
Someone coul'd make a quick favor... One simple and basic example that how one object can be access in two classes... For example, btn_1 was cretae in class Myframe; But, one function in class Birds can change btn_1... Something like this.... class MyFrame: public wxFrame { public: MyFrame(const wxS...
- Tue Jul 23, 2019 10:39 pm
- Forum: C++ Development
- Topic: How to allow only one instance of my C++ and WxWidgets application?
- Replies: 2
- Views: 650
Re: How to allow only one instance of my C++ and WxWidgets application?
There is simple solution in WxWidgets.... it works fine.... wonderfull. thanks ONEEYEMAN...
- Tue Jul 23, 2019 9:34 pm
- Forum: C++ Development
- Topic: How to allow only one instance of my C++ and WxWidgets application?
- Replies: 2
- Views: 650
How to allow only one instance of my C++ and WxWidgets application?
How is the way more easilly to allow only one instance running? In other words: if app is running, disallow other instance when the user click in .exe... Wxwidgets have something to it? Or is solved in C++?
- Mon Jul 22, 2019 5:38 pm
- Forum: C++ Development
- Topic: Save and load data in txt file
- Replies: 5
- Views: 1251
Re: Save and load data in txt file
Big thanks, PB! One more time, big thanks for your help....
- Mon Jul 22, 2019 5:10 pm
- Forum: C++ Development
- Topic: Save and load data in txt file
- Replies: 5
- Views: 1251
Re: Save and load data in txt file
To save and load user settings, what do you recomend? I thought in save variables in a txt file and after load it. Is there a good idea? Or is there other way better? Directly: How is the better way to save and load user settings?
- Mon Jul 22, 2019 4:11 pm
- Forum: C++ Development
- Topic: Save and load data in txt file
- Replies: 5
- Views: 1251
Save and load data in txt file
I'm need write/save and after load data in a txt file. For example, I have 3 variables: int a = 3 - int b = 32 - int c = 25; First I write/save in a txt file; after, in other moment, I open, read and load this variables to my application. I'm looking for a simple example, tips or where can I search ...
- Thu Jul 04, 2019 1:51 am
- Forum: C++ Development
- Topic: wxEVT_LEFT_DOWN on menuBar
- Replies: 8
- Views: 1632
Re: wxEVT_LEFT_DOWN on menuBar
Amazing. It works fine in MS Windows the code of PB. Big big thanks, PB, evstevemd, deluge, doublemax... I'm almost finishing my app. Would be impossible whitout the help of you.... Really, this point it's level so high to me, only a bigginner. I'm styuding the code to underst it... thanks a lot... ...
- Wed Jul 03, 2019 4:15 pm
- Forum: C++ Development
- Topic: wxEVT_LEFT_DOWN on menuBar
- Replies: 8
- Views: 1632
Re: wxEVT_LEFT_DOWN on menuBar
Responding to evstevemd ask: what do you want to accomplish? R: Drag the menuBar and togheter the Frame. Create app whitout Title Bar; then, to move the frame in the screen, drag the menuBar whit the cursor mouse. Togheter drag Frame. It's possible, if the menuBar react to the Evt_LEFT_DOWN. But, it...
- Wed Jul 03, 2019 2:49 am
- Forum: C++ Development
- Topic: wxEVT_LEFT_DOWN on menuBar
- Replies: 8
- Views: 1632
wxEVT_LEFT_DOWN on menuBar
wxEVT_LEFT_DOWN doesn't work over a wxMenuBar?
Code: Select all
OnLeftDown(wxMouseEvent& event);
wxmenuBar* menuBar = new wxMenuBar();
menuBar->Bind(wxEVT_LEFT_DOWN,&MyFrame::OnLeftDown,this);
void MyFrame::OnLeftDown(wxMouseEvent& event)
{
// do something here
}
- Wed Jul 03, 2019 12:52 am
- Forum: C++ Development
- Topic: Resizing windows wxFrame
- Replies: 4
- Views: 826
Re: Resizing windows wxFrame
Oh, I think that I explain wrong my doubt. Follow the image bellow,
I need move frame that has no Windows title bar.
I have only a wxMenuBar.
I need drag menuBar whit the mouse, and togheter drag the frame, changing the position of app in the screen... it's difficult
I need move frame that has no Windows title bar.
I have only a wxMenuBar.
I need drag menuBar whit the mouse, and togheter drag the frame, changing the position of app in the screen... it's difficult
- Tue Jul 02, 2019 6:35 am
- Forum: C++ Development
- Topic: wxEVT_KEY_DOWN problem
- Replies: 2
- Views: 571
Re: wxEVT_KEY_DOWN problem
Oh, I'm ashamed for this question... In true, I explained wrong. I'd like an event for many objects, if I release key "l", button1 set background original color; if I release key "M", button2 set background color original color... etc.. because when I pressed this keys I turned i...
- Tue Jul 02, 2019 3:50 am
- Forum: C++ Development
- Topic: wxEVT_KEY_DOWN problem
- Replies: 2
- Views: 571
wxEVT_KEY_DOWN problem
Interesting, a simple code doesn't work. Trying a key down event... problem should be in Panel, but i don't understand what is.. whitout a panel works fine... void onKeyDown(wxKeyEvent& event); Panel->Connect(wxEVT_KEY_DOWN, wxKeyEventHandler(MyFrame::onKeyDown)); void MyFrame::onKeyDown(wxKeyEv...
- Thu Jun 27, 2019 1:29 am
- Forum: C++ Development
- Topic: Resizing windows wxFrame
- Replies: 4
- Views: 826
Resizing windows wxFrame
Is it possible on WxWidgets, resize the main window application, dragging with the cursor on border, and automatically resize all objects inside? Or maximize on the icon maximize windows and resize all objects? Other doubt, I'm setting style of framewhitout the windows borders, but the apliction sta...
- Tue Jun 25, 2019 9:37 pm
- Forum: C++ Development
- Topic: Color wxStaticLine
- Replies: 1
- Views: 463
Color wxStaticLine
How change colors in wxStaticLine? line1->SetBackgroundColour(wxColor(50,50,50)); line1->SetForegroundColour(wxColor(50,50,50)); ((wxWindow*)line1)->SetBackgroundColour(wxColor(200,50,50)); ((wxWindow*)line1)->SetForegroundColour(wxColor(200,50,50)); don't work...