Re: clipboard support & ...

jd <[email protected]> Mon, 15 Apr 2013 10:10:28 +0100
Newsgroups gmane.comp.windows.gui4cli
Message-ID <[email protected]>
Hello Dimitris

On 04/14/2013, you wrote:

> Hi Joseph,
>
> I tried "SetClip TEXT $var" and it works fine.
here too;
SetClip $var TEXT 
did not work however . Sorry  for misreading the doc .

Joseph

> I pasted the contents into scied and also an excel sheet I had running,
> so its available everywhere.
>
> Dimitris
>
>
> On Fri, Apr 12, 2013 at 6:25 PM, jd <[email protected]> wrote:
>
>> **
>>
>>
>> Hello Dimitris
>>
>>
>> On 04/12/2013, you wrote:
>>
>> >>
>> >>
>> >> > 1.) I have tried to use the clipboard but as far as i can see it is
>> >> > not ossible to get what is in the clipboard when just selected
>>
>> >> > (Ctrl_C
>> > Crtl_X)
>> >> > I used to then display that value say in a windowtitle, to be sure
>> >> > what
>> > the
>> >> > clipboard contains before pasting
>> >> >
>> >> > In fact i guess what is needed sis some
>> >> > "xONSELECT " event,
>> >>
>> >
>> > That probably needs a system hook to monitor clipboard changes. Also
>> >  it ould have to tell you its from scied and not some other program. I
>> >  may dd it sometime, but for now why not just have the user click a
>> >  button or omething when they want the contents spell-checked.
>> I don't need to know from where it comes,: it is just giving me a
>> warning that
>> if i use the clipboard for pasting, that's what will be pasted.
>>
>> As i said
>> under AOS it is possible using
>> xNOTIFRY clips:0
>>
>> WAIT FILE CLIPS:0 0 #this/MyWait
>> seems its logical Windows equivalent.
>>
>> >
>> >> > 2). Treeviews do not open on the given assign, but just above and
>> >> >  show
>>> stuff
>> >> > i don't need, can i suppress that?
>> >>
>> >
>> > I don't understand - example?
>>
>> xTreeview 0 0 90 120 Home::/Gui TV1
>>
>> will open the part of the tree containing the folder, but not the Gui
>> folder
>> itself
>> Same effect with
>> Treeview cd Home:/Gui
>> The full "upper" or "outer" tree stays present also., and also the
>> assign icons
>> The behavior i would like to be able to force would be similar to what
>> happens
>> when you do a cd to a llistview : i would only see the "inner" part of
>> the tree/ . I guess its not possible ?
>>
>> >
>> >
>> >> 3). When addressing a .htm file as
>> >> > RUN $File2Sh Open
>> >> > and the browser window is not open, the result will not show up,
>> >> >   how n
>> > id
>> >> > force the window to open?
>> >>
>> >
>> > If you "run" an .htm file, your default browser should open up and
>> >  show t. I tried though and as you say, if the browser isn't already
>> >  open it ust opens and waits for the page to load, but it never does..
>> Sometimes it does load the page and opens, at other times it loads th
>> page, but does not open, if you look and open it from the taskbar, it is
>> present though
>>
>> > I've no idea why this happens...
>> > You can open ie with run iexplore.exe
>> >
>> >
>> >
>> >> > 4) Impose SciEd ( &other applications te recognise what is put in
>> >> >   the ipboard
>> >> > .XBUTTON 30 35 145 40 'Impose clip'
>> >> > Input "clip" var "<BR>"
>> >> >
>> >> > SetWinTitle #this $var
>> >> >
>> >> > The result is shown in the title , but is not available in the
>> >> > clipboard for SciEd
>> >>
>> >
>> > Its SetClip TEXT $var
>>
>> Right, i used that, but the line was not copied in my previous message
>> :(
>
>> >
>> >
>> >> > Can the SetClip content be made available for all applications?
>> >>
>> >
>> > It should be already. The clipboard is system-wide.
>>
>> It is not on my system: i cannot copy the result into SciEd (eg)
>>
>> >
>> >
>> >> > So i wonder: if i can do it this way why should Gui4Cli not do it?
>> >> > Then the solution would be independent of SciEd.
>> >>
>> >
>> > How will you tell the editor what line to go to and what to select?
>> I was planning the following:
>>
>> A Get one tag (or a search word) in clipboard
>> I Save a file containing only one line with say the chosen tag
>> 2. Load the file in SciEd
>> Use .SCI_SELECTALL to have it in clipboard
>>
>> B Have a list of most used tags (or erroneous words) in a document
>> 1. Load it in SciEd
>> 2. Have it also say in a listview
>> 3. When clicking on the chosen tag (or erroneous word), get the line
>> number,
>> Have SciEd do
>> SCI_GOTOLINE (int line)
>> SCI_SETSELECTIONSTART( 0 ) or SCI_SETANCHOR( 0 )
>> pos= SCI_LINELENGTH (int line) or SCI_GETLINEENDPOS( int line)
>> SCI_SETSELECTIONEND(pos ) or SCI_SETCURRENTPOS(pos)
>>
>> Not brilliant i guess , but would do.
>>
>> Thanks for help
>>
>> Joseph
>>
>>  
>>
Regards



------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/gui4cli/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/gui4cli/join
    (Yahoo! ID required)

<*> To change settings via email:
    [email protected] 
    [email protected]

<*> To unsubscribe from this group, send an email to:
    [email protected]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/