[Gambas-user] Gambas-user Digest, Vol 89, Issue 44

Federico Allegretti allegfede at ...626...
Tue Oct 22 12:35:03 CEST 2013


Re: [Gambas-user] R: "Strange" coordinates of mouse with _Drop() event

be carefull, the beaviour of mouse.x (and mouse.y) is different from
drop.x  and drop.y :D


On Tue, Oct 22, 2013 at 1:12 AM,
<gambas-user-request at lists.sourceforge.net>wrote:

> Send Gambas-user mailing list submissions to
>         gambas-user at lists.sourceforge.net
>
> To subscribe or unsubscribe via the World Wide Web, visit
>         https://lists.sourceforge.net/lists/listinfo/gambas-user
> or, via email, send a message with subject or body 'help' to
>         gambas-user-request at lists.sourceforge.net
>
> You can reach the person managing the list at
>         gambas-user-owner at lists.sourceforge.net
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Gambas-user digest..."
>
>
> Today's Topics:
>
>    1. How do I access an individual cell in a DataBrowser (Marty)
>    2. Webpages, how to hable in lighttpd,       how to call from
>       browser!!??? (PICCORO McKAY Lenz)
>    3. Editor - How to (Charlie)
>    4. Re: Program picture icon (Charlie)
>    5. Re: Container help (Charlie)
>    6. Re: Editor - How to (Bruce)
>    7. Re: R: "Strange" coordinates of mouse with _Drop() event
>       (Beno?t Minisini)
>    8. Re: R: "Strange" coordinates of mouse with _Drop()        event
>       (Ru Vuott)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Mon, 21 Oct 2013 11:18:04 -0400
> From: Marty <mmcg29440 at ...3163...>
> Subject: [Gambas-user] How do I access an individual cell in a
>         DataBrowser
> To: gambas-user at lists.sourceforge.net
> Message-ID: <526545AC.40806 at ...3163...>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> Hello,
>
> I would like to access an individual cell in a DataBrowser. I want the
> user to enter one value into a cell. Then I want to validate the entry
> and save another value in its place. Is there a way to include a
> datacombo box in a dataview? That might work better.
>
> Marty
>
>
>
> ------------------------------
>
> Message: 2
> Date: Mon, 21 Oct 2013 15:15:30 -0430
> From: PICCORO McKAY Lenz <mckaygerhard at ...626...>
> Subject: [Gambas-user] Webpages, how to hable in lighttpd,      how to call
>         from browser!!???
> To: mailing list for gambas users <gambas-user at lists.sourceforge.net>
> Message-ID:
>         <CALci+FQm3B1Pd=
> GXEEpzGWqH9owExQ3h2J4Lhx890n+-xtP2ng at ...627...>
> Content-Type: text/plain; charset=UTF-8
>
> i made small cgi scripts, now  into gambas webpages i see nice but i
> cannot made work in lighttpd
>
> how i must handle this webpages in web server? , and how must i call
> in web browser?
>
> ALso
>
> note that the webpage are a form also, so any changes here are NOT
> code, code are in class file, so then how can i desing the webpage
> "form"?
>
>
> --
> Lenz McKAY Gerardo (PICCORO)
> http://qgqlochekone.blogspot.com
>
>
>
> ------------------------------
>
> Message: 3
> Date: Mon, 21 Oct 2013 14:12:48 -0700 (PDT)
> From: Charlie <charlie at ...2793...>
> Subject: [Gambas-user] Editor - How to
> To: gambas-user at lists.sourceforge.net
> Message-ID: <1382389968725-43740.post at ...3046...>
> Content-Type: text/plain; charset=us-ascii
>
> I want to use the "Editor" feature to highlight part of a string in bold. I
> have looked at the "Highlighter" example provided in Gambas 3.5 (and
> perhaps
> earlier versions) but I just can't work it out.
>
> I would like something like: -
>
> String1 = "Hello"
> String2 = " to you"
> Editor1.text= String1 & String2.Bold
>
> I know it does not work this way but I hope this helps explain what I am
> looking for.
>
> Thanks in advance for any help.
>
> [System]
> OperatingSystem=Linux
> Kernel=3.5.0-32-generic
> Architecture=x86
> Distribution=Linux Mint 14 Nadia
> Desktop=GNOME
> Theme=QGtk
> Language=en_GB.UTF-8
> Memory=7990M
> [Libraries]
> Cairo=libcairo.so.2.11200.2
> Curl=libcurl.so.4.2.0
> DBus=libdbus-1.so.3.7.2
> GStreamer=libgstreamer-0.10.so.0.30.0
> GStreamer=libgstreamer-1.0.so.0.1.0
> GTK+=libgtk-x11-2.0.so.0.2400.13
> OpenGL=libGL.so.1.2.0
> Poppler=libpoppler.so.28.0.0
> Qt4=libQtCore.so.4.8.3
> SDL=libSDL-1.2.so.0.11.4
>
>
>
> --
> View this message in context:
> http://gambas.8142.n7.nabble.com/Editor-How-to-tp43740.html
> Sent from the gambas-user mailing list archive at Nabble.com.
>
>
>
> ------------------------------
>
> Message: 4
> Date: Mon, 21 Oct 2013 14:18:36 -0700 (PDT)
> From: Charlie <charlie at ...2793...>
> Subject: Re: [Gambas-user] Program picture icon
> To: gambas-user at lists.sourceforge.net
> Message-ID: <1382390316577-43741.post at ...3046...>
> Content-Type: text/plain; charset=us-ascii
>
> Bump!
>
>
>
> --
> View this message in context:
> http://gambas.8142.n7.nabble.com/Program-picture-icon-tp43471p43741.html
> Sent from the gambas-user mailing list archive at Nabble.com.
>
>
>
> ------------------------------
>
> Message: 5
> Date: Mon, 21 Oct 2013 14:19:27 -0700 (PDT)
> From: Charlie <charlie at ...2793...>
> Subject: Re: [Gambas-user] Container help
> To: gambas-user at lists.sourceforge.net
> Message-ID: <1382390367113-43742.post at ...3046...>
> Content-Type: text/plain; charset=us-ascii
>
> Bump
>
>
>
> --
> View this message in context:
> http://gambas.8142.n7.nabble.com/Container-help-tp43472p43742.html
> Sent from the gambas-user mailing list archive at Nabble.com.
>
>
>
> ------------------------------
>
> Message: 6
> Date: Tue, 22 Oct 2013 08:11:11 +1030
> From: Bruce <bbruen at ...2308...>
> Subject: Re: [Gambas-user] Editor - How to
> To: gambas-user at lists.sourceforge.net
> Message-ID: <1382391671.3512.23.camel at ...2688...>
> Content-Type: text/plain; charset="UTF-8"
>
> On Mon, 2013-10-21 at 14:12 -0700, Charlie wrote:
> > I want to use the "Editor" feature to highlight part of a string in
> bold. I
> > have looked at the "Highlighter" example provided in Gambas 3.5 (and
> perhaps
> > earlier versions) but I just can't work it out.
> >
> > I would like something like: -
> >
> > String1 = "Hello"
> > String2 = " to you"
> > Editor1.text= String1 & String2.Bold
> >
> > I know it does not work this way but I hope this helps explain what I am
> > looking for.
> >
> > Thanks in advance for any help.
>
> >
> >
> [Quicky]
> [From memory]
>
> String2 = "<b> to you</b>"
> Editor1.richtext= String1 & String2.Bold
>
> (but I think you want more than that?)
>
> Bruce
>
>
>
>
> ------------------------------
>
> Message: 7
> Date: Mon, 21 Oct 2013 23:59:23 +0200
> From: Beno?t Minisini <gambas at ...1...>
> Subject: Re: [Gambas-user] R: "Strange" coordinates of mouse with
>         _Drop() event
> To: mailing list for gambas users <gambas-user at lists.sourceforge.net>
> Message-ID: <5265A3BB.6080200 at ...1...>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> Le 21/10/2013 09:17, Ru Vuott a ?crit :
> > Hello,
> >
> > I would like to draw attention to my message, highlighting the strange
> coordinates returned by the mouse with the event _Drop ().
> >
> > Is it normal or there is a bug.
> >
> > Thanks
> > vuott
> >
> >
> >
> > --------------------------------------------
> > Dom 20/10/13, Ru Vuott <vuott at ...325...> ha scritto:
> >
> >   Oggetto: [Gambas-user] "Strange" coordinates of mouse with _Drop()
> event
> >   A: gambas-user at lists.sourceforge.net
> >   Cc: gambas at ...1...
> >   Data: Domenica 20 ottobre 2013, 00:22
> >
> >   Hello,
> >
> >   on a Form I have a "ScrollView" and separately a
> >   "PictureBox", in which there is the image I'll drag then
> >   with the mouse inside the "ScrollView".
> >
> >   Here the code:
> >   **************************************
> >   Public Sub Form_Open()
> >
> >      ScrollView1.Drop = True
> >
> >   End
> >
> >
> >   Public Sub PictureBox1_MouseDrag()
> >
> >      If Mouse.Left Then
> >        Drag.Icon = Last.Picture
> >
> >        Last.Drag(Last.Picture.Image)
> >
> >      Endif
> >
> >   End
> >
> >
> >   Public Sub ScrollView1_Drop()
> >
> >    Dim pb As PictureBox
> >    Dim pc As Picture
> >
> >      With pb = New
> >   PictureBox(ScrollView1)
> >        .X = Mouse.X
> >        .Y = Mouse.Y
> >        .Picture = Drag.Data.Picture
> >
> >        .W = Drag.Data.Picture.W
> >        .H = Drag.Data.Picture.H
> >      End With
> >
> >
> >   ' In console I read the "very strange" coordinates of mouse
> >   pointer:
> >      With Mouse
> >        Print .X
> >        Print .Y
> >      End With
> >
> >   End
> >   **************************************
> >
> >   Where I'm wrong?
> >
> >
> >
> >   Best regards
> >   vuottttt
> >
>
> Please provide a project that reproduces the bug.
>
> Regards,
>
> --
> Beno?t Minisini
>
>
>
> ------------------------------
>
> Message: 8
> Date: Tue, 22 Oct 2013 00:12:27 +0100 (BST)
> From: Ru Vuott <vuott at ...325...>
> Subject: Re: [Gambas-user] R: "Strange" coordinates of mouse with
>         _Drop() event
> To: gambas at ...1...,       mailing list for gambas users
>         <gambas-user at lists.sourceforge.net>
> Message-ID:
>         <1382397147.16646.YahooMailBasic at ...3065...>
> Content-Type: text/plain; charset="utf-8"
>
> Hello Beno?t,
>
> well, at this time we are also discussing this issue in the forum of the
> Italian community of programmers Gambas .
>
> I am attaching a simple application .
> I would like to point out that when you start to drag the image to be
> dredged, also the X and Y coordinates of the mouse pointer - relative to
> the object (in the example of the application attached it is a "PictureBox"
> ) that contains the image to drag - are stored.
>
> Then , when the release occurs , and therefore is raised the event of
> _Drop( ) inside another container (in the example of the attached
> application it is a "ScrollView" ) , the dragged object is not released to
> the coordinates in which the mouse pointer is located at the time, but to
> the coordinates previously stored when dragging begins !!!
>
> So the object is released in the other container (the ScrollView) to the
> coordinates "where" the mouse was clicked (inside of the PictureBox), when
> dragging of the image is started.
>
> And more, I known however a slight displacement of the coordinate values
> ??at the time of the event of _Drop( ) compared to those stored in the time
> of initiation of the drag , and for the accuracy : X - 8  and Y + 2.
>
> I hope I have been clear enough.  :-(
>
> Best regards
> vuotttt
>
>
>
>
> --------------------------------------------
> Lun 21/10/13, Beno?t Minisini <gambas at ...1...> ha scritto:
>
>  Oggetto: Re: [Gambas-user] R: "Strange" coordinates of mouse with _Drop()
> event
>  A: "mailing list for gambas users" <gambas-user at lists.sourceforge.net>
>  Data: Luned? 21 ottobre 2013, 23:59
>
>  Le 21/10/2013 09:17, Ru Vuott a
>  ?crit :
>  > Hello,
>  >
>  > I would like to draw attention to my message,
>  highlighting the strange coordinates returned by the mouse
>  with the event _Drop ().
>  >
>  > Is it normal or there is a bug.
>  >
>  > Thanks
>  > vuott
>  >
>  >
>  >
>  > --------------------------------------------
>  > Dom 20/10/13, Ru Vuott <vuott at ...325...> ha
>  scritto:
>  >
>  >???Oggetto: [Gambas-user] "Strange"
>  coordinates of mouse with _Drop() event
>  >???A: gambas-user at lists.sourceforge.net
>  >???Cc: gambas at ...1...
>  >???Data: Domenica 20 ottobre 2013, 00:22
>  >
>  >???Hello,
>  >
>  >???on a Form I have a "ScrollView" and
>  separately a
>  >???"PictureBox", in which there is the
>  image I'll drag then
>  >???with the mouse inside the
>  "ScrollView".
>  >
>  >???Here the code:
>  >???**************************************
>  >???Public Sub Form_Open()
>  >
>  >? ? ? ScrollView1.Drop = True
>  >
>  >???End
>  >
>  >
>  >???Public Sub PictureBox1_MouseDrag()
>  >
>  >? ? ? If Mouse.Left Then
>  >? ? ? ? Drag.Icon = Last.Picture
>  >
>  >? ? ? ?
>  Last.Drag(Last.Picture.Image)
>  >
>  >? ? ? Endif
>  >
>  >???End
>  >
>  >
>  >???Public Sub ScrollView1_Drop()
>  >
>  >? ? Dim pb As PictureBox
>  >? ? Dim pc As Picture
>  >
>  >? ? ? With pb = New
>  >???PictureBox(ScrollView1)
>  >? ? ? ? .X = Mouse.X
>  >? ? ? ? .Y = Mouse.Y
>  >? ? ? ? .Picture =
>  Drag.Data.Picture
>  >
>  >? ? ? ? .W = Drag.Data.Picture.W
>  >? ? ? ? .H = Drag.Data.Picture.H
>  >? ? ? End With
>  >
>  >
>  >???' In console I read the "very strange"
>  coordinates of mouse
>  >???pointer:
>  >? ? ? With Mouse
>  >? ? ? ? Print .X
>  >? ? ? ? Print .Y
>  >? ? ? End With
>  >
>  >???End
>  >???**************************************
>  >
>  >???Where I'm wrong?
>  >
>  >
>  >
>  >???Best regards
>  >???vuottttt
>  >
>
>  Please provide a project that reproduces the bug.
>
>  Regards,
>
>  --
>  Beno?t Minisini
>
>
>  ------------------------------------------------------------------------------
>  October Webinars: Code for Performance
>  Free Intel webinars can help you accelerate application
>  performance.
>  Explore tips for MPI, OpenMP, advanced profiling, and more.
>  Get the most from
>  the latest Intel processors and coprocessors. See abstracts
>  and register >
>
> http://pubads.g.doubleclick.net/gampad/clk?id=60135991&iu=/4140/ostg.clktrk
>  _______________________________________________
>  Gambas-user mailing list
>  Gambas-user at lists.sourceforge.net
>  https://lists.sourceforge.net/lists/listinfo/gambas-user
> -------------- next part --------------
> A non-text attachment was scrubbed...
> Name: Drag-Drop-0.0.1.tar.gz
> Type: application/force-download
> Size: 5061 bytes
> Desc: not available
>
> ------------------------------
>
>
> ------------------------------------------------------------------------------
> October Webinars: Code for Performance
> Free Intel webinars can help you accelerate application performance.
> Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most
> from
> the latest Intel processors and coprocessors. See abstracts and register >
> http://pubads.g.doubleclick.net/gampad/clk?id=60135991&iu=/4140/ostg.clktrk
>
> ------------------------------
>
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
>
> End of Gambas-user Digest, Vol 89, Issue 44
> *******************************************
>



-- 
Messagenet VOIP: 5338759

My blogs: http://altri-media.blogspot.com/
               http://subbaqquerie.blogspot.com/

YouTube Channel: AllegFede

VIMEO HD videos: http://www.vimeo.com/user1912745/videos



More information about the User mailing list