Code::Blocks Forums

User forums => Help => Topic started by: Frank_CB on July 29, 2023, 11:51:27 pm

Title: wxSmith Missing Standard Components in C::B
Post by: Frank_CB on July 29, 2023, 11:51:27 pm
The C::B IDE doesn't display what the tutorials do with regards to components used with wxSmith. The Standard components tab is empty.
Title: Re: wxSmith Missing Standard Components in C::B
Post by: ollydbg on July 30, 2023, 10:15:10 am
Sorry, I can't understand your problem.

You means: all the buttons in your wxSmith's toolbar is missing?
Title: Re: wxSmith Missing Standard Components in C::B
Post by: Frank_CB on July 30, 2023, 05:44:46 pm
@ollydbg:
The attached snippet from a tutorial shows several standard components in the Standard tab. Several current versions of C::B for Windows 10 show a Standard tab that's empty The other tabs have components.
Title: Re: wxSmith Missing Standard Components in C::B
Post by: ollydbg on July 31, 2023, 10:17:34 am
@ollydbg:
The attached snippet from a tutorial shows several standard components in the Standard tab. Several current versions of C::B for Windows 10 show a Standard tab that's empty The other tabs have components.

Which version of C::B did you use?

For me, I have build C::B myself, and I see the "Standard tab" shows all the items, see the image shot of my C::B as attachment.



Title: Re: wxSmith Missing Standard Components in C::B
Post by: Frank_CB on August 01, 2023, 04:13:23 pm
@ollydbg: I've used 13320 Nightly and built a more recent version of 13320 from source. Both versions of C::B failed to display the Standard  components. I'm sure Standard components for wxSmith are present in both. I am afraid something on my platform is interfering with C::B being able to use the Standard components. Do you happen to know where I can find the Standard components?
Title: Re: wxSmith Missing Standard Components in C::B
Post by: Miguel Gimenez on August 01, 2023, 05:41:33 pm
The code generating the tabs is the same for all of them. Open a console on the C::B folder and run
Code
codeblocks --debug-log
to see if the Debug log tab helps.

You can also try a different personality or renaming default.conf (in %appdata%\CodeBlocks) temporarily.
Title: Re: wxSmith Missing Standard Components in C::B
Post by: Frank_CB on August 01, 2023, 07:04:15 pm
@Manuel Gimenez: Nothing appeared to fail.
Title: Re: wxSmith Missing Standard Components in C::B
Post by: ollydbg on August 02, 2023, 04:46:46 am
@ollydbg: I've used 13320 Nightly and built a more recent version of 13320 from source. Both versions of C::B failed to display the Standard  components. I'm sure Standard components for wxSmith are present in both. I am afraid something on my platform is interfering with C::B being able to use the Standard components. Do you happen to know where I can find the Standard components?

I don't know. I have several PCs running Code::Blocks, and I don't have such issue. BTW, can you show a screen shot of your wxSmith toolbar? Just like the screen shot I posted, and you mean that some of the icon is missing?
Title: Re: wxSmith Missing Standard Components in C::B
Post by: Frank_CB on August 02, 2023, 05:19:20 pm
Quote
I don't know. I have several PCs running Code::Blocks, and I don't have such issue. BTW, can you show a screen shot of your wxSmith toolbar? Just like the screen shot I posted, and you mean that some of the icon is missing?

The attached screenshot shows all the tabs in the wxSmith toolbar. All of the tabs except the Standard contain icons of components. The Standard tab contains nothing.
Title: Re: wxSmith Missing Standard Components in C::B
Post by: Commaster on August 02, 2023, 05:59:33 pm
The icons are there, they are merely MOSTLY covered by the horizontal scrollbar due to your window size and the number of items in this tab  :)
Title: Re: wxSmith Missing Standard Components in C::B
Post by: Frank_CB on August 02, 2023, 08:45:30 pm
@Commaster: You were spot on. I enlarged the window that displayed the wxSmith toolbar and magically the missing Standard component icons are displayed. The attached screenshot shows the icons that were missing. Thank you for sharing that information!
Title: Re: wxSmith Missing Standard Components in C::B
Post by: Commaster on August 03, 2023, 06:00:53 am
Now the question becomes "Why is the scrollbar covering the icons instead of appearing below them as shown in the tutorial?"  ???
Title: Re: wxSmith Missing Standard Components in C::B
Post by: ollydbg on August 03, 2023, 07:50:14 am
Now the question becomes "Why is the scrollbar covering the icons instead of appearing below them as shown in the tutorial?"  ???

This is certainly a layout bug from my point of view. But I just tried in my system, I can't reproduce your bug.
Title: Re: wxSmith Missing Standard Components in C::B
Post by: Miguel Gimenez on August 03, 2023, 06:33:01 pm
The relevant code is in wxsItemEditor::BuildPalette(), but I also can not reproduce the issue.