Editor Gadget
Editor Gadget
Is there a way for the scroll bar in the editor gadget to stay down and be still when you keep on typing , i'm using it for a chatbox but when you come down to the edge it just stays there and you have to keep scrolling with the mouse . How can you keep it down ?
Re: Editor Gadget
Code: Select all
SendMessage_(GadgetID(0), #EM_SETSEL,-1,-1)
Code: Select all
Repeat
Select WindowEvent()
Case #PB_Event_Gadget
Select EventGadget()
Case 0 ;EDITOR GADGET
SendMessage_(GadgetID(0), #EM_SETSEL,-1,-1)
EndSelect
EndSelect
Forever
Re: Editor Gadget
[quote="BigB0ss"]
This works , however it scrolls 1 line ahead than it should be , when i try to scroll down a bit it moves up 1 line , can you do anything about this?
Code: Select all
SendMessage_(GadgetID(0), #EM_SETSEL,-1,-1)
Re: Editor Gadget
Use this to scroll one line up :
Code: Select all
SendMessage_(GadgetID(Gadget), #WM_VSCROLL, #SB_LINEUP, -1)
----
R Tape loading error, 0:1
R Tape loading error, 0:1