View previous topic :: View next topic |
Author |
Message |
PGWARE Web Host
Joined: 29 Dec 2001 Posts: 1562
|
Posted: Fri Feb 21, 2003 3:30 am Post subject: |
|
|
No prob we all started somewhere and alot of these things are really hard to locate within the helpfile if there even there |
|
Back to top |
|
|
GeoTrail Valued Contributor
Joined: 18 Feb 2003 Posts: 572 Location: Bergen, Norway
|
Posted: Fri Feb 21, 2003 3:39 am Post subject: |
|
|
Very very true
Nice site you got there PGWARE _________________
|
|
Back to top |
|
|
Garrett Moderator Team
Joined: 04 Oct 2001 Posts: 2149 Location: A House
|
Posted: Fri Feb 21, 2003 3:53 am Post subject: |
|
|
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.) |
|
Back to top |
|
|
PGWARE Web Host
Joined: 29 Dec 2001 Posts: 1562
|
Posted: Fri Feb 21, 2003 6:12 am Post subject: |
|
|
heeh yeah the site does suck, the original design (pokes Garrett) did such a shotty job. Getting the site ready with the new product versions which will be launched next month |
|
Back to top |
|
|
Skit3000 Admin Team
Joined: 11 May 2002 Posts: 2166 Location: The Netherlands
|
Posted: Fri Feb 21, 2003 4:42 pm Post subject: |
|
|
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 |
|
|
GeoTrail Valued Contributor
Joined: 18 Feb 2003 Posts: 572 Location: Bergen, Norway
|
Posted: Fri Feb 21, 2003 5:21 pm Post subject: |
|
|
Hmm, must admit I haven't given that much thought
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 _________________
|
|
Back to top |
|
|
Mac Professional Member
Joined: 08 Jul 2000 Posts: 1585 Location: Oklahoma USA
|
Posted: Fri Feb 21, 2003 5:34 pm Post subject: |
|
|
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 _________________ 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 |
|
|
GeoTrail Valued Contributor
Joined: 18 Feb 2003 Posts: 572 Location: Bergen, Norway
|
Posted: Fri Feb 21, 2003 5:49 pm Post subject: |
|
|
I've added the DECIMALSEP, 'cause I saw myself what happens there
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 |
|
|
Mac Professional Member
Joined: 08 Jul 2000 Posts: 1585 Location: Oklahoma USA
|
Posted: Fri Feb 21, 2003 9:52 pm Post subject: |
|
|
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)...
However, if the user has a different/strange theme, I think the
SCALE settings go out the window anyway.
Cheers, Mac _________________ 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 |
|
|
GeoTrail Valued Contributor
Joined: 18 Feb 2003 Posts: 572 Location: Bergen, Norway
|
Posted: Fri Feb 21, 2003 10:06 pm Post subject: |
|
|
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 _________________
|
|
Back to top |
|
|
PGWARE Web Host
Joined: 29 Dec 2001 Posts: 1562
|
Posted: Fri Feb 21, 2003 10:55 pm Post subject: |
|
|
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 |
|
|
GeoTrail Valued Contributor
Joined: 18 Feb 2003 Posts: 572 Location: Bergen, Norway
|
Posted: Fri Feb 21, 2003 11:05 pm Post subject: |
|
|
OK, good advice.
Thanks again PGWARE _________________
|
|
Back to top |
|
|
cnodnarb Professional Member
Joined: 11 Sep 2002 Posts: 762 Location: Rockeledge, GA
|
Posted: Sun Mar 23, 2003 5:36 pm Post subject: |
|
|
"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
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 |
|
|
|