LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 03-20-2006, 04:01 AM   #1
santhosh.linux
Member
 
Registered: Nov 2005
Location: India
Posts: 42

Rep: Reputation: 15
GtkScrolledwindow


Hai friends,

any one had exp with scrolled window....actually i want one desire.....scrollbar has to come down auto matically...

how can i acheive it
any inputs to me

thanks in advance

santhosh
 
Old 03-20-2006, 06:16 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
can you actually describe in more detail what you want? where does automation come into this??
 
Old 03-21-2006, 05:36 AM   #3
stephenwalter
Member
 
Registered: Jul 2005
Location: india,coimbatore
Distribution: Fedora core 4
Posts: 85

Rep: Reputation: 15
hello,
You have not mentioned the GUI toolkit that you have used gtk or qt. If it is gtk then use the following lines of code after you have inserted the text onto the screen.
gtk_text_buffer_get_bounds(buffer,&start,&end);
endmarker = gtk_text_buffer_create_mark(buffer,"end mark",&end,FALSE);
gtk_text_view_scroll_to_mark (text,endmarker,0,FALSE,0,0);

where buffer is the text buffer you have added into ur text view, start and end are of type GtkTextIter ,endmarker is of type GtkTextMark* and text is your text view have added in your scrolled window.

hope this helps.

Regards,
S.Suresh Stephen
 
Old 03-21-2006, 12:40 PM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
well seeing as he is asking about a GtkScrolledWindow widget i doubt it's gonna be QT ;-)
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 11:36 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration