you need to use the OpenUserObject function of the window
Statictext st_new
long xWert=10, y_Wert=10
theWindow.OpenUserObject(st_new, xWert, yWert)
st_new.Visible = True
st_new.width = 200
st_new.height = 60
I didn´t test this script, but it schoull work
By Emmanuel
"Emmanuel Vincent" <evin...@itlink.fr> schrieb im Newsbeitrag
news:B9cJazG...@forums.sybase.com...
> I do this but i can't see the statictext on my screen can you help me
>
> statictext st
> st = create statictext
> IF isvalid(st) THEN
> st.SetRedraw(true)
> st.Enabled = true
> st.Height = 56
> st.Width = 343
> st.TextColor = 255
> st.textsize = 8
> st.text = 'coucou'
> st.X = 0
> st.Y = 0
> st.BackColor = RGB(255, 255, 0)
> st.FontCharSet = ANSI!
> st.FontFamily = Roman!
> st.FontPitch = Fixed!
> st.setposition(topmost!)
> st.visible = true
> st.show()
> end if
>
>
> thanks
> evin...@itlink.fr
>
>
>
I've sometimes needed it in a tabpage or visual user object and had to
resort to pre-defining
objects instead and making them visible/invisible, which was a bit of an
ugly hack...
--
--------------------------------------------------------------------
Jacek Furmankiewicz
STS Systems - http://www.stssystems.com
---------------------------------------------------------------------
"Bruce Armstrong [TeamSybase]" <NOCANSPAM_br...@teamsybase.com>
wrote in message news:HJGSi8G...@forums.sybase.com...
> You need to user OpenUserObject function, which actually creates a visible
> instance of the class. All you did with the Create statement below is
> created a non-visual variable.
>
> On Thu, 29 Mar 2001 18:07:02 +0200,
> in powersoft.public.powerbuilder.general
> Emmanuel Vincent <evin...@itlink.fr> wrote:
> >I do this but i can't see the statictext on my screen can you help me
> >
> >statictext st
> >st = create statictext
> >IF isvalid(st) THEN
> > st.SetRedraw(true)
> > st.Enabled = true
> > st.Height = 56
> > st.Width = 343
> > st.TextColor = 255
> > st.textsize = 8
> > st.text = 'coucou'
> > st.X = 0
> > st.Y = 0
> > st.BackColor = RGB(255, 255, 0)
> > st.FontCharSet = ANSI!
> > st.FontFamily = Roman!
> > st.FontPitch = Fixed!
> > st.setposition(topmost!)
> > st.visible = true
> > st.show()
> >end if
> >
> >
> >thanks
> >evin...@itlink.fr
> >
> >
> >
>
> Bruce Armstrong [TeamSybase]
> http://www.needhim.org
>
> ---== Posted via the PFCGuide Web Newsreader ==---
> http://www.pfcguide.com/_newsgroups/group_list.asp
On Thu, 29 Mar 2001 18:07:02 +0200,
in powersoft.public.powerbuilder.general
Emmanuel Vincent <evin...@itlink.fr> wrote:
Bruce Armstrong [TeamSybase]
As for PB8, the people that have seen it are under non-disclosure
agreement, which means we can't discuss anything that Sybase hasn't
thrown into the public arena. I don't recall this being discussed at
the TechWave seminar last summer, but I have problems keeping track of
what I'm supposed to get done this weekend. <g> Of course, for the
hard core, you can download the beta yourself and check it out. You've
even still got a little time to test it out and submit some bugs in
time for the release build! (Due out Q2... OK, Sybase announced H1,
but I don't think they're going to come in on a Saturday and release
it today <g>)
Good luck,
Terry [TeamSybase] and Sequel the techno-kitten
On Thu, 29 Mar 2001 11:30:34 -0500, "Jacek Furmankiewicz"
<jfurman...@stssystems.com> wrote:
>In PB8, can you use OpenUSerObject on something different than just a
>window?
>
>I've sometimes needed it in a tabpage or visual user object and had to
>resort to pre-defining
>objects instead and making them visible/invisible, which was a bit of an
>ugly hack...
Sequel's Sandbox: http://www.techno-kitten.com
Home of PBL Peeper, a PowerBuilder Developer's Toolkit.
Version 2 now available at the Sandbox
Charitable donations without money?
CLICK FOR FREE MONEY!!
The Hunger Site: http://www.thehungersite.com
The Rainforest Site: http://www.therainforestsite.com
The Kids AIDS Site: http://www.thekidsaidssite.com
The Child Survival Site: http://www.thechildsurvivalsite.com
The Breast Cancer Site: http://www.thebreastcancersite.com
The Landmine Site: http://www.thelandminesite.com