The time now is Fri 24 May 2013, 01:36
All times are UTC - 4 |
|
Page 22 of 36 [526 Posts] |
Goto page: Previous 1, 2, 3, ..., 20, 21, 22, 23, 24, ..., 34, 35, 36 Next |
| Author |
Message |
rodin.s
Joined: 22 Sep 2010 Posts: 323 Location: Ukraine
|
Posted: Mon 20 Jun 2011, 13:23 Post subject:
Russian locale for proxy-setup |
|
I have found out today that proxy-setup can be translated and have made .po file for Russian.
| Description |
Russian for proxy-setup
|

Download |
| Filename |
proxy-setup_ru.po.gz |
| Filesize |
1.24 KB |
| Downloaded |
209 Time(s) |
|
|
Back to top
|
|
 |
L18L
Joined: 19 Jun 2010 Posts: 1717 Location: Burghaslach, Germany
|
Posted: Mon 20 Jun 2011, 14:35 Post subject:
Re: Russian locale for proxy-setup |
|
Hi rodin.s | you wrote: | | I have found out today that proxy-setup can be translated and have made .po file for Russian. |
Barry is waiting for you to email the po file to him, see http://murga-linux.com/puppy/viewtopic.php?t=48901&start=275.
Did you find gxlat too ?
|
|
Back to top
|
|
 |
rodin.s
Joined: 22 Sep 2010 Posts: 323 Location: Ukraine
|
Posted: Tue 21 Jun 2011, 06:42 Post subject:
proxy-setup |
|
I've left the message on Barry's blog. I'll look at gxlat.
|
|
Back to top
|
|
 |
GatorDog

Joined: 12 Sep 2006 Posts: 136
|
Posted: Tue 28 Jun 2011, 13:38 Post subject:
|
|
.
Puppy 525
BaCon and HUG in 525 devx
_______________________
From Barry's proxy_setup program I'm trying the xalign property.
| Quote: | REM param 0.0 means left-align label, 0.5 centre-align, 1.0 right-align...
PROPERTY(label_1, "xalign", 1.0) |
But getting this error:
| Quote: | | ERROR: could not parse line 9 in file 'xalign_test.bac'! |
Sample program;
| Code: | REM use shared /usr/lib/hug.so instead of including hug.bac...
INCLUDE "/usr/share/BaCon/hug_imports.bac"
INIT
mainwin = WINDOW("xalign testing", 400, 300)
label_1 = MARK("Label 1:", 200, 25)
REM param 0.0 means left-align label, 0.5 centre-align, 1.0 right-align...
PROPERTY(label_1, "xalign", 1.0)
ATTACH(mainwin, label_1, 5, 10)
ok_btn = BUTTON("OK", 65, 25)
ATTACH(mainwin, ok_btn, 240, 260)
CALLBACK(ok_btn, QUIT)
DISPLAY
|
Are the BaCon/HUG in 525 devx outdated? Or am I just missing something?
rod
.
|
|
Back to top
|
|
 |
L18L
Joined: 19 Jun 2010 Posts: 1717 Location: Burghaslach, Germany
|
Posted: Tue 28 Jun 2011, 14:38 Post subject:
Bacon Subject description: version |
|
| GatorDog wrote: | ....
Are the BaCon/HUG in 525 devx outdated? Or am I just missing something?
... |
Yes and yes.
1 - I am in wary now and have compiled your example successfully.
2 - The programm does not do anything.
IIRC I had downloaded bacon, runtime and dev from
http://bkhome.org/blog/?viewDetailed=02207
| Code: | # bacon -v
BaCon version 1.0 build 22 beta - (c) Peter van Eerten - GPL v3.
# |
HTH
edit
switching to 525 now
Another edit
Now in 525 without devx, pets installed: your result reproduced....wait a moment
Oh no, sorry I cannot help.
@all
Has anyone compiled a bacon source in Puppy 525
|
|
Back to top
|
|
 |
GatorDog

Joined: 12 Sep 2006 Posts: 136
|
Posted: Tue 28 Jun 2011, 17:54 Post subject:
|
|
Sorry, forgot to state my bacon version is also
BaCon version 1.0 build 22 beta - (c) Peter van Eerten - GPL v3.
Downloaded latest pet devx from here:
http://bkhome.org/blog/?viewDetailed=02207
but still same issue.
Downloaded and compiled BaCon GUI.
Still had problems.
But if I use | Code: | | INCLUDE "/usr/share/BaCon/hug.bac" | instead of
| Code: | | INCLUDE "/usr/share/BaCon/hug_imports.bac" |
the program compiles and runs properly.
However, it takes quite a bit of time to compile
for such a short program.
| Quote: | | Has anyone compiled a bacon source in Puppy 525 |
Yes, I've compiled a few short bacon programs in 525.
But so far the only bug I had run into was with this PROPERTY ...xalign.
So I guess my issue now is how to turn the hug.bac into the hug_imports.bac
rod
Edit:
Somehow in the process of installing the pet packages the
hug.so file disappeared. hug_imports.bac uses hug.so
A search for hug.so found /usr/lib/libhug.so
I edited hug_imports.bac to use /usr/lib/libhug.so but
there was no joy. I eventually got the hug.so from the
pet package and the hug_imports.bac (and other .bac prgs)
from the pet devx package. Everything seems to be working
correctly from both command line and the BaCon GUI.
While writting this edit, maxerro came up with the latest
versions of bacon, hug_imports.bac and hug.so .
I just installed them and they work fine.
Thank you maxerro!
rod
Last edited by GatorDog on Wed 29 Jun 2011, 02:05; edited 1 time in total
|
|
Back to top
|
|
 |
maxerro

Joined: 10 Oct 2010 Posts: 65
|
Posted: Wed 29 Jun 2011, 01:36 Post subject:
|
|
| GatorDog wrote: | | ...So I guess my issue now is how to turn the hug.bac into the hug_imports.bac... |
Erase that thought.
Try this, Gator:
| Description |
Extracts to the same directory: bacon v1.0.22, hug_imports.bac and hug.so v0.57
|

Download |
| Filename |
bacon-1.0.22-hug-0.57.tar.gz |
| Filesize |
112.97 KB |
| Downloaded |
197 Time(s) |
|
|
Back to top
|
|
 |
L18L
Joined: 19 Jun 2010 Posts: 1717 Location: Burghaslach, Germany
|
Posted: Wed 29 Jun 2011, 05:15 Post subject:
BaCon Subject description: lupu525 devx |
|
Thank you, maxerro
I have compiled successfully the example in wary512 devx loaded, no bacon*.pet now. (Before I have always used wary511q.)
This might confirm that lupu525_devx is outdated.
Another thought that I like to share:
| Code: | | INCLUDE "/usr/share/BaCon/hug_imports.bac" |
compiles very fast, use it (TRAP LOCAL) in the process of developing.
and switching to
| Code: | INCLUDE "/usr/share/BaCon/hug.bac"
REM TRAP LOCAL |
in the end will produce a smaller executable.
|
|
Back to top
|
|
 |
GatorDog

Joined: 12 Sep 2006 Posts: 136
|
Posted: Wed 29 Jun 2011, 14:38 Post subject:
Subject description: Change Font color of a widget |
|
I've looked through the documentation and do not see
a method of changing the Font color. Is there a way?
Something like this would be nice.
| Code: | FONT(widget, "color #ffffff")
'or
FONT(widget, "color BLUE") |
Usage then would be something like:
| Code: | label_1 = MARK("Color me Blue", 100, 25)
FONT(label_1, "color #0000FF")
ATTACH(mainwin, label_1, 10, 10) |
rod
|
|
Back to top
|
|
 |
L18L
Joined: 19 Jun 2010 Posts: 1717 Location: Burghaslach, Germany
|
Posted: Wed 29 Jun 2011, 16:12 Post subject:
Subject description: Change Font color of a widget |
|
| GatorDog wrote: | I've looked through the documentation and do not see a method of changing the Font color. Is there a way?
|
I think : NO
The only way I have found to colorize text is using CANVAS and OUT.
But I am hoping Peter can give you better advice.
| Code: | INCLUDE "/usr/share/BaCon/hug_imports.bac"
INIT
mainwin = WINDOW("color on canvas", 300, 100)
can = CANVAS(70,18)
ATTACH(mainwin,can,20,20)
OUT("hello world", "#FF0000", "#FFFFEE", 0, 0)
can = CANVAS(70,18)
ATTACH(mainwin,can,170,20)
OUT("hello world", "#00FF00", "#FFFFEE", 0, 0)
ok_btn = STOCK("gtk-ok", 65, 25)
ATTACH(mainwin, ok_btn, 230, 70)
SHOW(mainwin)
CALLBACK(ok_btn, QUIT)
DISPLAY
|
| Description |
|
| Filesize |
3.31 KB |
| Viewed |
817 Time(s) |

|
|
|
Back to top
|
|
 |
GatorDog

Joined: 12 Sep 2006 Posts: 136
|
Posted: Wed 29 Jun 2011, 16:46 Post subject:
|
|
L18L
I saw the canvas command. That seems kinda' messy but I
guess that's an option if you really need it.
You usedbefore the CALLBACK.
Is that for good form or does it do something that DISPLAY
doesn't accomplish?
'---------------------------
I ran a compiled bacon program on a non-puppy system.
It ran fine except the image file didn't display.
I erroneously thought the image file would be sucked
into the binary when the program was compiled.
The total package size would be about the same whether
the image is compiled in or carried along as a seperate
file. I guess the upside is that a set of image files
could be renamed during runtime to reflect different
stages of opperation.
So, is there any convention of where to store image files
that need to travel with the binary program? With Puppy,
there's my-applications and my-documents folders. But
those probably won't exist on other operating systems.
Typically the binay would be located somewhere in the $PATH.
And you probably wouldn't want to be storing image files
or other auxiliary files in the same place.
/usr/local/share seems to be a common directory across
systems, but maybe that's taboo.
just wondering,
rod
|
|
Back to top
|
|
 |
L18L
Joined: 19 Jun 2010 Posts: 1717 Location: Burghaslach, Germany
|
Posted: Thu 30 Jun 2011, 08:13 Post subject:
BaCon Subject description: colour |
|
| GatorDog wrote: | | I saw the canvas command. That seems kinda' messy but I guess that's an option if you really need it. |
Rethinking now about colours I have come to the conclusion: do NOT use it. You can never know which theme the user has choosen.
| GatorDog wrote: | You usedbefore the CALLBACK. Is that for good form or does it do something that DISPLAY
doesn't accomplish? |
Forget SHOW in this context. I had tried it because in first attempts there was no window at all displayed. But that was because there was no new line after DISPLAY. At the BaCon forum I was told that the latest version does not need the new line any more, but here in puppy I can live with this little trick. The SHOW is helpful if you have more than 1 window or if you have used HIDE(..) before.
| Quote: | /usr/local/share seems to be a common directory across
systems, but maybe that's taboo. |
I did not think that there is any taboo in puppy but looking in my /usr/local/share it appears there is a taboo using /usr/local/share
| Description |
same as before but other theme |
| Filesize |
2.9 KB |
| Viewed |
783 Time(s) |

|
|
|
Back to top
|
|
 |
vovchik

Joined: 23 Oct 2006 Posts: 1231 Location: Ukraine
|
Posted: Thu 30 Jun 2011, 10:08 Post subject:
text colours |
|
Dear Puppians,
I have attached a sample showing how to do text colours. Basically you use "span".
With kind regards,
vovchik
| Description |
|

Download |
| Filename |
notify.tar.gz |
| Filesize |
18.56 KB |
| Downloaded |
189 Time(s) |
|
|
Back to top
|
|
 |
L18L
Joined: 19 Jun 2010 Posts: 1717 Location: Burghaslach, Germany
|
Posted: Thu 30 Jun 2011, 11:18 Post subject:
text colours |
|
Edited:
Change line 489 in pnotify.bac from
my_duration = 10
to
my_duration = 30
and compile it then you will have 20 Seconds more time to read
| Description |
|
| Filesize |
6.82 KB |
| Viewed |
738 Time(s) |

|
|
|
Back to top
|
|
 |
seaside
Joined: 11 Apr 2007 Posts: 836
|
Posted: Thu 30 Jun 2011, 15:28 Post subject:
|
|
vovchik,
Thanks for posting pnotify again. It reminded me of how much nicer it is to have something just s-l-i-d-e onto the screen with information. The tray is sometimes too subtle and the full screen splash - too abrupt..
Now if pnotify only had a menu for further actions.....
Best regards,
s
|
|
Back to top
|
|
 |
|
|
Page 22 of 36 [526 Posts] |
Goto page: Previous 1, 2, 3, ..., 20, 21, 22, 23, 24, ..., 34, 35, 36 Next |
|
|
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 cannot attach files in this forum You can download files in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|