Click here to Skip to main content
16,006,709 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: I got lines written over by other text in a CEdit control Pin
ASchunk22-Sep-03 12:56
ASchunk22-Sep-03 12:56 
GeneralProgrammers week! Pin
Anonymous22-Sep-03 8:39
Anonymous22-Sep-03 8:39 
GeneralRe: Programmers week! Pin
ASchunk22-Sep-03 9:27
ASchunk22-Sep-03 9:27 
GeneralMaking an interactive periodic table of the elements using VC++ Pin
b_girl22-Sep-03 8:38
b_girl22-Sep-03 8:38 
GeneralRe: Making an interactive periodic table of the elements using VC++ Pin
Terry O'Nolley22-Sep-03 9:32
Terry O'Nolley22-Sep-03 9:32 
GeneralRe: Making an interactive periodic table of the elements using VC++ Pin
b_girl22-Sep-03 9:41
b_girl22-Sep-03 9:41 
GeneralRe: Making an interactive periodic table of the elements using VC++ Pin
Terry O'Nolley22-Sep-03 12:58
Terry O'Nolley22-Sep-03 12:58 
GeneralRe: Making an interactive periodic table of the elements using VC++ Pin
Joaquín M López Muñoz22-Sep-03 10:33
Joaquín M López Muñoz22-Sep-03 10:33 
Arranging such a huge lot of buttons in your dialog seems clumsy to me (plus you'll get close to some limit in the number of controls a resource template can hold --something like 256, if I remember well.)

Maybe you can try laying out your periodic table using some grid control, like for instance Chris Maunder's astonishing MFC Grid control 2.24[^]. The idea is to define one grid control only and fill its cells in OnInitDialog, possibly with information from a config file for maximum fexibility. Some of the cells would be, so to say, void (those outside the table shape) and the others will hold the elements and additional labels (like the group, period, lanthanoids, etc.)

The cells have an overridable OnClick method that you can then use to trigger the appropriate action when the user clicks on an element.

Hope this helps, good luck.

Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
GeneralRe: Making an interactive periodic table of the elements using VC++ Pin
act_x22-Sep-03 11:02
act_x22-Sep-03 11:02 
GeneralRe: Making an interactive periodic table of the elements using VC++ Pin
Jason Henderson22-Sep-03 11:05
Jason Henderson22-Sep-03 11:05 
GeneralRe: Making an interactive periodic table of the elements using VC++ Pin
Terry O'Nolley22-Sep-03 13:29
Terry O'Nolley22-Sep-03 13:29 
GeneralRe: Making an interactive periodic table of the elements using VC++ Pin
Jason Henderson22-Sep-03 16:18
Jason Henderson22-Sep-03 16:18 
GeneralRe: Making an interactive periodic table of the elements using VC++ Pin
Terry O'Nolley22-Sep-03 16:41
Terry O'Nolley22-Sep-03 16:41 
GeneralRe: Making an interactive periodic table of the elements using VC++ Pin
Jason Henderson22-Sep-03 17:01
Jason Henderson22-Sep-03 17:01 
GeneralRe: Making an interactive periodic table of the elements using VC++ Pin
Terry O'Nolley22-Sep-03 17:14
Terry O'Nolley22-Sep-03 17:14 
GeneralRe: Making an interactive periodic table of the elements using VC++ Pin
b_girl23-Sep-03 3:09
b_girl23-Sep-03 3:09 
GeneralRe: Making an interactive periodic table of the elements using VC++ Pin
Jason Henderson25-Sep-03 9:04
Jason Henderson25-Sep-03 9:04 
GeneralRe: Making an interactive periodic table of the elements using VC++ Pin
b_girl25-Sep-03 9:24
b_girl25-Sep-03 9:24 
GeneralRe: Making an interactive periodic table of the elements using VC++ Pin
Jason Henderson25-Sep-03 9:48
Jason Henderson25-Sep-03 9:48 
GeneralRe: Making an interactive periodic table of the elements using VC++ Pin
b_girl25-Sep-03 9:53
b_girl25-Sep-03 9:53 
GeneralRe: Making an interactive periodic table of the elements using VC++ Pin
Jason Henderson25-Sep-03 10:48
Jason Henderson25-Sep-03 10:48 
Questionwhat is the ? thingy called? Pin
keegan22-Sep-03 8:27
keegan22-Sep-03 8:27 
AnswerRe: what is the ? thingy called? Pin
ZoogieZork22-Sep-03 8:32
ZoogieZork22-Sep-03 8:32 
AnswerRe: what is the ? thingy called? Pin
Michael Dunn22-Sep-03 9:04
sitebuilderMichael Dunn22-Sep-03 9:04 
GeneralRe: what is the ? thingy called? Pin
keegan22-Sep-03 9:15
keegan22-Sep-03 9:15 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.