Search the web
Sign In
New User? Sign Up
nsbasic-ce · Forum for NS Basic/CE users
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Message search is now enhanced, find messages faster. Take it for a spin.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Grid click   Message List  
Reply | Forward Message #20261 of 20557 |
Re: Grid click

I try again and events "click" only work on Default Form, if I try this on other
Form not work, I not get any error messages

EMERSON VIER

--- In nsbasic-ce@yahoogroups.com, "George Henne" <gh@...> wrote:
>
> There is not enough info here to give much help.
>
> Have you added a grid object named "grid" to your project?
>
> Do you get any error messages?
>
> >I use the sample grid.nsb and includ the code
> >
> >Sub grid_Click
> >
> > Dim Linha
> > Dim Coluna
> > Coluna = grid.col
> > Linha = grid.row
> > MsgBox Grid.TextMatrix(Linha,Coluna)
> >
> >End Sub
> >
> >This work very well.
> >
> >I include this code in other project, this not work, not any information;...
> >
> >EMERSON VIER
> >
> >
> >
> >
> >
> >------------------------------------
> >
> >Yahoo! Groups Links
> >
> >
> >
>





Sat Jul 11, 2009 9:23 pm

emersonvier
Offline Offline
Send Email Send Email

Forward
Message #20261 of 20557 |
Expand Messages Author Sort by Date

I use the sample grid.nsb and includ the code Sub grid_Click Dim Linha Dim Coluna Coluna = grid.col Linha = grid.row MsgBox Grid.TextMatrix(Linha,Coluna) End...
EMERSON VIER
emersonvier
Offline Send Email
Jul 3, 2009
11:34 pm

There is not enough info here to give much help. Have you added a grid object named "grid" to your project? Do you get any error messages?...
George Henne
ghenne
Offline Send Email
Jul 6, 2009
1:24 pm

I try again and events "click" only work on Default Form, if I try this on other Form not work, I not get any error messages EMERSON VIER...
EMERSON VIER
emersonvier
Offline Send Email
Jul 11, 2009
9:24 pm

George, You have news about this? Regards, Emerson Vier...
EMERSON VIER
emersonvier
Offline Send Email
Jul 14, 2009
10:45 am

How are you creating the grid? Are you using AddObject in your code, or is it being created as part of your form?...
George Henne
ghenne
Offline Send Email
Jul 18, 2009
10:49 am

I use the "AddObject" Sub Form1_Load() On Error resume next AddObject "grid","grid",0,0,240,150 If err Then MsgBox "Grid control not installed. Please check...
EMERSON VIER
emersonvier
Offline Send Email
Jul 18, 2009
2:46 pm

I don't have much experience of multiple forms, but if you want multiple grids I find it easier to put them both on the same Form and then use the MOVE command...
rmrsoft
Offline Send Email
Jul 19, 2009
12:58 pm

The problem, is grid_click only work on default form Emerson Vier ... From: rmrsoft <alan@...> Sent: domingo, 19 de julho de 2009 09:58 To:...
EMERSON VIER
emersonvier
Offline Send Email
Jul 19, 2009
6:07 pm

Have a look to how the generated code does this. Create a form with a grid on it, save it as txt file, then open in Notepad. Sent from my iPhone On Jul 19,...
George Henne
ghenne
Offline Send Email
Jul 19, 2009
9:07 pm

Sorry but I do not understand your reply EMERSON VIER...
EMERSON VIER
emersonvier
Offline Send Email
Jul 26, 2009
9:44 pm

Save the nsb file as a txt file and you can see the generated code once you open the txt file in a text reader. Bob From: nsbasic-ce@yahoogroups.com...
Bob Katayama
banffbears2006
Offline Send Email
Jul 26, 2009
10:07 pm

This is a Code ShowOKButton True 'Set Close button to OK Sub Form1_Load() AddObject "grid","grid",0,10,240,100 grid.cols=3 grid.rows=4 grid.TextMatrix(0, 0) =...
EMERSON VIER
emersonvier
Offline Send Email
Jul 28, 2009
12:50 am

Try again, this time creating the form with the Grid on it, not created in your own code with AddObject....
George Henne
ghenne
Offline Send Email
Jul 28, 2009
11:42 am

OK now the event "_Click" work on two forms, now I will make test on my project. Why this not work when I use the AddObject?? Why I not see the properties from...
EMERSON VIER
emersonvier
Offline Send Email
Jul 29, 2009
2:05 am

You need to look at the parameters of AddObject and how it is called. There are questions of scoping and parent objects. If your app is working, you can ignore...
George Henne
ghenne
Offline Send Email
Jul 29, 2009
10:33 am
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help