• Welcome to Valhalla Legends Archive.
 

[C++.NET] GUI Outline

Started by Sorc.Polgara, January 19, 2005, 11:58 AM

Previous topic - Next topic

Sorc.Polgara

Ok, I'm doing a bot in C++.NET with a GUI (forms and such).  During lunch I was in the library brainstorming on how I am going to setup my headers and classes.  I want to get your help/opinions/critism.

Here is the outline that I came up with:
Quote
// header and class outline

// header with form button classes and events
Buttons.h
- btnSend
- btnWhisper

// header with form listbox classes and events
ListBoxes.h
- lstChannel

// header with form label classes and events
Labels.h
- lblChannel

// header with form textbox classes and events
TextBoxes.h
- txtChat
- txtSend

// header with form menu classes and events
Menus.h
- mnuMain
- mnuSettings

// header with chat event classes and events
ChatEvents.h
- clsWhisper
- clsSend
- ... etc.

Now these are just some of the headers and classes.  I'm sure I will be adding more and such.  However, I feel that these are some of the more important ones when setting up my GUI (forms and such).

Help? Opinions? Critism?


-Sorc.Polgara

MyndFyre

You're going to have 6 separate windows?  For what?
QuoteEvery generation of humans believed it had all the answers it needed, except for a few mysteries they assumed would be solved at any moment. And they all believed their ancestors were simplistic and deluded. What are the odds that you are the first generation of humans who will understand reality?

After 3 years, it's on the horizon.  The new JinxBot, and BN#, the managed Battle.net Client library.

Quote from: chyea on January 16, 2009, 05:05 PM
You've just located global warming.

Sorc.Polgara

#2
Quote from: MyndFyre on January 19, 2005, 12:06 PM
You're going to have 6 separate windows?  For what?

Errrrr nonononono,  I screwed up, I think I should remove the "frm" from the name due to what you just said lol.

Basically each header file take care of a different control.  i.e "Buttons.h" has classes and events for the various button controls.

MyndFyre

Why aren't you just using the classes in System::Windows::Forms?
QuoteEvery generation of humans believed it had all the answers it needed, except for a few mysteries they assumed would be solved at any moment. And they all believed their ancestors were simplistic and deluded. What are the odds that you are the first generation of humans who will understand reality?

After 3 years, it's on the horizon.  The new JinxBot, and BN#, the managed Battle.net Client library.

Quote from: chyea on January 16, 2009, 05:05 PM
You've just located global warming.

Sorc.Polgara

Quote from: MyndFyre on January 19, 2005, 04:06 PM
Why aren't you just using the classes in System::Windows::Forms?

errrrrrrrr well these header files contain my own classes for the controls I am using..........

ok... well just nvm then, forget it.  Close prz.

Sorc.Polgara

Quote from: Sorc.Polgara on January 19, 2005, 09:19 PM
Quote from: MyndFyre on January 19, 2005, 04:06 PM
Why aren't you just using the classes in System::Windows::Forms?

errrrrrrrr well these header files contain the info for the controls I am using... location... size... FormBorderStyle... info about the controls... =\

ok... well nvm then, just forget it.  Close prz.

Banana fanna fo fanna

I get what you mean, and that's a bad idea. You probably don't care what type of control it is...you probably care more about _what_ it does conceptually.