wxCheckListBox, XRC and styles



  • 1. Can I add menus and toolbars at runtime?
    if it is posiible can you give me some references. Have a nice day, Mihai.
  • 2. [wxMSW2.6.0] wxw shared or not by default
    Hi, If I run configure without any option and then make, what type of build will be generated? shared libraries, static libraries or both? thanks, JC --------------------------------------------------------------------- To unsubscribe, e-mail: XXXX@XXXXX.COM For additional commands, e-mail: XXXX@XXXXX.COM
  • 3. problem with localization
    Hi, Win XP, wxWidget 2.6.0 Dev. Studio .NET 2003 I have some problem with localization. I can not realize how wxWidget creates *.po files from sources ones. I put all strings to be translated in wxTRANSLATE and use wxGetTranslation. But after compilation no files with *.po extension has been created. When I try to use xgettext from command line with one of my source file I got error message that program fail to recognize string like //--------------------- When I deleted all comments the program fails to recognize string BEGIN_EVENT_TABLE(acImageFrame, wxPanel) And so on. It seems that I miss some basic things. I'll be highly appreciate any help. Dmitry --------------------------------------------------------------------- To unsubscribe, e-mail: XXXX@XXXXX.COM For additional commands, e-mail: XXXX@XXXXX.COM
  • 4. changing button shape
    Hi All, I need to make a honeycomb pattern of buttons. As a start I'm trying make a button with a hexagonal shape. wxBitmapButton sort of works but has a few problems. The main one being that the corners (as the button in reality is still square) still show up if I pack the buttons close together. I've made the buttons transparent in the hope that the corners would become transparent and solve the problem. Alas no. Once it is clicked on you see where the real edges are. Any one ever tried a similar thing and solved the problem? Cheers, Ross

wxCheckListBox, XRC and styles

Postby brian » Mon, 23 Aug 2004 21:13:34 GMT

According to the documentation, wxCheckListBox supports the same styles
as a wxListBox. However, the XRC handler only does AddWindowStyles() not
any of the wxLB ones. I'm unsure whether wxLB_[SINGLE|MULTIPLE|EXTENDED]
make any sense with a wxCheckListBox (since the checking, unchecking
is/should be what is crucial here), but
wxLB_[HSCROLL|ALWAYS_SB|NEEDED_SB|SORT] surely do make sense.
DialogBlocks has support for adding only wxLB_SORT, and that may be all
that's needed, but that one surely is.

So, I suppose my question is: Which of the wxListBox styles _should_
wxCheckListBox support, and can they please be added to the XRC handler? :)

  /Brian Riis

To unsubscribe, e-mail:  XXXX@XXXXX.COM 
For additional commands, e-mail:  XXXX@XXXXX.COM 

Re: wxCheckListBox, XRC and styles

Postby vaclav.slavik » Thu, 26 Aug 2004 07:48:58 GMT


I don't know for sure which one wxCheckListBox really supports 
(probably really all, since it derives from wxListBox), but I 
followed the docs and added all of them to the XRC handler in CVS.


PGP key: 0x465264C9, available from  http://www.**--****.com/ 

Version: GnuPG v1.2.5 (GNU/Linux)


Similar Threads:

1.[wxMSW 2.5.2, WinXP Pro, MinGW-3.4.0] wxCheckListBox window styles and XRC

Hi all,

I was doing a complete redesign of one of my dialogs today, and decided
on a wxCheckListBox to replace an ingenious system (*ahem*) of listboxes
and buttons to add/remove attributes for a domain entity. My first
surprise was that wxCheckList was an unknown entity, but I quickly found
out that I could've just enabled 2.4.x compatibility, so no worries there.

Once I changed it manually in the XRC file, however, I was told that
window style wxLB_SORT is unsupported by the handler. I've been looking
at the sources for a little while, and as far as I can see,
wxCheckListBox _should_ support all styles that wxListBox does, but the
handler never adds any (besides the normal window styles). Shouldn't
these styles be present in the XRC handler? I'm not sure if wxLB_SINGLE,
wxLB_MULTIPLE, and wxLB_EXTENDED make any sense for a wxCheckListBox,
but wxLB_HSCROLL, -ALWAYS_SB, -NEEDED_SB, and -SORT do make sense in my
opinion. (Although only wxLB_SORT is an option in DialogBlocks. But that
was really the style I was interested in anyway!)

Bug? Oversight?

Or have I missed the point completely?

  /Brian Riis

To unsubscribe, e-mail:  XXXX@XXXXX.COM 
For additional commands, e-mail:  XXXX@XXXXX.COM 

2.wxTextCtrl wxHSCROLL style in conjunction with xrc resources on OS X

(using carbon)

When I try to instantiate dialogs containing wxTextCtrl objects from a
XRC ressource with the wxHSCROLL flag set, the space for an horizontal
scroll bar is set aside but it never shows up.

I found a post which states that the wxHSCROLL style should be set at
construction time on OS X. How can that be done when using XRC ressouces
or what other solutions are available?


To unsubscribe, e-mail:  XXXX@XXXXX.COM 
For additional commands, e-mail:  XXXX@XXXXX.COM 

3.xrc + contrib(to vs) && xrc::loadframe without parents

4.Font Size - XP style vs Vista style

I understand what "Use Windows XP style DPI scaling" does.  I have it 
checked because most programs work fine that way, while turning this off 
makes them blurry.

But occasionally, a program will be way too small and/or have layout 
problems.  What I really want is to use the 96DPI emulation only on the 
apps I specify, namely the problematic ones.  With the check off, it 
uses emulation on everything that doesn't specifically say otherwise in 
its manifest, and nobody's done that yet.

To summarize, I want the checkmark on normally, and use the new 
Vista-style scaling only when I (not the developer) specify.

How do I do that?


5.KB943460 changed my "Windows Classic" style to "WindowsXP" style

6. Style XP 2 beta-trial messing up Style XP 1 full version

7. XP switches from XP style to Classic style

8. Appearance reverts to XP Style after setting to Classic Style

Return to wxWindows


Who is online

Users browsing this forum: No registered users and 73 guest