Search found 36 matches

by Maddis
Mon Aug 28, 2006 8:02 am
Forum: C++ Development
Topic: wxListCtrl and changing size
Replies: 2
Views: 684

wxListCtrl and changing size

Small thing but... I have a wxListCtrl in my window and its set to change size when window change size. That works ok. Problem is that my listctrl has 4 columns and when I change window size columns don't change size so there is lots of empty space in listctrl. Is there a way to get for example, rig...
by Maddis
Thu Aug 17, 2006 5:41 am
Forum: C++ Development
Topic: wxCheckListBox and identifying item
Replies: 1
Views: 510

wxCheckListBox and identifying item

I have CheckListBox and I add items to it with Append - method. I also have the 'sort' - flag set so I don't know in which order the items are after I've added them. At the moment I have unique names for Items and I use that name to identify what item user checked/unchecked. That is about to change ...
by Maddis
Wed Aug 16, 2006 9:12 am
Forum: C++ Development
Topic: Pictures and icons to binary
Replies: 3
Views: 631

phlox81 wrote:xpm is a possible solution, and its also xplatform.

Just create a xpm file, and include it in your file.

wxBitmap(my_xpm) creates then the wxBitmap out of the xpm sources.
That works on icons too? And oh, forgot to tell that I'm trying to do this on Windows if that matters.
by Maddis
Wed Aug 16, 2006 8:50 am
Forum: C++ Development
Topic: Pictures and icons to binary
Replies: 3
Views: 631

Pictures and icons to binary

I'm not sure if this is right place but here goes.. How I can embed icons and bitmaps to program? I got impression that it is possible, but I couldn't figure out how to do it. I don't know what its really called so its hard to search stuff since I don't know what to search. Any help would be greatly...
by Maddis
Tue Aug 15, 2006 2:04 pm
Forum: C++ Development
Topic: wxStdDialogButtonSizer
Replies: 7
Views: 1005

At the moment I 'solved' the problem by adding three separate buttons and made eventhandlers for them to call EndModal with right return value. User will never know that. :)
by Maddis
Tue Aug 15, 2006 12:57 pm
Forum: C++ Development
Topic: wxStdDialogButtonSizer
Replies: 7
Views: 1005

phlox81 wrote:Hm, dunno.
I've seen Yes|No and OK|Cancel, but makes a Yes|No|Cancel choice sense?
What happens if you remove/outcomment the Cancel button?
Nothing changed except Cancel-button is there no more. :)
by Maddis
Tue Aug 15, 2006 12:47 pm
Forum: C++ Development
Topic: wxStdDialogButtonSizer
Replies: 7
Views: 1005

Then, maybe could you show us your code? And what Version of Codeblocks are you using? Codeblock is Build Jul 23 2006, 11:10:59 - wx2.6.3 Here is the code that wxSmith generated: StdDialogButtonSizer1 = new wxStdDialogButtonSizer(); StdDialogButtonSizer1->AddButton(new wxButton(this,wxID_YES,_("Yes...
by Maddis
Tue Aug 15, 2006 11:47 am
Forum: C++ Development
Topic: wxStdDialogButtonSizer
Replies: 7
Views: 1005

maybe the docu helps: http://wxwidgets.org/manuals/2.6.3/wx_wxstddialogbuttonsizer.html#wxstddialogbuttonsizer I have read that. I tried to use SetAffirmativeButton etc. but no help. To make things worst the wxSmith creates button right when its adding it to StdDialogButtonSizer so I need to manual...
by Maddis
Tue Aug 15, 2006 11:04 am
Forum: C++ Development
Topic: wxStdDialogButtonSizer
Replies: 7
Views: 1005

wxStdDialogButtonSizer

Hi, I'm trying to use wxStdDialogButtonSizer, but I can't get it work how I'd like it to work. I use C::B wxSmith to edit my gui and have added yes/no/cancel-buttons to my dialog. The problem is that only cancel-button does something. Yes/No-buttons does not do anything and dialog won't exit if I pr...
by Maddis
Mon Aug 14, 2006 11:43 am
Forum: C++ Development
Topic: wxMessageDialog modification
Replies: 2
Views: 680

Doh, I was trying to get too easy. Ok, thanks. Have to do my own dialog then.
by Maddis
Mon Aug 14, 2006 11:13 am
Forum: C++ Development
Topic: wxMessageDialog modification
Replies: 2
Views: 680

wxMessageDialog modification

Before I continue hit my head to the wall too much I'll ask help here. I'm trying to modify wxMessageDialog for my use. I'd like to add one checkbox to it and be able to read its value when user presses button. At the moment I have inherited(?) my own class from wxMessageDialog - class and added wxC...
by Maddis
Wed Aug 09, 2006 10:30 am
Forum: C++ Development
Topic: Flexible window contents
Replies: 5
Views: 998

note the difference between gridsizer and flexgridsizer. all cells in gridsizers have the same size (height and width). Your window (frame/dialog/top level panel) must contain a sizer which will contain all the window children (statict texts, checkboxes, ... and your lists). I'll post two C++ and X...
by Maddis
Wed Aug 09, 2006 9:58 am
Forum: C++ Development
Topic: Flexible window contents
Replies: 5
Views: 998

Guess that would be 'flexgridsizer' in wxSmith, which btw. is GUI design tool.

They are in this position
* List1 | List2

I'll try that flexgridsizer but feel free to tell more if you have somehthing to tell. :)
by Maddis
Wed Aug 09, 2006 9:36 am
Forum: C++ Development
Topic: Flexible window contents
Replies: 5
Views: 998

Flexible window contents

Hi, I'm have program that main window has two listboxes. The main window is also flexible so user can change its size. Now when I change the size of the window the listboxes stay same size as before thus there are lots of unused space in window. How can I make(if its possible?) listboxes to change s...
by Maddis
Wed Aug 02, 2006 9:12 am
Forum: C++ Development
Topic: Datagram socket broadcast
Replies: 11
Views: 2994

If you want to do UDP broadcasting insert the following in your code at approporiate places: m_serverAddr.Hostname("255.255.255.25"); that's really all there is to it. Do your SendTo and RecvFrom as you would do normally from the port. your SendTo's will be broadcasted to your local machines as per...