Write in Editorgadget without Adjustment

Linux specific forum
Pinhead
User
User
Posts: 47
Joined: Fri Sep 09, 2005 11:24 pm

Write in Editorgadget without Adjustment

Post by Pinhead »

Hello,
I have written a procedure that coloring Html-Tags.
But when I write into the Editorgadget with gtk_text_insert,
the Sceen Position is changing. How can i save the
current screenposition (not the cursor position) and
recover it after gtk_text_insert?
Or alternativ can I disallow the Adjustment when writing?

Thanx
Volker
Pinhead
User
User
Posts: 47
Joined: Fri Sep 09, 2005 11:24 pm

Post by Pinhead »

Ok, no help....
In C the Code looks like this:

Code: Select all

...
text = gtk_text_new( NULL, NULL );
scroll = gtk_vscrollbar_new( GTK_TEXT( text )->vadj );
...
How is this Code in PB?

Code: Select all

scroll = gtk_vscrollbar_new_(GTK_TEXT_(text)->vadj)
throw this error: "GTK_TEXT_() is no function".
Post Reply