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 


New Project Template
Goto page Previous  1, 2
 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> Visual DialogScript 3 Source Code
View previous topic :: View next topic  
Author Message
PGWARE
Web Host


Joined: 29 Dec 2001
Posts: 1537

PostPosted: Fri Feb 21, 2003 3:30 am    Post subject: Reply with quote

No prob Smile we all started somewhere and alot of these things are really hard to locate within the helpfile if there even there Smile
Back to top
View user's profile Send private message
GeoTrail
Valued Contributor
Valued Contributor


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

PostPosted: Fri Feb 21, 2003 3:39 am    Post subject: Reply with quote

Very very true Smile

Nice site you got there PGWARE Wink

_________________
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Garrett
Moderator Team


Joined: 04 Oct 2001
Posts: 2146
Location: A House

PostPosted: Fri Feb 21, 2003 3:53 am    Post subject: Reply with quote

His site sucks! He needs to upload his new design, but he's being too lazy!

-Garrett

_________________
'What you do not want done to yourself, do not do to others.' - Confucius (550 b.c. to 479 b.c.)
Necroprogramming FTW! - "Wait.. Is necroprogramming legal?"
http://www.freewarehome.com <-- Freeware listings since 1996
Back to top
View user's profile Send private message
PGWARE
Web Host


Joined: 29 Dec 2001
Posts: 1537

PostPosted: Fri Feb 21, 2003 6:12 am    Post subject: Reply with quote

heeh yeah the site does suck, the original design (pokes Garrett) did such a shotty job. Wink Getting the site ready with the new product versions which will be launched next month Smile
Back to top
View user's profile Send private message
Skit3000
Admin Team


Joined: 11 May 2002
Posts: 2166
Location: The Netherlands

PostPosted: Fri Feb 21, 2003 4:42 pm    Post subject: Reply with quote

Robert, the templates on this site are made to help people to use things, like errortrapping, in an easy way. It also makes sure that your script will run on every Windows OS, no matter which language is used. Some people forget to use things like that, and discover it 'the hard way'...
Back to top
View user's profile Send private message
GeoTrail
Valued Contributor
Valued Contributor


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

PostPosted: Fri Feb 21, 2003 5:21 pm    Post subject: Reply with quote

Hmm, must admit I haven't given that much thought Embarassed

So, do you guys have any tips for me? I use latin character set on my computers, how can I make sure everything works nomatter what character set the user uses.

And about the OS version, what are the issues there?

I nice emtpy template with the most needed things would be greatly appriciated Wink

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


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

PostPosted: Fri Feb 21, 2003 5:34 pm    Post subject: Reply with quote

I recommend using the OPTION SCALE and OPTION DECIMALSEP
commands (they're explained in the help file). Here's what I usually
start programs with:

OPTION SCALE, 96
OPTION DECIMALSEP, "."
TITLE By Mac


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
GeoTrail
Valued Contributor
Valued Contributor


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

PostPosted: Fri Feb 21, 2003 5:49 pm    Post subject: Reply with quote

I've added the DECIMALSEP, 'cause I saw myself what happens there Smile
But it says in the manual that it uses 96 % by default in scaling in 4.5. So, do I need to specify it then?

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


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

PostPosted: Fri Feb 21, 2003 9:52 pm    Post subject: Reply with quote

Hmmm... good question.

The VDS3 help file says:
The value in <pixels-per-inch> should be the same value given by @SYSINFO(PIXPERIN) on the system on which the dialog was designed

I specify it since a lot of my code is posted here, and I never
know what someone else's settings are (mine's 96)... Wink

However, if the user has a different/strange theme, I think the
SCALE settings go out the window anyway. Confused

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
GeoTrail
Valued Contributor
Valued Contributor


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

PostPosted: Fri Feb 21, 2003 10:06 pm    Post subject: Reply with quote

Just read the part in the helpfile alittle closer and your right.
If the user has a different font then Small Fonts then it might get a weird look.

So I guess I'll use the OPTION SCALE, 96 in my template as well Wink

_________________
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
PGWARE
Web Host


Joined: 29 Dec 2001
Posts: 1537

PostPosted: Fri Feb 21, 2003 10:55 pm    Post subject: Reply with quote

Yes you should always use option scale,96 and also define a STYLE with a text size,font name and apply that style to all controls. That way if someone runs your program on their computer and they are using large fonts it wont distort your program and make text run off the dialog or misalign everything. The only thing that will change is that the titlebar will become larger but all other parts of the dialog will remain untouched.
Back to top
View user's profile Send private message
GeoTrail
Valued Contributor
Valued Contributor


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

PostPosted: Fri Feb 21, 2003 11:05 pm    Post subject: Reply with quote

OK, good advice.
Thanks again PGWARE Wink

_________________
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
cnodnarb
Valued Contributor
Valued Contributor


Joined: 11 Sep 2002
Posts: 641
Location: Evansville, IN

PostPosted: Sun Mar 23, 2003 5:36 pm    Post subject: Reply with quote

"BTW. Where is that Array label for???"

Dangnabit frig and frackit! I can't believe I overlooked that question considering the power of that subroutine and the frequency of which I use it!

In Visual Basic there is a function called "split" which creates a new variable array taking a string and parsing by delimiter. This does the same thing!

Basically, you don't have to know the size of your array before you create it, unlike the parse command.

Take a variable like this:

Code:

option fieldsep,"|"
%%split = Great|Days|Happen
%%array = arrGreatDays
gosub array


Then it processes through the array gosub
Code:

:Array
if @null(%%array)
exit
else
end
dialog add,list,%%array,0,0,0,0
list clear,%%array
repeat
parse "%a;%b",%%split
%%remainder = @substr(%%split,@sum(@len(%a),2),@len(%%split))
if %a
list add,%%array,%a
%%split = %%remainder
end
until @null(%a)
exit


The list "arrGreatDays" which is used as a variable array now contains
Code:

Great
Days
Happen


When your done with "arrGreatDays" it must be removed else the code won't work two times within your program.
Code:

dialog remove,arrGreatDays


I hope that explains it...

NodNarb
Back to top
View user's profile Send private message AIM Address
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> Visual DialogScript 3 Source Code 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