Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid problem
Message
 
To
15/01/2001 02:48:30
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00462038
Message ID:
00463750
Views:
30
Hi Budianto,

Click-transparent container should be placed OVER the grid, not IN the grid,
after you create your grid you should set the size and position of the click-transparent container according to the corresponding grid properties and change container's ZOrder position to make sure that it covers it.
Something like:
* you create yor grid here

thisform.ClickTransparentContainer.Left = thisform.myGrid.Left
thisform.ClickTransparentContainer.Top = thisform.myGrid.Top thisform.ClickTransparentContainer.Width = thisform.myGrid.Width
thisform.ClickTransparentContainer.Height = thisform.myGrid.Height
thisform.ClickTransparentContainer.Zorder(0)


>Nick,
>thanks for your reply, the reason why I create the grid programmatically because I define one of the table after entering the first textbox (read my reply to drury) so I can not define tables with database designer.
>
>I've been trying to use your Click-Transparent controls, but I still have difficulties. In your samples you put your container class in the grid, in my case where I must put it ? And you said that 'the container methode will work with any grid I programmatically place under it', where should I put programmatically grid since the grid is pop up after I enter the first textbox (I put the grid code in the textbox->lostfocus event).
>
>Here's is my code of grid in textbox->lostfocus event :
>
>sele pr
>set orde to pr_nopr
>cno_pr=thisform.text1.value
>seek cno_pr
>if cno_pr#spac(18)
> if found()
> thisform.text2.value=tgl_pr
> thisform.text3.value=order
> thisform.text4.value=style
> corder=order
> sele pr
> set orde to pr_nobrg
> set rela to nobrg into master
> sele 6
> use c:\learn\&corder\order9 &&this is the file that I define later
> .....
> grid code here
> endi
>endi
>
>thanks in advance.
>
>
>Budianto_M
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform