Search found 86 matches

by Mungo1981
Thu Feb 21, 2019 6:07 pm
Forum: C++ Development
Topic: Short Question about customer Dialogs. How to get Dialog display
Replies: 3
Views: 452

Re: Short Question about customer Dialogs. How to get Dialog display

Ok,
I'm stupid it's:

Code: Select all

EditSequenceSettings *dlg = new EditSequenceSettings(this);
    dlg->ShowModal();
by Mungo1981
Thu Feb 21, 2019 5:51 pm
Forum: C++ Development
Topic: Short Question about customer Dialogs. How to get Dialog display
Replies: 3
Views: 452

Short Question about customer Dialogs. How to get Dialog display

Dear Community,
I need a short advice:
How can I get a customer Dialog show.
And in addition but not so early needed:
Why can I access the Data which is select in this Dialog.
I need only a starting point.

Mungo 1981
by Mungo1981
Thu Feb 21, 2019 1:07 pm
Forum: C++ Development
Topic: A Problem call a Lyaout of a BoxSizer out of a wxPanel which is insertet to it.
Replies: 9
Views: 694

Re: A Problem call a Lyaout of a BoxSizer out of a wxPanel which is insertet to it.

Ok, I think: Yes this is the Problem I have to solve. But my Question is: How can I have this pointer in the Class of Panel out of the Class of my MainWindow. And I have try to solve this by using the Variable as which my MainWindow would be in the Main() Funktion. And this is a big Problem. All Pro...
by Mungo1981
Wed Feb 20, 2019 6:40 pm
Forum: C++ Development
Topic: A Problem call a Lyaout of a BoxSizer out of a wxPanel which is insertet to it.
Replies: 9
Views: 694

Re: A Problem call a Lyaout of a BoxSizer out of a wxPanel which is insertet to it.

Sorry,
I can handle it by the paint Method of the MainWindow.
Something like:

Code: Select all

void Test100Frame::OnPaint(wxPaintEvent& event)
{
    BoxSizer2->Layout();
}
Sorry I should try to solve my Problems by me First.
by Mungo1981
Wed Feb 20, 2019 6:12 pm
Forum: C++ Development
Topic: A Problem call a Lyaout of a BoxSizer out of a wxPanel which is insertet to it.
Replies: 9
Views: 694

Re: A Problem call a Lyaout of a BoxSizer out of a wxPanel which is insertet to it.

Ok,
Yes I should call ->Layout when I have deleted this single Panel.
But before ->Layout -
Something like x->Layout.
- I have to know from where I get this x.
So I think I must call ->Layout from the MainWindow class,
to get there >BoxSizer< Object
or I'm wrong ???
by Mungo1981
Wed Feb 20, 2019 5:52 pm
Forum: C++ Development
Topic: A Problem call a Lyaout of a BoxSizer out of a wxPanel which is insertet to it.
Replies: 9
Views: 694

A Problem call a Lyaout of a BoxSizer out of a wxPanel which is insertet to it.

Dear Love Community: I have the following Problem. I have created my programmer designed wxPanel with wxSmith. And I have add a Button who will kill this Panel - his owner - by calling ->Destroy(); But I have this inserted in a BoxSizer. And there a amount of all this wxPanels - which are all create...
by Mungo1981
Wed Feb 20, 2019 5:43 pm
Forum: C++ Development
Topic: Silly Question on Add a Frame to a BoxSizer
Replies: 13
Views: 1046

Re: Silly Question on Add a Frame to a BoxSizer

Ok,
This is the easiest solution.
Check the "Is Member" Attribute in the Element / Objekt Browser.
=D> #-o =D>
by Mungo1981
Mon Feb 18, 2019 7:40 pm
Forum: C++ Development
Topic: Silly Question on Add a Frame to a BoxSizer
Replies: 13
Views: 1046

Re: Silly Question on Add a Frame to a BoxSizer

Ok, I have found the solution. It cost me a lot of brainwash. But here is the Solution. :D :shock: :o :shock: :D 1. First you can not have access of the Variables which Code::Blocks WxSmith at to your code. In specially when this Variables not listing in the Header of your Main-Window. 1a. So it mus...
by Mungo1981
Mon Feb 18, 2019 6:01 pm
Forum: C++ Development
Topic: Silly Question on Add a Frame to a BoxSizer
Replies: 13
Views: 1046

Re: Silly Question on Add a Frame to a BoxSizer

Ok,
I think I have Luck
I Can make a Panel inside my MainWindow.
And I give them a BoxSizer which would be get as global Class Variable.
But this code Kills my Programm:

Code: Select all

MyPanel* mypanelled = new MyPanel(Panel3);
    BoxSizer2->Add(mypanelled);
    BoxSizer2->Layout();
by Mungo1981
Mon Feb 18, 2019 3:37 pm
Forum: C++ Development
Topic: Silly Question on Add a Frame to a BoxSizer
Replies: 13
Views: 1046

Re: Silly Question on Add a Frame to a BoxSizer

Ok, a Screnenshot would be better too, but firstly I will show you the Point at which my Problem could be. In the attachment I have the File in which the Code of my MainWindow lives. Test100Main.cpp You can see that wxSmith would create the BoxSizer1 in the Constructor of this MainWindow. But to at ...
by Mungo1981
Sun Feb 17, 2019 4:55 pm
Forum: C++ Development
Topic: Silly Question on Add a Frame to a BoxSizer
Replies: 13
Views: 1046

Re: Silly Question on Add a Frame to a BoxSizer

Ok, I have finally understand how to put all I need for a single Track in to one Panel. And how to put this Panel in another Panel of the MainWindow. But it is the great Problem: How to put a increasing and decresanding Amout of this Panels in this MainWindow. It would be fine when anybody can give ...
by Mungo1981
Sun Feb 17, 2019 2:55 pm
Forum: C++ Development
Topic: Silly Question on Add a Frame to a BoxSizer
Replies: 13
Views: 1046

Re: Silly Question on Add a Frame to a BoxSizer

Ok,
firstly I have to change wxFrame with wxPannel.
So new I can Add the new Pannel to the MainWindow.
So I can click the Button and I add a small Block.
But not the Content I have program to this new Pannel.
by Mungo1981
Sun Feb 17, 2019 2:09 pm
Forum: C++ Development
Topic: Silly Question on Add a Frame to a BoxSizer
Replies: 13
Views: 1046

Re: Silly Question on Add a Frame to a BoxSizer

Ok, 1. I have program the Main Window. 1a. There exactly like in the WxSmith Tutorial a BoxSizer there a Panel and there a BoxSizer. 1b. There a Notebook with two Pages. "Sequences" and "Instrument" tittles. 2. There on the first Page is a BoxSizer which contains a Button. 3. I h...
by Mungo1981
Sun Feb 17, 2019 1:58 pm
Forum: C++ Development
Topic: Silly Question on Add a Frame to a BoxSizer
Replies: 13
Views: 1046

Silly Question on Add a Frame to a BoxSizer

Dear Community, I have the following Problem. I use WxSmith on C++ on Code::Blocks. And I have drawn a nicely Frame, And a MainWindow. So I have put a wxButton in a BoxSizer in this MainWindow. And new I will program that by Click on this Button, a new Version of the Frame, will put in this BoxSizer...