SearchCtrl in tool bar

Post here wxCrafter related issues / features / bugs
coder99
CodeLite Expert
Posts: 167
Joined: Wed Oct 22, 2008 6:50 am
Contact:

SearchCtrl in tool bar

Post by coder99 »

Is there any way within wxCrafter to control or set the width of a wxSearchCtrl in a tool bar?
TIA,
Arnold

Win 10/11 64-bit, MSVC 2019/2022, wxWidgets 3.2.1, CodeLite 17.0 Mint 21.2

User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: SearchCtrl in tool bar

Post by eranif »

Since wxToolbar does not use wxSizers, your only option is to manually set the control width in the proprties view
- Add wxSearchCtrl to a wxToolbar
- Select the control and in the properties, change its size: (by default its -1,-1, so set it to 300,-1)

Eran
Make sure you have read the HOW TO POST thread
coder99
CodeLite Expert
Posts: 167
Joined: Wed Oct 22, 2008 6:50 am
Contact:

Re: SearchCtrl in tool bar

Post by coder99 »

Thank you; I'll give that a try & it worked.

Win 10/11 64-bit, MSVC 2019/2022, wxWidgets 3.2.1, CodeLite 17.0 Mint 21.2

Post Reply