Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Adding Containers into a Form - Please Help!
Message
From
29/05/2001 05:46:05
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
29/05/2001 05:39:34
Jimi Lee
Pop Electronic Products Ltd.
Hong Kong, Hong Kong
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Miscellaneous
Thread ID:
00512094
Message ID:
00512112
Views:
12
This message has been marked as a message which has helped to the initial question of the thread.
Add button to container or put a transparent shape in front in container with click code you want :)
Cetin
>Thanks a lot Cetin :)
>
>I can now create certain numbers of containers with the size I want them to be in a Form :)
>
>But then, how can I add a "click" event on those containers? I want to popup another Form showing some information when user click on them.. Being able to know which one has been clicked is enough for me..
>
>I know I'm asking a lot, please only answer me when you have time to :p
>
>Jimi
>
>
>>>Hi all,
>>>
>>>I'm dumb in OOP but I have to work on it now ;-( *sigh*
>>>
>>>I have a form. I need to write a program to add some container objects into it(number of containers is depends on the form size), where each container contains another 3 textbox objects. All needs to be defined in runtime except the form itself. The content of the textboxs also needs to be updated every 5 seconds(so have to consider the ControlSource)..
>>>
>>>I have made some simple code for practice, trying to add a label object into the form, but still fail :-(
>>>
>>>this is my code:
>>>
>>>  do form main && created in project
>>>  main.addobject("Label_1", "RM_TYPE")
>>>  main.show
>>>
>>>  define class RM_TYPE as label
>>>    Procedure init
>>>      This.Caption = "Testing"
>>>    Endproc
>>>  enddefine
>>>
>>>
>>>What should I do?
>>>
>>>Also, is it possible to use "AddObject()" command in the Form's event codes(such as Init, load, activate... etc.)?
>>>
>>>I'm having serious problem now, any help would be greatly appreciated.. Thank you very mcuh!!
>>
>>Jimi,
>>For the container size, placement definition think each container as a label object in other form building thread (if contents are same size).
>>For refreshing at regular intervals you could add a timer to form and call your refreshing routine at 5000 msecs intervals.
>>Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform