YetAnotherForum
Welcome Guest Search | Active Topics | Log In | Register

add button Options · View
montiel_83
#1 Posted : Wednesday, May 04, 2011 12:58:08 AM
Rank: Newbie
Groups: Member

Joined: 5/4/2011
Posts: 1
hello, i'm working with a frame control, because i need to display several texts and buttons, and i need to grop them in three diferents sections so i use three frames added as control to get the ability for generate scrollbars (already done), i need to add the elements by code, but i can not do it with the buttons i miss one argument

the code to add control is the next
ThisDisplay.Frame1.Controls.Add(bstrProgID As String, [name], [visible])

i can add a CommandButton with this code

dim bot as CommandButton
Set bot = ThisDisplay.Frame1.Controls.Add("Forms.CommandButton.1", "button1", True)

but i don't know which is the first argument to add a Button from PBSymLib

dim BUT as Button
Set BUT = ThisDisplay.Frame1.Controls.Add( ?????????????? , "button1", True)

hope someone can help mePray , i really apreciate your time and help.


Sponsor  
 

OSIsoft vCampus is a subscription-based, online offering that consists of providing everything people need to develop applications on the PI System.
We invite you to take a "tour" of the OSIsoft Virtual Campus - also feel free to consult the FAQ  or contact OSIsoft vCampus for more details.
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.