User forums > General (but related to Code::Blocks)

SOLVED: GUI Problem - Can't Seem to Get It

(1/2) > >>

arew264:
Okay, so this is somewhat CodeBlocks related and somewhat GUI dev related, so here goes:
I've been trying to get a GUI designed in wxWidgets for a basic telnet chat client. I need two text boxes, one for a list of people in the chat room and one for the chat messages.
The trouble is that I've been using wxFormBuilder to try to make a GUI, and I don't see a widget that would give me a text box for the messages.
I can use a list box for the users in the chat room, but what can I use for the chat messages?
Anyone have something better than wxFormBuilder for this type of setup?
I'm on the verge of just installing VC++ for this as I've spent the last week wading through documentation for GTK and then wxWidgets.

klight:
You probably want a wxTextCtrl with a style set with wxTE_MULTILINE enabled.  You can also enable the wxTE_READONLY style.  IIRC wxTextCtrl does have a limit to the amount of data which can be appended/inserted, after which no new data can be appended until older data is removed.

I don't think that the tool, wxFormBuilder or wxSmith, will have any impact on you implementation as either will construct one or more dialogs with all of the widgets you would need.

manmach:
The textbox widget is the fourth from the left under common, in wxFormbuilder.
You might recognise it by the icon of a textbox.

And the label wxTextCtrl if you hover your mouse over it.

arew264:
Okay, so I did do that, and it worked, but I for whatever reason decided to try it in wxSmith, so it's all set up there.
The problem now is getting wxSmith to generate the happy callback functions. I enabled the option that sends a signal when the user presses enter in the input TextCtrl, so I should at least get something for that.
How do I get wxSmith to generate code, or if it doesn't, is there documentation for this sort of thing that I can look at somewhere?

arew264:
I still can't seem to realize that documentation is in the wiki. This is an ongoing problem for me. I'll have a problem, search for documentation, find none, ask about it, and then suddenly see a button labeled 'wiki'.
Needless to say, I found the tutorial and it all makes a lot more sense now. Thanks to all who helped me before.

Navigation

[0] Message Index

[#] Next page

Go to full version