Search found 19 matches

by thoray
Mon Dec 10, 2018 4:12 pm
Forum: C++ Development
Topic: wxDropTarget GetData() inside OnDragOver() ?
Replies: 2
Views: 438

Re: wxDropTarget GetData() inside OnDragOver() ?

Yes that should work. Thanks.
by thoray
Thu Nov 15, 2018 10:38 am
Forum: C++ Development
Topic: wxDropTarget GetData() inside OnDragOver() ?
Replies: 2
Views: 438

wxDropTarget GetData() inside OnDragOver() ?

GetData() function for wxDropTarget only works inside its OnData() function but is there way to get access to the dragged data inside OnDragOver() function? I'd need this to visualize the drag result to the user as the cursor is moving over the canvas before left mouse button is actually released. A...
by thoray
Fri Jul 20, 2018 3:41 pm
Forum: C++ Development
Topic: Better way to refresh ListCtrl/ListView items
Replies: 9
Views: 1300

Re: Better way to refresh ListCtrl/ListView items

If the number of items stays constant you could instead do this: for (int 0=;i<N_items;i++) { m_list->SetItem(i,col0_id,newval1); m_list->SetItem(i,col1_id,newval2); } Or if only a few items change you could run the above code for only the changed ids. I haven't tried refreshes yet when removing or ...
by thoray
Wed Jul 18, 2018 6:33 pm
Forum: C++ Development
Topic: User sizable panel?
Replies: 8
Views: 745

Re: User sizable panel?

I made a minimal test app to show a case for user sizable control using wxSashWindow. User can drag the middle horizontal slider to show more or less of the list. This way user can free more space to controls after the list or to see more of the list. If this was implemented with a wxSplitterWindow ...
by thoray
Wed Jul 18, 2018 3:30 pm
Forum: C++ Development
Topic: User sizable panel?
Replies: 8
Views: 745

Re: User sizable panel?

Hi, Can't you use an actual wxPanel or (non-modal) wxDialog? What is the problem with them? Did you try? Thank you. I did try putting the control inside a wxWindow but all that gave me was e.g. ability to turn on drawing of borders, but not sizing by border dragging. Using a free standing wxDialog ...
by thoray
Wed Jul 18, 2018 2:01 pm
Forum: C++ Development
Topic: User sizable panel?
Replies: 8
Views: 745

Re: User sizable panel?

I'm referring to resize by dragging a border/corner of the window. And in a situation where the window is not a "top level" window but a container for controls, like wxPanel or wxWindow. I guess the answer to the question is then that it not be done unless using wxAUI or wxMDI. Besides sizable panel...
by thoray
Wed Jul 18, 2018 11:15 am
Forum: C++ Development
Topic: User sizable panel?
Replies: 8
Views: 745

User sizable panel?

Is there a way to have a panel that is sizable by user using drag and drop ? (EDIT: mouse dragging). I especially need to resize the panel itself and not use a wxSplitterWindow which portions space between two windows, but keeps the total size constant. wxPython seems to implement this with wx.lib.r...
by thoray
Fri Jul 13, 2018 2:47 pm
Forum: C++ Development
Topic: GUI update calls on expand/hide
Replies: 1
Views: 243

Re: GUI update calls on expand/hide

I finally took the time to find solutions to these problems so I will answer myself. First, I have wxCollapsiplePane inside boxsizer that is inside wxScrolledWindow that is inside wxSplitterWindow. If I call Expand() for the collapsiplepane right after creating the object, then no matter what I've t...
by thoray
Thu Jun 21, 2018 1:35 pm
Forum: C++ Development
Topic: GUI update calls on expand/hide
Replies: 1
Views: 243

GUI update calls on expand/hide

I seem to be at loss on what to call and for which window when GUI elements are expanded/collapsed or hidden. First, I have wxCollapsiplePane inside boxsizer that is inside wxScrolledWindow that is inside wxSplitterWindow. It all works fine if I manually call Layout() for the scrolledwindow when col...
by thoray
Wed Jun 20, 2018 9:24 pm
Forum: C++ Development
Topic: wxColourPickerCtrl live update?
Replies: 3
Views: 257

Re: wxColourPickerCtrl live update?

Any ideas on what would be good way to add such functionality to application?

A patch to wx?
Use platform specific code for this dialog?
by thoray
Wed Jun 20, 2018 8:26 pm
Forum: C++ Development
Topic: wxColourPickerCtrl live update?
Replies: 3
Views: 257

wxColourPickerCtrl live update?

With wxColourPickerCtrl, the associated event, EVT_COLOURPICKER_CHANGED, is only sent after I choose a color from the opened WxColourDialog and then finally click 'select' to close the dialog. Is there a way to get the the currently selected colour from the dialog without closing the dialog to much ...
by thoray
Tue Jun 19, 2018 3:30 pm
Forum: Platform Related Issues
Topic: Double frame border with wxWidgets GTK3 in Gnome 3
Replies: 4
Views: 587

Re: Double frame border with wxWidgets GTK3 in Gnome 3

Yes, I compared the code that creates the mainframe but I didn't see anything there. Possibly some controls creates the issue and some do not.

Ok, I'l take this at the mailing list.
by thoray
Tue Jun 19, 2018 8:28 am
Forum: Platform Related Issues
Topic: Double frame border with wxWidgets GTK3 in Gnome 3
Replies: 4
Views: 587

Re: Double frame border with wxWidgets GTK3 in Gnome 3

Trying out the latest from git didn't help. I did try two different versions of GTK+ as shown in first post.

The problem seems to only affect some samples. 'minimal', 'progrid', 'ribbon' or 'menu' do not have the problem whereas 'dataview', 'collpane' or 'calender' does show it.
by thoray
Mon Jun 18, 2018 6:39 pm
Forum: C++ Development
Topic: wxCollapsiblePane inside wxSplitterWindow issue
Replies: 2
Views: 691

Re: wxCollapsiblePane inside wxSplitterWindow issue

Calling Layout() for the parent window made it work, thanks.
by thoray
Mon Jun 18, 2018 5:50 pm
Forum: C++ Development
Topic: wxCollapsiblePane inside wxSplitterWindow issue
Replies: 2
Views: 691

wxCollapsiblePane inside wxSplitterWindow issue

When I put wxCollapsiblePane inside wxSplitterWindow and collapse/expand it, moving of other elements inside the window's boxsizer only happens after I move the sash. As such, expanding doesn't show the contents until I move the sash and collapsing doesn't make other elements reclaim the newly avail...