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 


pull down menus help
Goto page Previous  1, 2
 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
tim6389
Professional Member
Professional Member


Joined: 01 Aug 2002
Posts: 790

PostPosted: Thu Apr 29, 2004 10:33 pm    Post subject: Reply with quote

question


how do i have it so when you first run the program the box is not blanked? i would like to have it say please selected. if ya follow what i mean?

_________________
Have a nice day Smile
Back to top
View user's profile Send private message
Mac
Professional Member
Professional Member


Joined: 08 Jul 2000
Posts: 1585
Location: Oklahoma USA

PostPosted: Thu Apr 29, 2004 10:49 pm    Post subject: Reply with quote

OK, here's an example. Wink

1. First, we add "Please Select..." to the combo, and an
empty line to list one. This keeps the two synchronized
when we click the combo.

2. We use "LIST SEEK, Combo1, 0" to make it appear in
the combo display.

3. On click, we check if the first item (Please Select...)
is clicked - if so, we do nothing and return to EVLOOP.

Code:

OPTION SCALE, 96
OPTION DECIMALSEP, "."
TITLE By Mac
DIALOG CREATE,"Test Program",-1,0,200,100
  DIALOG ADD,COMBO,Combo1,4,4,192,24,,,LIST,CLICK
DIALOG SHOW

LIST CREATE, 1

LIST ADD, Combo1, "Please Select..."
LIST ADD, 1, ""

LIST ADD, Combo1, "Notepad"
LIST ADD, 1, "c:\windows\notepad.exe"

LIST ADD, Combo1, "Wordpad"
LIST ADD, 1, "c:\windows\wordpad.exe"

LIST SEEK, Combo1, 0

:EVLOOP
  WAIT EVENT
  goto @event()

:Combo1CLICK
  if @equal(@index(Combo1), 0)
     goto EVLOOP
  end
  RUN @item(1, @index(Combo1))
  goto EVLOOP

:CLOSE
  EXIT

Cheers, Mac Smile

_________________
VDSug.dll does file IO, check/disable menu items,
non-VDS dlls, draw functions and more...
Free download (30k dll size) at:
http://www.vdsworld.com/download.php?id=361
Back to top
View user's profile Send private message Send e-mail
tim6389
Professional Member
Professional Member


Joined: 01 Aug 2002
Posts: 790

PostPosted: Fri Apr 30, 2004 2:43 am    Post subject: Reply with quote

i think i got it

thanks mac

_________________
Have a nice day Smile
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Goto page Previous  1, 2
Page 2 of 2

 
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