开发者

GTK List with images and Text and other widgets

开发者 https://www.devze.com 2022-12-09 05:21 出处:网络
I am building a simple chat application under GTK+ and C, In that i need to display List of contacts like follows.

I am building a simple chat application under GTK+ and C,

In that i need to display List of contacts like follows.

1. Window Containing contact list with contacts Presence and status Icons and name.

+-----------------------------------------+
| [PresenceImage1] [Name1] [StatusImage1] |
| [PresenceImage2] [Name2] [StatusImage2] |
| [PresenceImage3] [Name3] [StatusImage3] |
+-----------------------------------------+

2. When user clicks on any of the contacts it开发者_如何学编程 will expand

and will display information/options with the list.

+-----------------------------------------+
| [PresenceImage1] [Name1] [StatusImage1] |
|  +------------------------------------+ |
|  |[ButtonCall]       [ButtonMoreInfo] | |
|  |[ContactImage]                      | |
|  +------------------------------------+ |
| [PresenceImage2] [Name2] [StatusImage2] |
| [PresenceImage3] [Name3] [StatusImage3] |
+-----------------------------------------+

Is it possible in GTK?

How to create 1st and 2nd Screens?

Which components to use achieve this functionality?

Can anyone provide code snaps/examples?

Thanks!

Pradeep.


GtkExpander

0

精彩评论

暂无评论...
验证码 换一张
取 消