Search found 74 matches

by Maeglix
Thu Jul 18, 2019 12:27 pm
Forum: C++ Development
Topic: Making some information popups
Replies: 8
Views: 206

Re: Making some information popups

I'm using wxWidgets 3.1.2
How do i get the two others infos ?

I am currently tying to work with the mini-frames even if i have this task bar problem (most of my users don't seem to have it).
by Maeglix
Wed Jul 17, 2019 7:56 am
Forum: C++ Development
Topic: Making some information popups
Replies: 8
Views: 206

Re: Making some information popups

Yeah even when running the sample, i see the miniframe in the task-bar.
I'm using wxWidgets 3.1.2
by Maeglix
Wed Jul 17, 2019 7:27 am
Forum: C++ Development
Topic: Making some information popups
Replies: 8
Views: 206

Re: Making some information popups

Well i'm doing that: MyClass * newLabel = new MyClass(this); //wxPopupWindow(parent, wxBORDER_SUNKEN) wxPoint coords = ClientToScreen(wxPoint(event.GetX(), event.GetY())); newLabel->Move(coords); //make some changement on coords and then call to Position() newLabel->Show(); And i have multiple popup...
by Maeglix
Wed Jul 17, 2019 6:32 am
Forum: C++ Development
Topic: Making some information popups
Replies: 8
Views: 206

Making some information popups

Hello, In my app i have an area on which i draw some elements. When the user clicks on this area, it selects the nearest element and open a popup with some information about the element. I made a class derived from wxPopupWindow to implement the popup behavior. First question: Is wxPopupWindow a goo...
by Maeglix
Fri Jun 21, 2019 6:28 am
Forum: Platform Related Issues
Topic: wxEVT_MOVE_END equivalent for GTK
Replies: 3
Views: 250

Re: wxEVT_MOVE_END equivalent for GTK

Thanks ! It worked.
by Maeglix
Wed Jun 19, 2019 1:49 pm
Forum: Platform Related Issues
Topic: wxEVT_MOVE_END equivalent for GTK
Replies: 3
Views: 250

wxEVT_MOVE_END equivalent for GTK

Hello every one, In my app, i need to update a list (wxListCtrl) when the main app window is re-sized (either when the user re-sizes it manually or with the maximize / minimize button). The thing is I don't need and don't want to update it for each pixel of the re-size, so I can't just catch the siz...
by Maeglix
Tue Jul 11, 2017 7:28 am
Forum: C++ Development
Topic: Expanding a window in same time of the contained wxTreeCtrl
Replies: 24
Views: 1837

Re: Expanding a window in same time of the contained wxTreeCtrl

Ok thank you ! My bad for not telling it sooner.
by Maeglix
Mon Jul 10, 2017 6:54 am
Forum: C++ Development
Topic: Expanding a window in same time of the contained wxTreeCtrl
Replies: 24
Views: 1837

Re: Expanding a window in same time of the contained wxTreeCtrl

I extracted from my code the part with the tree to allow you to compile and test. It is stills not working for me. I am on Red hat 7.2.

PS: As my SlcAttrPopup.cc was not accepted, i renamed it into a .txt.
by Maeglix
Mon Jul 10, 2017 5:59 am
Forum: C++ Development
Topic: Expanding a window in same time of the contained wxTreeCtrl
Replies: 24
Views: 1837

Re: Expanding a window in same time of the contained wxTreeCtrl

doubleMax, i am currently trying again your code. Did you test it on windows or on a Linux platform ?
by Maeglix
Fri Jul 07, 2017 1:51 pm
Forum: C++ Development
Topic: Expanding a window in same time of the contained wxTreeCtrl
Replies: 24
Views: 1837

Re: Expanding a window in same time of the contained wxTreeCtrl

Yeah but that's exactly what i don't know how to do. How do i get the size needed by the tree after a collapse since GetBestSize() always return the same thing even after collapse / expand items.
by Maeglix
Fri Jul 07, 2017 1:09 pm
Forum: C++ Development
Topic: Expanding a window in same time of the contained wxTreeCtrl
Replies: 24
Views: 1837

Re: Expanding a window in same time of the contained wxTreeCtrl

Set***Size(biggerSize);
Refresh
This seems to works. It makes the window grows when i expand an item. But how do i make the window contract when i collapse item now ?
by Maeglix
Fri Jul 07, 2017 12:14 pm
Forum: C++ Development
Topic: Expanding a window in same time of the contained wxTreeCtrl
Replies: 24
Views: 1837

Re: Expanding a window in same time of the contained wxTreeCtrl

Yeah it could work. But for that i need to get the size needed by the tree. The aim is that the window grows when you expand an item to be able to display all the items without needing scrollbars.
by Maeglix
Fri Jul 07, 2017 11:58 am
Forum: C++ Development
Topic: Expanding a window in same time of the contained wxTreeCtrl
Replies: 24
Views: 1837

Re: Expanding a window in same time of the contained wxTreeCtrl

As i can't give you the full code because it is a big project, i tried to compile the minimal.cpp sample to see if this one was working. It seems not to. I took screenshoot to show the result: http://image.noelshack.com/minis/2017/27/5/1499428681-case1.png http://image.noelshack.com/minis/2017/27/5/...
by Maeglix
Fri Jul 07, 2017 8:32 am
Forum: C++ Development
Topic: Expanding a window in same time of the contained wxTreeCtrl
Replies: 24
Views: 1837

Re: Expanding a window in same time of the contained wxTreeCtrl

Hum it doesn't work for me. I only see the scrollbars appear and disappear. I only did one tree as i no needed the other controls. I read my code like 10 times to check if i didn't missed anything and it seems not. Here my code just in case: SlcAttrPopup::SlcAttrPopup(wxWindow* _parent) : Popup(_par...
by Maeglix
Fri Jul 07, 2017 7:42 am
Forum: C++ Development
Topic: Expanding a window in same time of the contained wxTreeCtrl
Replies: 24
Views: 1837

Re: Expanding a window in same time of the contained wxTreeCtrl

Damn, so there is no way to make the tree fit the labels contained ?

If not that's painful but not really limiting. The tree is still usable with a constant size using the scrollbars. It would have been just more comfortable for the users.