Re: Cursor in Grid

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



No, because the grids will ALL refresh when moving to the WAIT WINDOW. So
what you're seeing is probably correct for the way VFP operates.

--
Fred
Microsoft Visual FoxPro MVP


"HerbertDB@GTECH" <spam@xxxxxxxx> wrote in message
news:e6T5T%23crFHA.3836@xxxxxxxxxxxxxxxxxxxxxxx
> Yes, but when i click on the commandbutton, even if there is no command on
> it
>
> or I just loose focus on grid1 with recordsource cursor1, the selected
> cursor
>
> changes to curso6. It always selects the last cursor (Curso6) I created on
> the Init of the
>
> form. When I loose focus on grid1, grid2, grid3,4 & 5 to the command
> button
> it selects Cursor6.
>
> Isnt it right that if the focus is on Grid1 with Cursor1 selected, when i
> set focus to commandbutton
>
> the selected cursor should still be Curso1? It doesnt, it changes to the
> last cursor I created.
>
> "Fred Taylor" <ftaylor@xxxxxxxx!REMOVE> wrote in message
> news:eIZt0mcrFHA.2592@xxxxxxxxxxxxxxxxxxxxxxx
>> As a grid refreshes, it automatically changes the work area to its
>> RecordSource.
>>
>> --
>> Fred
>> Microsoft Visual FoxPro MVP
>>
>>
>> "HerbertDB@GTECH" <spam@xxxxxxxx> wrote in message
>> news:OMqvaHcrFHA.3080@xxxxxxxxxxxxxxxxxxxxxxx
>> > But there is no command to change work area, the command is "wait
> window"
>> >
>> > "Anders" <anders.altberg@xxxxxxxxx> wrote in message
>> > news:BF39D881.29AE%anders.altberg@xxxxxxxxxxxx
>> >> FoxPro is functioning as designed. VFP changes in and out of workareas
> as
>> >> needed or as directed by a command or function. There is no problem
>> >> really
>> >> because your program is working exactly as it should.
>> >> If you need to advertise the alias of the RecordSource of a particlar
>> >> grid
>> >> you could put some code in the When event of the grid to update a
> label,
>> >> then empty the label caption in the Valid of the same grid.
>> >> -Anders
>> >>
>> >>
>> >>
>> >> Den 05-08-30 08.35, i artikeln eAYHIsSrFHA.3596@xxxxxxxxxxxxxxxxxxxx,
>> > skrev
>> >> "HerbertDB@GTECH" <spam@xxxxxxxx>:
>> >>
>> >> > Hi,
>> >> >
>> >> > Im using VFP8, Windows 2000
>> >> >
>> >> > I have a form with 6 Grids each with its own recordsource set
>> >> >
>> >> > to a temporary table and each have one record.
>> >> >
>> >> > Grid1 - Cursor1
>> >> > Grid2 - Cursor2
>> >> > Grid3 - Cursor3
>> >> > Grid4 - Cursor4 and so on
>> >> >
>> >> > I have a command button with a command "Wait Window Alias()"
>> >> >
>> >> > I select Grid1 and Click commandbutton I get Cursor6
>> >> > I select Grid2 and Click commandbutton I get Cursor6
>> >> > I select Grid3 and Click commandbutton I get Cursor6
>> >> >
>> >> > and so on.
>> >> >
>> >> > I checked the Data Session, when I select Grid1, the current cursor
>> >> >
>> >> > selected is Cursor1, Grid2 and Curso2. but when I click the
>> > commandbutton
>> >> >
>> >> > the selected cursor changes to Cursor6. No other commands on the
> form.
>> >> >
>> >> >
>> >> > Please help thanks.
>> >> >
>> >> >
>> >>
>> >
>> >
>>
>>
>
>


.



Relevant Pages

  • SV: Cursor in Grid
    ... It may seem 'not right' to you but that's the way VFP works. ... SELECT in the WHEN of each grid then it would stick to ... > Yes, but when i click on the commandbutton, even if there is no command on ... It always selects the last cursor I created on ...
    (microsoft.public.fox.programmer.exchange)
  • Re: Window Blinks
    ... Thanks for your help, but I went to Tools, Options, and looked under every tab and cannot find where that option that has the news account refreshed or updated, is. ... I looked in both the O.E. window, ... The page will flicker, like it's blinking, like I clicked the Refresh F5 button, about once every couple seconds. ... I even have a problem _finding_ the cursor many times, and the scrolling bar along the side goes up and down erratically whenever it wants and I cannot control the page. ...
    (microsoft.public.windows.inetexplorer.ie6_outlookexpress)
  • Re: Window Blinks
    ... I looked in both the O.E. window, ... >> The page will flicker, like it's blinking, like I clicked the Refresh F5 ... >> Also, when I am typing in Outlook Express, the cursor will suddenly jump ... > Do not enable the option to have the news account updated every N minutes. ...
    (microsoft.public.windows.inetexplorer.ie6_outlookexpress)
  • Microsoft Word focus issue when displaying a form from a Addin
    ... Microsoft Word the Word window is focussed, but the cursor is not blinking, ... VB.NET from a commandbutton successfully without this issue? ...
    (microsoft.public.office.developer.com.add_ins)
  • How do you change button color by moving over it?
    ... Is it possible to change the colour of a commandbutton by moving over ... and change back to original color once the cursor is moved off of the ...
    (microsoft.public.excel.programming)