Search found 54 matches

by mxoliveira73
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: 90

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...
by mxoliveira73
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: 90

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++?
by mxoliveira73
Mon Jul 22, 2019 5:38 pm
Forum: C++ Development
Topic: Save and load data in txt file
Replies: 5
Views: 118

Re: Save and load data in txt file

Big thanks, PB! One more time, big thanks for your help....
by mxoliveira73
Mon Jul 22, 2019 5:10 pm
Forum: C++ Development
Topic: Save and load data in txt file
Replies: 5
Views: 118

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?
by mxoliveira73
Mon Jul 22, 2019 4:11 pm
Forum: C++ Development
Topic: Save and load data in txt file
Replies: 5
Views: 118

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 ...
by mxoliveira73
Thu Jul 04, 2019 1:51 am
Forum: C++ Development
Topic: wxEVT_LEFT_DOWN on menuBar
Replies: 8
Views: 222

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... ...
by mxoliveira73
Wed Jul 03, 2019 4:15 pm
Forum: C++ Development
Topic: wxEVT_LEFT_DOWN on menuBar
Replies: 8
Views: 222

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...
by mxoliveira73
Wed Jul 03, 2019 2:49 am
Forum: C++ Development
Topic: wxEVT_LEFT_DOWN on menuBar
Replies: 8
Views: 222

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
}
by mxoliveira73
Wed Jul 03, 2019 12:52 am
Forum: C++ Development
Topic: Resizing windows wxFrame
Replies: 4
Views: 159

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
by mxoliveira73
Tue Jul 02, 2019 6:35 am
Forum: C++ Development
Topic: wxEVT_KEY_DOWN problem
Replies: 2
Views: 78

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 it other hover colors...
by mxoliveira73
Tue Jul 02, 2019 3:50 am
Forum: C++ Development
Topic: wxEVT_KEY_DOWN problem
Replies: 2
Views: 78

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(wxKeyEvent&...
by mxoliveira73
Thu Jun 27, 2019 1:29 am
Forum: C++ Development
Topic: Resizing windows wxFrame
Replies: 4
Views: 159

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...
by mxoliveira73
Tue Jun 25, 2019 9:37 pm
Forum: C++ Development
Topic: Color wxStaticLine
Replies: 1
Views: 84

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...
by mxoliveira73
Sun Jun 23, 2019 12:48 pm
Forum: C++ Development
Topic: Transparency PNG
Replies: 5
Views: 163

Re: Transparency PNG

One more time, big big thanks, New Pagodi!!!!
by mxoliveira73
Sat Jun 22, 2019 1:35 am
Forum: C++ Development
Topic: Transparency PNG
Replies: 5
Views: 163

Transparency PNG

I'm trying create a image png with transparency. Very basic... But.. in the example bellow, i created a wxPanel black, and over it there are a image PNG with transparency. In true, part white in the image is a PNG transparent, it's no white... I don't understand what is wrong. It's so basic.... Coul...