address book
address book
Whats the best way of implementing Address book kind of feature in wxwidgets. I mean something like phone book.
Hmmm...
Do you mean graphically (e.g. what controls to use for best visuals), or the logic for storing the data?
Do you mean graphically (e.g. what controls to use for best visuals), or the logic for storing the data?
OS: OpenSuSE, Ubuntu, Win XP Pro
wx: svn
Compiler: gcc 4.5.1, VC 2008, eVC 4
"If it was hard to write it should be hard to read..." - the unknown coder
"Try not! Do. Or do not. There is no try." - Yoda
wx: svn
Compiler: gcc 4.5.1, VC 2008, eVC 4
"If it was hard to write it should be hard to read..." - the unknown coder
"Try not! Do. Or do not. There is no try." - Yoda
Graphical view. There r some classes associated with grids like GridCellEditor and like. Will those be useful.
I want to display a list of strings among which user has to choose. The associated value with the choosed text should be displayed in some text box. And user must be able to add new contacts to the list. Just like a typical phone book.
And storage should be file(for persistance).
I want to display a list of strings among which user has to choose. The associated value with the choosed text should be displayed in some text box. And user must be able to add new contacts to the list. Just like a typical phone book.
And storage should be file(for persistance).
Then why not use a wxListCtrl for displaying the entries and upon selection, use wxTextCtrls to display/edit the values...Raghu wrote:Graphical view. There r some classes associated with grids like GridCellEditor and like. Will those be useful.
I want to display a list of strings among which user has to choose. The associated value with the choosed text should be displayed in some text box. And user must be able to add new contacts to the list. Just like a typical phone book.
And storage should be file(for persistance).
For data storage, I'd either do it using XML or with a small DB like SQLite.
OS: OpenSuSE, Ubuntu, Win XP Pro
wx: svn
Compiler: gcc 4.5.1, VC 2008, eVC 4
"If it was hard to write it should be hard to read..." - the unknown coder
"Try not! Do. Or do not. There is no try." - Yoda
wx: svn
Compiler: gcc 4.5.1, VC 2008, eVC 4
"If it was hard to write it should be hard to read..." - the unknown coder
"Try not! Do. Or do not. There is no try." - Yoda
-
- wxWorld Domination!
- Posts: 1339
- Joined: Wed Aug 03, 2005 8:10 am
- Location: BANGALORE, INDIA
- Contact:
I would go for some custom control that displays the name, and on clicking them expands to show the whole details, like in Skype with Yahoo type search button at the top. And to store the address, would use VCARD format.Then why not use a wxListCtrl for displaying the entries and upon selection, use wxTextCtrls to display/edit the values...
For data storage, I'd either do it using XML or with a small DB like SQLite.
-
- I live to help wx-kind
- Posts: 194
- Joined: Mon Aug 30, 2004 1:26 pm
- Location: PA, USA
- Contact: