Click here to Skip to main content
15,889,335 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Clickable Bitmap UI question Pin
b_girl3-Oct-03 5:37
b_girl3-Oct-03 5:37 
GeneralRe: Clickable Bitmap UI question Pin
Jason Henderson3-Oct-03 5:45
Jason Henderson3-Oct-03 5:45 
GeneralRe: Clickable Bitmap UI question Pin
b_girl3-Oct-03 5:57
b_girl3-Oct-03 5:57 
GeneralRe: Clickable Bitmap UI question Pin
Jason Henderson3-Oct-03 6:01
Jason Henderson3-Oct-03 6:01 
GeneralRe: Clickable Bitmap UI question Pin
b_girl3-Oct-03 6:40
b_girl3-Oct-03 6:40 
GeneralRe: Clickable Bitmap UI question Pin
Jason Henderson3-Oct-03 6:44
Jason Henderson3-Oct-03 6:44 
GeneralRe: Clickable Bitmap UI question Pin
b_girl3-Oct-03 7:07
b_girl3-Oct-03 7:07 
GeneralRe: Clickable Bitmap UI question Pin
Terry O'Nolley3-Oct-03 8:57
Terry O'Nolley3-Oct-03 8:57 
I've just submitted an article about this. You can check out the demo files/source code at:

http://www.bj-consulting.com/tln/pte_demo.zip[^]

I didn't go the bitmap route though. It is a really nifty way of determining which element was clicked on, but if you later decided you wanted to include the dicovery date of the element (or any other text) then you would have to edit your bitmap by adding text in 117 different places and when you scaled your window the text would start to look all pixellated and illegible.

The code to draw the entire table is only 14 lines and it is scalable as you change the window size. It also highlights all of the elements in the chemical group you have selected with a red border. Right clicking an element adds it to the listbox, double clicking opens a dialog box with the chemical details. Thew controls are also resizable.

Oh - it includes an MS-Access database with the elemnt info - you'll need to create an ODBC mapping to the DB - just name the datasource PeriodicTableApp










GeneralRe: Clickable Bitmap UI question Pin
b_girl3-Oct-03 9:05
b_girl3-Oct-03 9:05 
QuestionHow to make a Dialog box Pop up on receiving a event Pin
Deepak Samuel3-Oct-03 3:12
Deepak Samuel3-Oct-03 3:12 
AnswerRe: How to make a Dialog box Pop up on receiving a event Pin
jmkhael3-Oct-03 3:18
jmkhael3-Oct-03 3:18 
AnswerRe: How to make a Dialog box Pop up on receiving a event Pin
David Crow3-Oct-03 7:22
David Crow3-Oct-03 7:22 
Generalconnect or disconnect ADSL Pin
Mnu3-Oct-03 2:01
Mnu3-Oct-03 2:01 
GeneralCouple question about Dialog in MFC Pin
NewHSKid3-Oct-03 1:35
NewHSKid3-Oct-03 1:35 
GeneralRe: Couple question about Dialog in MFC Pin
Jagadeesh VN3-Oct-03 1:58
Jagadeesh VN3-Oct-03 1:58 
GeneralB, I, U Pin
Florin Ochiana3-Oct-03 1:33
Florin Ochiana3-Oct-03 1:33 
GeneralRe: B, I, U Pin
Jagadeesh VN3-Oct-03 1:52
Jagadeesh VN3-Oct-03 1:52 
Generalhandling abnormal termination Pin
yourbuddy773-Oct-03 0:49
yourbuddy773-Oct-03 0:49 
GeneralRe: handling abnormal termination Pin
Anand Paranjpe3-Oct-03 1:19
Anand Paranjpe3-Oct-03 1:19 
GeneralCTreeCtrl and deleting items Pin
vprat2-Oct-03 22:57
vprat2-Oct-03 22:57 
GeneralRe: CTreeCtrl and deleting items Pin
Tibor Blazko2-Oct-03 23:50
Tibor Blazko2-Oct-03 23:50 
GeneralRe: CTreeCtrl and deleting items Pin
vprat2-Oct-03 23:59
vprat2-Oct-03 23:59 
GeneralRe: CTreeCtrl and deleting items Pin
Tibor Blazko3-Oct-03 0:03
Tibor Blazko3-Oct-03 0:03 
GeneralRe: CTreeCtrl and deleting items Pin
vprat3-Oct-03 0:14
vprat3-Oct-03 0:14 
GeneralRe: CTreeCtrl and deleting items Pin
Tibor Blazko3-Oct-03 1:06
Tibor Blazko3-Oct-03 1:06 

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.