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
You're going to have 6 separate windows? For what?
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.
Why aren't you just using the classes in System::Windows::Forms?
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.
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.
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.