paragui-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [paragui-users] Problem with setting a text in a RichEdit widget wit


From: Mark Prins
Subject: Re: [paragui-users] Problem with setting a text in a RichEdit widget with .SetText()
Date: Tue, 10 Dec 2002 16:16:15 +0100 (CET)

On Tue, 3 Dec 2002, atani wrote:

> > When I have created a RichEdit widget and I use the SetText() function
> > the entire program becomes unstable. It looks like ff the text is
> large it crashes
>
> Can you post some example code that shows the problem?  Are you using a
> dynamic text buffer in the call to SetText?  If you are, are you
> deleting it right away?

The reply is kinda late, but I was realy busy on school stuff lately.

As far as I know I am doing it pretty straight forward.
A piece of the code:

(after the normal initialisation of PG /SDL and stuff)

PG_RichEdit mainScreen(NULL, PG_Rect(0,20,800,540));
mainScreen.EnableScrollBar(true, PG_SB_VERTICAL); // to enable the scrollbar
mainScreen.EnableScrollBar(false,PG_SB_HORIZONTAL); // to explicitly disable 
horizontal scrollbar

mainScreen.SetText("A text on my richedit widget");

mainScreen.Show();

app.Run();

There is a lot of code around these things, but in my opinion they do not 
conflict with the
RichEdit Widget.

Further I have another question (which has nothing to do with the RichEdit 
widget though):

When creating a PG_Window widget you can specify how big the "titlebar" is. I 
set it to 0
pixels, so you have no titlebar at all. That is great for what I want. But when 
I'm working
with a PG_MessageBox widget, I cannot specify a "titlebar"-size. Is there a way 
to do so?

Thanx in advance,

Mark Prins




reply via email to

[Prev in Thread] Current Thread [Next in Thread]