Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Sort by header.caption
Message
 
 
To
27/06/2000 06:48:00
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00384579
Message ID:
00385013
Views:
33
>(This has nothing to do with my previous problem.)
>What I'm trying to do (creating a grid progr.)
>for example.
>Define class myclass as grid
>prop
>....
>
>How can I add code to the header-object.
>Do I first have to add an column object to the grid and then a header object.
>Do you know were I can find some examples.(in the MSDN I haven't found anyone)
>????
Define Class oColumn As Column
    Add Object Header1 As Header
    Add Object TextBox1 As TextBox
    
    ** Clicking any header will give you the message
    Procedure Header1.Click
        MessageBox("Hey you clicked me!")
    Endproc

    ** Typing in any textbox based on TextBox1 Class will give you the message also
    Procedure TextBox1.InteractiveChange 
        Wait Window "You type something in me ha!" Nowait
    Endproc

Enddefine

Define Class oGrid As Grid
    Add Object Column1 As oColumn With ControlSource = "customer.code"
    Add Object Column2 As oColumn With ControlSource = "customer.name"
    Procedure Init
        With This
            .Column1.Header1.Caption = "Customer Code"
            .Column2.Header1.Caption = "Customer Name"
        Endwith      
    Endproc
Enddefine
Doing programs manually is counter productive but sometimes its unavoidable and I learned how to do it by looking at the codes in the books and magazines.
JESS S. BANAGA
Project Leader - SDD division
...shifting from VFP to C#.Net

CHARISMA simply means: "Be more concerned about making others feel good about themselves than you are in making them feel good about you."
Previous
Reply
Map
View

Click here to load this message in the networking platform