Is possible to read and to set the position of the cursor in one editor gadget?
If yes how?
Thanks
blueznl wrote:Reply deleted. Mine was Windows based
Code: Select all
IO = EditorGadget(#PB_Any, 6, 207, 540, 260 , #PB_Editor_ReadOnly)
GadgetToolTip(IO, "Input/Output Window")
;remove from compiled version
For k=0 To 50
AddGadgetItem(IO, -1, "15:20:36 <T1 This is only an example n° "+Str(k))
Next
;'does not work
GadgetID = GadgetID(IO)
length = gtk_text_get_length_(GadgetID) ;returns 0
gtk_editable_set_position_(GadgetID, length) ;does nothingCode: Select all
buffer = gtk_text_view_get_buffer_(GadgetID(#Gadget_Form1_Editor1))
gtk_text_buffer_place_cursor_(buffer,?)
