Page 1 of 1

Jump to a position in an editorgadget

Posted: Fri Jul 25, 2014 12:34 pm
by marcoagpinto
We need a command to jump to a position in a listicongadget.

I have been doing it in Windows with:

Code: Select all

           CompilerIf #PB_Compiler_OS=#PB_OS_Windows
             Debug "Windows"
             SendMessage_(GadgetID(#EDITOR_GADGET_WINDOW_ADD_EDIT_WORD), #EM_SETSEL, t, t)
             SetActiveGadget(#EDITOR_GADGET_WINDOW_ADD_EDIT_WORD)
           CompilerEndIf
Someone told me the equivalent to Linux but it didn't work very well.

Re: Jump to a position in an editorgadget

Posted: Fri Jul 25, 2014 12:38 pm
by Fred
SetGadgetState() ?

Re: Jump to a position in an editorgadget

Posted: Fri Jul 25, 2014 12:40 pm
by marcoagpinto
Fred wrote:SetGadgetState() ?
What? Does it work with that?
:twisted: :evil:

Re: Jump to a position in an editorgadget

Posted: Fri Jul 25, 2014 12:43 pm
by marcoagpinto
Buaaaaaaaaaaa

I was looking in the help of 5.30 and it doesn't mention editorgadgets with that command...

:shock:

Freddy, is it something you could add?

Thanks!

Re: Jump to a position in an editorgadget

Posted: Fri Jul 25, 2014 1:00 pm
by Fred
Well you talked about ListIconGadget() in your first post.

Re: Jump to a position in an editorgadget

Posted: Fri Jul 25, 2014 1:31 pm
by marcoagpinto
Fred wrote:Well you talked about ListIconGadget() in your first post.
Buaaaaaaaa

I meant EditorGadget

:cry: :oops: