Search found 54 matches

by mxoliveira73
Thu May 23, 2019 3:28 am
Forum: C++ Development
Topic: Event react change variable
Replies: 2
Views: 131

Event react change variable

is it possible create events that reacts to change of variable int? Problem: I have other part of program, that change numbers of one variable "int num". Can I create one event that react to this change? For example, if int num = 1, position of StaticText1 is 10,10; if int num =2, position of Static...
by mxoliveira73
Tue May 21, 2019 12:57 am
Forum: C++ Development
Topic: How to acces property of object in function outside of the Frame?
Replies: 6
Views: 269

How to acces property of object in function outside of the Frame?

How to acces property of object in function outside of the Frame? class MyFrame: public wxFrame { public: MyFrame(wxWindow* parent,wxWindowID id = -1); virtual ~MyFrame(); private: //(*Handlers(MyFrame) //*) //(*Identifiers(MyFrame) static const long ID_SCROLLEDWINDOW1; //*) //(*Declarations(MyFram...
by mxoliveira73
Mon May 20, 2019 1:11 am
Forum: C++ Development
Topic: Transform object private in public - WxSmith
Replies: 5
Views: 227

Re: Transform object private in public - WxSmith

Yes, WxSmith allows that I create my methods and class... it's easy, but, in the specific case, I need just it, transform, adapt, a object private in public, created by WxSmith.... thanks for your help, I really apreciatte... I'm trying.. it's difficult....
by mxoliveira73
Mon May 20, 2019 12:23 am
Forum: C++ Development
Topic: Transform object private in public - WxSmith
Replies: 5
Views: 227

Re: Transform class private in public - WxSmith

I would mean, say, object. is it possible transform a object private in public - when it is create in WxSmith?
by mxoliveira73
Sun May 19, 2019 11:56 pm
Forum: C++ Development
Topic: Transform object private in public - WxSmith
Replies: 5
Views: 227

Transform object private in public - WxSmith

When we create a object (button for example), this is private. Is it possible trasform it in a public object? If it was create in WxSmith?
by mxoliveira73
Sun May 19, 2019 4:37 pm
Forum: C++ Development
Topic: I need modify a property in other window
Replies: 9
Views: 297

Re: I need modify a property in other window

My event that change variable it's not a WxWidgets event
by mxoliveira73
Sun May 19, 2019 4:27 pm
Forum: C++ Development
Topic: I need modify a property in other window
Replies: 9
Views: 297

Re: I need modify a property in other window

This is my problem: I need change a property of a wx/class. But, the key , the order to change it's not a event Wxwidgets. It will come from somewhere( int in other file .cpp). I could do that: StaticText1->Setlabel(int a);// out of event function, but it's generate a error: StaticText1 it's not dec...
by mxoliveira73
Sun May 19, 2019 3:44 pm
Forum: C++ Development
Topic: I need modify a property in other window
Replies: 9
Views: 297

Re: I need modify a property in other window

I'm creating an simple audio editor. There is a scrolledWindow in mainFrame. When the audio is in, for example, 20 seconds, it's necessary load other part of wxScrolledWindow. Then, i create a variable; when audio is in 20 seconds, this varible it will be: int a = 15; then, ScrolledWindow1->Scroll(a...
by mxoliveira73
Sun May 19, 2019 2:25 pm
Forum: C++ Development
Topic: I need modify a property in other window
Replies: 9
Views: 297

I need modify a property in other window

In file my.cpp one variable is set;
In file main.cpp there are class wxwidgets, frame, wxStaticText etc...

When a variable in my.cpp change, change label in wxStatictext(in main.cpp)

Problem: There are not event happen in main.cpp. The order is from my.cpp;
by mxoliveira73
Sun May 19, 2019 10:47 am
Forum: C++ Development
Topic: Set position scroll bar
Replies: 2
Views: 149

Re: Set position scroll bar

Big thanks, doublemax. It works fine....
by mxoliveira73
Sat May 18, 2019 11:44 pm
Forum: Compiler / Linking / IDE Related
Topic: How adapt wxScrolledWindow in WxSmith?
Replies: 7
Views: 352

Re: How adapt wxScrolledWindow in WxSmith?

ONEEYEMAN, I'm sorry . The mistake was all mine. I really appreciate your help.
by mxoliveira73
Sat May 18, 2019 11:30 pm
Forum: C++ Development
Topic: Set position scroll bar
Replies: 2
Views: 149

Set position scroll bar

First of all I thank all the users of the forum. They have helped me a lot. I admit, I'm pretty much a beginner in Wxwidgets. I ask for your help once more. I have the following doubt: when clicking the button 1 the scroll bar goes to position 1, when clicking the button 2 the scroll bar goes to pos...
by mxoliveira73
Fri May 17, 2019 5:49 pm
Forum: Compiler / Linking / IDE Related
Topic: How adapt wxScrolledWindow in WxSmith?
Replies: 7
Views: 352

Re: How adapt wxScrolledWindow in WxSmith?

I forget this: int pixelsPerUnixX = 10; int pixelsPerUnixY = 10; int noUnitsX = 1000; int noUnitsY = 1000; scrolledWindow->SetScrollbars(pixelsPerUnitX, pixelsPerUnitY, noUnitsX, noUnitsY); .......................................... scrolledWindow->SetScrollbars(pixelsPerUnitX, pixelsPerUnitY, noUni...
by mxoliveira73
Fri May 17, 2019 5:48 pm
Forum: Compiler / Linking / IDE Related
Topic: How adapt wxScrolledWindow in WxSmith?
Replies: 7
Views: 352

Re: How adapt wxScrolledWindow in WxSmith?

Big thanks, Oneeyeman... it's necessary....
by mxoliveira73
Fri May 17, 2019 3:56 pm
Forum: Compiler / Linking / IDE Related
Topic: How adapt wxScrolledWindow in WxSmith?
Replies: 7
Views: 352

Re: How adapt wxScrolledWindow in WxSmith?

My original interest was just to create in wxSmith. So I tried to adapt the example. Than, forget the example... How can I create a funcional Scrolled window in WxSmith? 1- drag a scrolledWindow to frame, set HSCROLL and add one button inside it, for example... ok, it seems so simple: ScrolledWindow...