Jump to a position in an editorgadget

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
User avatar
marcoagpinto
Addict
Addict
Posts: 1045
Joined: Sun Mar 10, 2013 3:01 pm
Location: Portugal
Contact:

Jump to a position in an editorgadget

Post 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.
Fred
Administrator
Administrator
Posts: 18162
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: Jump to a position in an editorgadget

Post by Fred »

SetGadgetState() ?
User avatar
marcoagpinto
Addict
Addict
Posts: 1045
Joined: Sun Mar 10, 2013 3:01 pm
Location: Portugal
Contact:

Re: Jump to a position in an editorgadget

Post by marcoagpinto »

Fred wrote:SetGadgetState() ?
What? Does it work with that?
:twisted: :evil:
User avatar
marcoagpinto
Addict
Addict
Posts: 1045
Joined: Sun Mar 10, 2013 3:01 pm
Location: Portugal
Contact:

Re: Jump to a position in an editorgadget

Post 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!
Fred
Administrator
Administrator
Posts: 18162
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: Jump to a position in an editorgadget

Post by Fred »

Well you talked about ListIconGadget() in your first post.
User avatar
marcoagpinto
Addict
Addict
Posts: 1045
Joined: Sun Mar 10, 2013 3:01 pm
Location: Portugal
Contact:

Re: Jump to a position in an editorgadget

Post by marcoagpinto »

Fred wrote:Well you talked about ListIconGadget() in your first post.
Buaaaaaaaa

I meant EditorGadget

:cry: :oops:
Post Reply