[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

vruby question

Esad Hajdarevic

9/29/2006 3:04:00 AM

Hi!

In the following code (http://pastie.cabo...), the Dialog returns
the value (:test) the first time, but after the form B has been closed,
and created again, it returns 0. Any idea why? Am I doing something
wrong or is this bug in vruby/swin? If I use hide instead of close,
everything works well.

Esad
16 Answers

Stefan Schmiedl

9/29/2006 3:42:00 PM

0

On Fri, 29 Sep 2006 05:03:36 +0200, Esad Hajdarevic wrote:

> Hi!
>
> In the following code (http://pastie.cabo...), the Dialog returns
> the value (:test) the first time, but after the form B has been closed,
> and created again, it returns 0. Any idea why? Am I doing something
> wrong or is this bug in vruby/swin? If I use hide instead of close,
> everything works well.
>
> Esad

I have used vruby and other GUI frameworks only sparingly and years ago,
but they usually differentiate between creating a window and displaying
it on screen.

So I'd guess that closing (as in "I don't need this anymore") a window
might free system resources and leave you with a reference to something
invalid.

If you hde the window (as in "I might need it later") ruby keeps the
system resources around and the second use of b is fine.

Then again, I really don't know what I'm talking about :-)

Have fun,
s.

Esad Hajdarevic

9/29/2006 7:27:00 PM

0

Hi!

Stefan Schmiedl wrote:

> I have used vruby and other GUI frameworks only sparingly and years ago,
> but they usually differentiate between creating a window and displaying
> it on screen.

The problem with the form is that after you show it, you should enter
the messageloop, and in case of dialog vruby does that for you (it enter
the messageloop after the dialog is closed and then returns a value).

I simply added something like this (after form creation)

Thread.new { VRLocalScreen.messageloop }

which createas a messageloop for the form in background, this thread
dies after the form has been closed.

It worked!

I feel vruby has a great potential, it is too pity it so chaotic and
undocumented. If I could find few more people, I'd be willing to spend
some time creating english documentation, cleaning up the sources,
applying patches, starting a mailing list, a nice english webpage etc.

Esad


Stefan Lang

9/29/2006 10:02:00 PM

0


On Saturday, September 30, 2006, at 4:30 AM, Esad Hajdarevic wrote:
>Hi!
>
>Stefan Schmiedl wrote:
>
>> I have used vruby and other GUI frameworks only sparingly and years ago,
>> but they usually differentiate between creating a window and displaying
>> it on screen.
>
>The problem with the form is that after you show it, you should enter
>the messageloop, and in case of dialog vruby does that for you (it enter
>the messageloop after the dialog is closed and then returns a value).
>
>I simply added something like this (after form creation)
>
>Thread.new { VRLocalScreen.messageloop }
>
>which createas a messageloop for the form in background, this thread
>dies after the form has been closed.
>
>It worked!
>
>I feel vruby has a great potential, it is too pity it so chaotic and
>undocumented. If I could find few more people, I'd be willing to spend
>some time creating english documentation, cleaning up the sources,
>applying patches, starting a mailing list, a nice english webpage etc.
>
>Esad
>
>
>

You might want to check out VRTools to see about the holes in VRuby that
it fills (gem install VRTools).

- Supports Tabbing in forms
- Allows creation of forms and dialogs using a similar mechanism
- Adds support for right click menus
- Adds a layout manager for VRuby forms
- Allows test first to be used on a form

Steve Tuckner
--
Posted with http://De.... Sign up and save your mailbox.

Tom from Texas

7/29/2013 3:22:00 PM

0

On Sunday, July 28, 2013 3:58:06 PM UTC-5, Lord Valve wrote:
> patmpowers@gmail.com wrote:
>
>
>
> > I've been away from this group. What do I see on return? 37% Kenny G posts. He doesn't even play the damn guitar.
>
>
>
> Neither do I. Go fuck yourself with a cactus.
>
>
>
> Lord Valve
>
> Organist

Shaddup and go play with yer organ.

Tom from Texas

RS

7/31/2013 5:00:00 AM

0

On Sun, 28 Jul 2013 14:58:06 -0600, Lord Valve
<detritus@ix.netcom.com> wrote:

>patmpowers@gmail.com wrote:
>
>> I've been away from this group. What do I see on return? 37% Kenny G posts. He doesn't even play the damn guitar.

You must have missed the Vangelis posts then. I can often see merit in
posts that aren't directly jazz or guitar related, as long as they
bring something constructive to the conversation. Such is not the case
with Kenny G though, especially with the "you're jealous" comments
thrown in (wha?). That was a bad attempt at trolling.

>Neither do I. Go fuck yourself with a cactus.
>
>Lord Valve
>Organist

Hair trigger sensitivity goes well with the guns.

Lord Valve

7/31/2013 12:54:00 PM

0

RS wrote:

> On Sun, 28 Jul 2013 14:58:06 -0600, Lord Valve
> <detritus@ix.netcom.com> wrote:
>
> >patmpowers@gmail.com wrote:
> >
> >> I've been away from this group. What do I see on return? 37% Kenny G posts. He doesn't even play the damn guitar.
>
> You must have missed the Vangelis posts then. I can often see merit in
> posts that aren't directly jazz or guitar related, as long as they
> bring something constructive to the conversation. Such is not the case
> with Kenny G though, especially with the "you're jealous" comments
> thrown in (wha?). That was a bad attempt at trolling.
>
> >Neither do I. Go fuck yourself with a cactus.
> >
> >Lord Valve
> >Organist
>
> Hair trigger sensitivity goes well with the guns.

My guns have killed fewer people than Ted Kennedy's driver's license.

Day's young, though. Go suck off a dead monkey.


Lord Valve
Organist




Paul

7/31/2013 3:27:00 PM

0

On 7/30/2013 9:59 PM, RS wrote:
> On Sun, 28 Jul 2013 14:58:06 -0600, Lord Valve
> <detritus@ix.netcom.com> wrote:
>
>> patmpowers@gmail.com wrote:
>>
>>> I've been away from this group. What do I see on return? 37% Kenny G posts. He doesn't even play the damn guitar.
>
> You must have missed the Vangelis posts then. I can often see merit in
> posts that aren't directly jazz or guitar related, as long as they
> bring something constructive to the conversation. Such is not the case
> with Kenny G though, especially with the "you're jealous" comments
> thrown in (wha?). That was a bad attempt at trolling.
>

So if someone says something you disagree with, that's
trolling?

Wonderful definition!

Two people have posted Kenny G videos
with bad playing overdubbed over it. Do you know
why they have to overdub it to make him look bad?
BECAUSE HIS REAL PLAYING IS TOO DAMN GOOD.

Look in the mirror for a troll, troll.


>> Neither do I. Go fuck yourself with a cactus.
>>

haha!



RS

8/1/2013 9:21:00 PM

0

On Wed, 31 Jul 2013 08:27:25 -0700, Paul <Quiller123@gmail.com> wrote:

>On 7/30/2013 9:59 PM, RS wrote:
>> On Sun, 28 Jul 2013 14:58:06 -0600, Lord Valve
>> <detritus@ix.netcom.com> wrote:
>
> Two people have posted Kenny G videos
>with bad playing overdubbed over it. Do you know
>why they have to overdub it to make him look bad?
>BECAUSE HIS REAL PLAYING IS TOO DAMN GOOD.

Good luck.

>>> "Lord Valve" wrote:
>>> Go fuck yourself with a cactus.
>
> haha!

??? Before you hitch your wagon to that particular star, you should
know who that is:

http://groups.google.com/groups/search?hl=en&as_usubject=nigger&as_uauthors=lord+valve&am...

Much more of that racist BS on alt.guitar.amps if you have the stomach
for it.

Lord Valve

8/1/2013 9:31:00 PM

0

Another in an endless string of chicken-shit anonymous cocksuckers gave it the old college try:

> http://groups.google.com/groups/search?hl=en&as_usubject=nigger&as_uauthors=lord+valve&am...

Hey, good link!

Read the top post on that page, Paul, and see if you
disagree. Perhaps you aren't one of the anonymous
PC assholes who can't tell the difference between a
nigger and a black person. If yau are, well...Have a
Rilly Nice Day, mmmkay?


Lord Valve
"Racist"


Paul

8/1/2013 10:32:00 PM

0

On 8/1/2013 2:20 PM, RS wrote:

> Good luck.
>

No, good luck to YOU. You'll need it more than me....



>>>> "Lord Valve" wrote:
>>>> Go fuck yourself with a cactus.
>>
>> haha!
>
> ??? Before you hitch your wagon to that particular star, you should
> know who that is:
>
> http://groups.google.com/groups/search?hl=en&as_usubject=nigger&as_uauthors=lord+valve&am...
>
> Much more of that racist BS on alt.guitar.amps if you have the stomach
> for it.
>

I ain't hitching a wagon to anyone. Everyone is a racist so
some degree...some people are just more honest about it.