Search found 115 matches

by deepti
Thu Feb 14, 2019 10:35 am
Forum: Platform Related Issues
Topic: wxHyperlinkCtrl - hover color and visited color not working on Mac
Replies: 10
Views: 1932

Re: wxHyperlinkCtrl - hover color and visited color not working on Mac

wxGenericHyperlinkCtrl does not work either :(
Is there anything else I could try?
by deepti
Thu Feb 14, 2019 7:30 am
Forum: Platform Related Issues
Topic: wxHyperlinkCtrl - hover color and visited color not working on Mac
Replies: 10
Views: 1932

Re: wxHyperlinkCtrl - hover color and visited color not working on Mac

Thank you for your reply @doublemax.

In fact, i do not want the colours of wxHyperlinkCtrl to change, which is the default behavior on Windows.
by deepti
Thu Feb 14, 2019 6:27 am
Forum: Platform Related Issues
Topic: wxHyperlinkCtrl - hover color and visited color not working on Mac
Replies: 10
Views: 1932

wxHyperlinkCtrl - hover color and visited color not working on Mac

Hi, I have a wxHyperlinkCtrl instance. On Mac, when the mouse is hovered over the control, or the link is clicked, the color changes to red and purple respectively. I am using the following functions, and setting the color to blue but they are not having any effect, and hover and click colors are st...
by deepti
Thu Feb 07, 2019 6:47 pm
Forum: Platform Related Issues
Topic: wxDialog is displayed in the background only on Mac
Replies: 12
Views: 2139

Re: wxDialog is displayed in the background only on Mac

Yes yes, the parent of the dialog is indeed NULL. Is it not supposed to be?

And i tried the taskbar sample too..it works fine. Even in this sample, the dialog's parent is set to NULL
by deepti
Thu Feb 07, 2019 5:37 pm
Forum: Platform Related Issues
Topic: wxDialog is displayed in the background only on Mac
Replies: 12
Views: 2139

Re: wxDialog is displayed in the background only on Mac

All the dialogs appear correctly in the sample dialogs app. They are all seen in the foreground.
Is it because they are being opened as menu items?
Whereas in my case, it is on right-click option of the tray icon/docked icon at the top..
by deepti
Thu Feb 07, 2019 5:15 pm
Forum: Platform Related Issues
Topic: wxDialog is displayed in the background only on Mac
Replies: 12
Views: 2139

Re: wxDialog is displayed in the background only on Mac

Thanks a lot for the detailed post. I tried out the sample dialogs app. It just opens up a simple dialog with minimise, maximise and close buttons. But does open up in the foreground. In the case of our application, when it is opened, it creates an icon in the dock (similar to say Skype), and then o...
by deepti
Thu Feb 07, 2019 4:09 pm
Forum: Platform Related Issues
Topic: wxDialog is displayed in the background only on Mac
Replies: 12
Views: 2139

Re: wxDialog is displayed in the background only on Mac

Hi,

It is a custom dialog derived from wxDialog.
Could you please point out the link to the dialogs sample you are referring to?
I am completely new to Mac, so it might take a while to try out this sample app.
Meanwhile, is there something else I could try?
by deepti
Thu Feb 07, 2019 3:29 pm
Forum: Platform Related Issues
Topic: wxDialog is displayed in the background only on Mac
Replies: 12
Views: 2139

Re: wxDialog is displayed in the background only on Mac

The Mac application has been existing for a while now, but the dialog popping behind issue has been there too, and no one really worked on it before! So, this is what I tried in the OnInit() function: ProcessSerialNumber psn = { 0, kCurrentProcess }; (void) TransformProcessType(&psn, kProcessTra...
by deepti
Thu Feb 07, 2019 12:29 pm
Forum: Platform Related Issues
Topic: wxDialog is displayed in the background only on Mac
Replies: 12
Views: 2139

wxDialog is displayed in the background only on Mac

Hi, I have a wxDialog instance (with parent set to NULL). On Show(), it ends up being displayed behind some other application windows that are open, and not shown in the front. This works perfectly on Windows. Setting the flag to wx_STAY_ON_TOP will not be so useful, since there are other UI options...
by deepti
Mon Feb 04, 2019 5:26 am
Forum: C++ Development
Topic: wxDialog not increasing in size to show all controls
Replies: 10
Views: 2448

Re: wxDialog not increasing in size to show all controls

@doublemax,

thank you for the letting me know that wxGridSizer makes all cells to be of the same size. That helped me fix almost all the issues - so now, i am using a wxFlexGridsizer and have specified the size of the controls. So, the UI looks pretty good :) thanks again!
by deepti
Sat Feb 02, 2019 7:38 am
Forum: C++ Development
Topic: wxDialog not increasing in size to show all controls
Replies: 10
Views: 2448

Re: wxDialog not increasing in size to show all controls

The current code should already do this. Just set the window to wxSize(1000, 500) instead of the SetClientSize() call. That worked..removing the SetClientSize() did the trick. Can you show the complete sizer code you have right now? Sure, please find attached the sample.cpp which has the entire cod...
by deepti
Fri Feb 01, 2019 6:31 pm
Forum: C++ Development
Topic: wxDialog not increasing in size to show all controls
Replies: 10
Views: 2448

Re: wxDialog not increasing in size to show all controls

If you want all controls to be visible all the time, why did you use a scrolled window? Then you could have used a normal wxPanel instead. The scrollbar is needed for vertical scrolling. My intention is to have a fixed size dialog, say wxSize(1000, 500). And then when more controls are added, the s...
by deepti
Fri Feb 01, 2019 4:25 pm
Forum: C++ Development
Topic: wxDialog not increasing in size to show all controls
Replies: 10
Views: 2448

Re: wxDialog not increasing in size to show all controls

Awesome @doublemax. That worked and the dialog controls are visible now. Only issue is the gaps between the bitmap buttons on the right. How can i place them next to each other and not so apart? Also, how can i achieve the dialog to be of a minimum size ? Setting the size of the dialog alone is not ...
by deepti
Fri Feb 01, 2019 12:43 pm
Forum: C++ Development
Topic: wxDialog not increasing in size to show all controls
Replies: 10
Views: 2448

Re: wxDialog not increasing in size to show all controls

Hi @doublemax,

please find attached the files containing dialog class and the constructor definition.
by deepti
Fri Feb 01, 2019 11:32 am
Forum: C++ Development
Topic: wxDialog not increasing in size to show all controls
Replies: 10
Views: 2448

wxDialog not increasing in size to show all controls

Hi All, I have a wxDialog instance as created below: But the problem is that none of the wxStaticText instances are shown! The wxScrolledWindow is needed since many wxPanel of type "panelVersionInfo" need to be added dynamically. VersionsDialog::VersionsDialog(wxWindow* parent) : wxDialog(...