Search found 426 matches

by apoorv569
Sun Oct 30, 2022 9:58 am
Forum: C++ Development
Topic: How can I show a persistent wxInfoBar?
Replies: 12
Views: 1201

Re: How can I show a persistent wxInfoBar?

Why on earth would you subclass wxInfoBar? Just for a test, try using wxInfoBarGeneric directly. If you get the same errors, it's like a mentioned earlier: Sometimes generic implementations can't be used easily when a native implementation exists on that platform. However, if you subclass wxInfoBox...
by apoorv569
Sat Oct 29, 2022 7:07 pm
Forum: C++ Development
Topic: How can I show a persistent wxInfoBar?
Replies: 12
Views: 1201

Re: How can I show a persistent wxInfoBar?

The GTK version is different as it's the only native implementation. All other platforms use a generic one. Try including "wx/generic/infobar.h" and then use wxInfoBarGeneric instead of wxInfoBar and check if it behaves differently. I haven't tested this, unfortunately it's not always pos...
by apoorv569
Sat Oct 29, 2022 3:55 pm
Forum: C++ Development
Topic: How can I show a persistent wxInfoBar?
Replies: 12
Views: 1201

Re: How can I show a persistent wxInfoBar?

ONEEYEMAN wrote: Sat Oct 29, 2022 1:32 pm Hi,
Wx version GTK+ version?
Image
ONEEYEMAN wrote: Can you reproduce it in the dialogs sample?
Yes I tried adding a button with wxID_ANY and a dummy ID (wxID_HIGHEST + 1) and I get same error.
by apoorv569
Sat Oct 29, 2022 10:29 am
Forum: C++ Development
Topic: How can I show a persistent wxInfoBar?
Replies: 12
Views: 1201

Re: How can I show a persistent wxInfoBar?

So I can use AddButton() with wxID_NONE you mean? I don't want any button there just the message. No, you have to add some dummy button. Be creative :) Hmm.. I can't seem to add any button at all. I keep getting this error when I try to add a button. assert "button" failed in GTKAddButton...
by apoorv569
Sat Oct 29, 2022 12:00 am
Forum: C++ Development
Topic: How can I show a persistent wxInfoBar?
Replies: 12
Views: 1201

Re: How can I show a persistent wxInfoBar?

From: https://docs.wxwidgets.org/trunk/classwx_info_bar.html#a6c2e88fe0c76e851948445e20f092ff1 If any buttons are added to the info bar using this method, the default "Close" button is not shown as it is assumed that the extra buttons already allow the user to close it. So I can use AddBu...
by apoorv569
Fri Oct 28, 2022 8:53 pm
Forum: C++ Development
Topic: How can I show a persistent wxInfoBar?
Replies: 12
Views: 1201

How can I show a persistent wxInfoBar?

I want to show a message as a warning that user can't close probably using wxInfoBar. I tried the RemoveButton(wxID_CLOSE) but it doesn't work. How can I make the notification persistent or remove the close button.

If there is another similar widget I can use that as well.
by apoorv569
Thu Aug 25, 2022 10:19 am
Forum: Compiler / Linking / IDE Related
Topic: wxWidges project fails to build with GTK4 toolkit.
Replies: 4
Views: 4823

Re: wxWidges project fails to build with GTK4 toolkit.

doublemax wrote: Thu Aug 25, 2022 7:22 am
Maybe try to ask on the Google group where you can reach the core wx developers. They should know more. https://groups.google.com/g/wx-users
I see. Thank you!
by apoorv569
Thu Aug 25, 2022 5:07 am
Forum: Compiler / Linking / IDE Related
Topic: wxWidges project fails to build with GTK4 toolkit.
Replies: 4
Views: 4823

Re: wxWidges project fails to build with GTK4 toolkit.

AFAIK there won't be support for GTK4 anytime soon, it's very different from GTK3 and requires major rewrites. In particular, this version unfortunately won’t support GTK 4 as its API is so incompatible with the previous GTK versions that huge parts of wxGTK would have to be rewritten and we curren...
by apoorv569
Wed Aug 24, 2022 8:19 pm
Forum: Compiler / Linking / IDE Related
Topic: wxWidges project fails to build with GTK4 toolkit.
Replies: 4
Views: 4823

wxWidges project fails to build with GTK4 toolkit.

I was trying out GTK4 toolkit for my project to see how it looks and feels, but failed with this error, [11/566] Compiling C++ object subprojects/wxwidgets/libwxcore.so.p/src_common_imagtga.cpp.o [12/566] Compiling C++ object subprojects/wxwidgets/libwxcore.so.p/src_common_matrix.cpp.o [13/566] Comp...
by apoorv569
Thu Mar 24, 2022 9:31 am
Forum: C++ Development
Topic: wxString::Format how to limit number up to N digits only?
Replies: 2
Views: 355

Re: wxString::Format how to limit number up to N digits only?

wxString::Format() does basically the same thing as printf(). I see. AFAIK, one cannot limit a maximum number of digits to display for an integer with printf, so you need to use a workaround: Either somehow ensure the integer is in the range (preferred) or compose the result string from cut substri...
by apoorv569
Thu Mar 24, 2022 7:46 am
Forum: C++ Development
Topic: wxString::Format how to limit number up to N digits only?
Replies: 2
Views: 355

wxString::Format how to limit number up to N digits only?

How to format this, wxString str = wxString::Format("%02i:%02i:%3i", 111111, 222222, 333333); such as I only get up to 2 digits for first 2 arguments, and up to 3 digits for the last arguments. Currently I get this output, 111111:222222:333333 but I instead want, 11:22.333
by apoorv569
Thu Feb 17, 2022 5:21 am
Forum: Compiler / Linking / IDE Related
Topic: Error while compiling with MinGW on Windows.
Replies: 42
Views: 5536

Re: Error while compiling with MinGW on Windows.

I am not aware of such macro. As I wrote before wxICON() uses .ico from resources on MSW but XPM otherwise. But it is just one icon for the shell, in the code any format can be used, so... I found this function, wxGetOsDescription() maybe I can use this to determine which OS the app is running on a...
by apoorv569
Tue Feb 15, 2022 3:52 am
Forum: Compiler / Linking / IDE Related
Topic: Error while compiling with MinGW on Windows.
Replies: 42
Views: 5536

Re: Error while compiling with MinGW on Windows.

I can see at least two different fonts / font sizes in your screenshot: (1) menu and window caption and (2) the rest of the controls. I think the controls should all have the same font as the menu does. But perhaps you did set a custom font there? I am not setting a custom font, but I am do have a ...
by apoorv569
Mon Feb 14, 2022 9:53 am
Forum: Compiler / Linking / IDE Related
Topic: Error while compiling with MinGW on Windows.
Replies: 42
Views: 5536

Re: Error while compiling with MinGW on Windows.

Did you tell the resource compiler about include folder WXDIR/include ? I have no idea how to do that with meson, FWIW, it is the value of the "-I" (where I is capital i) windres switch. With CMake it just works automagically (probably via wxWidgets_INCLUDE_DIRS ). I think I got it workin...
by apoorv569
Mon Feb 14, 2022 4:05 am
Forum: Compiler / Linking / IDE Related
Topic: Error while compiling with MinGW on Windows.
Replies: 42
Views: 5536

Re: Error while compiling with MinGW on Windows.

I removed the resource file as well. It seems to work without it as well now. If you do not have a resource file, where does the application manifest comes from? A Windows application must have a proper compatibility manifest, if not, among else it will have Win95 look and will stick out like a sor...