forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


About window shows once...

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
GeoTrail
Valued Contributor
Valued Contributor


Joined: 18 Feb 2003
Posts: 572
Location: Bergen, Norway

PostPosted: Mon Feb 24, 2003 10:11 pm    Post subject: About window shows once... Reply with quote

I've made an about window in my program.
I works. But only the first time I run it.
The next time I try to display it nothing happens.

Someone mentioned something about this to me earlier, but I can't remember what Embarassed

_________________
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
ShinobiSoft
Professional Member
Professional Member


Joined: 06 Nov 2002
Posts: 790
Location: Knoxville, Tn

PostPosted: Mon Feb 24, 2003 10:13 pm    Post subject: Reply with quote

Can ya post a little of your source?
_________________
Bill Weckel
ShinobiSoft Software

"The way is known to all, but not all know it."
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Mon Feb 24, 2003 10:15 pm    Post subject: Reply with quote

Perhaps clearing the event buffer would help? Confused

Code:
%x = @event()

_________________
FreezingFire
VDSWORLD.com
Site Admin Team
Back to top
View user's profile Send private message Visit poster's website
GeoTrail
Valued Contributor
Valued Contributor


Joined: 18 Feb 2003
Posts: 572
Location: Bergen, Norway

PostPosted: Mon Feb 24, 2003 10:17 pm    Post subject: Reply with quote

Wow, that was fast Smile
This includes the Evloop event and the about dialog it self.
I run the about window with a menu click event.

That works fine, but if I click the about menu again then nothing happens.

Code:
:Evloop
  wait event
  %%Event = @event()
rem  info %%Event
  goto %%Event


:AboutMENU
rem Check if the about window is already opened.
if @WinExists(About %%AppTitle)
  Goto Evloop
Else

DIALOG CREATE,About %%AppTitle,-1,0,356,310,NOSYS,ONTOP
  DIALOG ADD,STYLE,BOLD,,,B,,
REM *** Modified by Dialog Designer on 24.02.2003 - 17:17 ***
  DIALOG ADD,BUTTON,CloseAbout,280,286,64,24,Close
  DIALOG ADD,SHAPE,SHAPE1,0,0,356,65,WHITE,BLACK,,RECTANGLE
  DIALOG ADD,BITMAP,BITMAP1,1,1,356,64,%%Path\sa-about_top.bmp
  DIALOG ADD,TEXT,COPYRIGHT,288,8,,,%%Copyright,,TRANSPARENT
  DIALOG ADD,TAB,TAB1,68,2,354,208,About|History|Thanks to|Beta testers
  DIALOG ADD,TEXT,FREEMEM,120,16,,,Free memory:,,TRANSPARENT,BOLD
  DIALOG ADD,TEXT,FREEMEM1,120,112,,,%%FreeMem,,TRANSPARENT
  DIALOG ADD,TEXT,UNDRDEVELOP,120,16,,,Still under development...,,TRANSPARENT,BOLD
  DIALOG ADD,EDIT,CREDITSTEXT,136,24,304,112,%%Credits,,WRAP,MULTI,SCROLL,READONLY
  DIALOG ADD,TEXT,CREDITSHEAD,120,16,,,SPECIAL THANKS TO:,,TRANSPARENT,BOLD
  DIALOG ADD,TEXT,VERSION,136,16,,,Version:,,TRANSPARENT,BOLD
  DIALOG ADD,TEXT,FILEVER,136,112,,,%%FileVer,,TRANSPARENT
  DIALOG SHOW
  DIALOG HIDE,UNDRDEVELOP
  DIALOG HIDE,CREDITSTEXT
  DIALOG HIDE,CREDITSHEAD
  Goto Evloop
End

_________________
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
ShinobiSoft
Professional Member
Professional Member


Joined: 06 Nov 2002
Posts: 790
Location: Knoxville, Tn

PostPosted: Mon Feb 24, 2003 10:21 pm    Post subject: Reply with quote

How are you closing the About dialog?
_________________
Bill Weckel
ShinobiSoft Software

"The way is known to all, but not all know it."
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger
GeoTrail
Valued Contributor
Valued Contributor


Joined: 18 Feb 2003
Posts: 572
Location: Bergen, Norway

PostPosted: Mon Feb 24, 2003 10:22 pm    Post subject: Reply with quote

Well, I couldn't figure out how to close the dialog properly without closing the whole program so I'm just using DIALOG HIDE.

Is that bad? Embarassed

_________________
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
ShinobiSoft
Professional Member
Professional Member


Joined: 06 Nov 2002
Posts: 790
Location: Knoxville, Tn

PostPosted: Mon Feb 24, 2003 10:26 pm    Post subject: Reply with quote

Not really. But it's better to close it.

change in your :Evloop -> "%%Event = ..." to
Code:

  parse "%%Event;%D",@event(D)


and then what I normally do in my :CLOSE label is:
Code:

:CLOSE
  if @greater(%D,0)
    dialog select,%D
    dialog close
    wait event
    %E = @event()
    goto Evloop
  end
  exit



And then change the NOSYS style for your About dialog to SMALLCAP

Then I think it should work for ya.

_________________
Bill Weckel
ShinobiSoft Software

"The way is known to all, but not all know it."
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger
GeoTrail
Valued Contributor
Valued Contributor


Joined: 18 Feb 2003
Posts: 572
Location: Bergen, Norway

PostPosted: Mon Feb 24, 2003 10:33 pm    Post subject: Reply with quote

Hmm weird.
That worked. But only if I click the X to close the about dialog.
If I click the Close button then it's the same.

_________________
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
ShinobiSoft
Professional Member
Professional Member


Joined: 06 Nov 2002
Posts: 790
Location: Knoxville, Tn

PostPosted: Mon Feb 24, 2003 10:34 pm    Post subject: Reply with quote

Because your CloseAboutBUTTON isn't closing the dialog window.
_________________
Bill Weckel
ShinobiSoft Software

"The way is known to all, but not all know it."
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger
GeoTrail
Valued Contributor
Valued Contributor


Joined: 18 Feb 2003
Posts: 572
Location: Bergen, Norway

PostPosted: Mon Feb 24, 2003 10:35 pm    Post subject: Reply with quote

He he he never mind.
I just removed some silly code in the :CloseAboutBUTTON label and now it works great.

I had a DIALOG HIDE action there.

Laughing

Silly me.

Thanks alot bweckel Wink

_________________
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
ShinobiSoft
Professional Member
Professional Member


Joined: 06 Nov 2002
Posts: 790
Location: Knoxville, Tn

PostPosted: Mon Feb 24, 2003 10:36 pm    Post subject: Reply with quote

Glad to be of assistance. Smile

And, please, the name's Bill.

_________________
Bill Weckel
ShinobiSoft Software

"The way is known to all, but not all know it."
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger
GeoTrail
Valued Contributor
Valued Contributor


Joined: 18 Feb 2003
Posts: 572
Location: Bergen, Norway

PostPosted: Mon Feb 24, 2003 10:40 pm    Post subject: Reply with quote

OK, Bill Cool
I'm Robert Razz

_________________
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group