Search found 43 matches

by glomph
Wed Jun 02, 2021 4:45 pm
Forum: Coding Questions
Topic: A simple sort problem?
Replies: 8
Views: 1566

Re: A simple sort problem?

Leading zeros are not necessary, spaces work too. To get rid of them, just use Trim().
by glomph
Thu Nov 12, 2015 4:40 am
Forum: Coding Questions
Topic: Convert/normalize special characters like "ê" to regular "e"
Replies: 13
Views: 2372

Re: Convert/normalize special characters like "ê" to regular

Procedure.s convert(a$)
a$=ReplaceString(a$,Chr(146),"'")
a$=ReplaceString(a$,Chr(96),"'")
a$=ReplaceString(a$,Chr(145),"'")
a$=ReplaceString(a$,Chr(154),"S")
a$=ReplaceString(a$,Chr(158),"Z")
a$=ReplaceString(a$,Chr(156),"Ö")

a$=ReplaceString(a$,Chr(192),"A")
a$=ReplaceString(a$,Chr(193 ...
by glomph
Sun Oct 04, 2015 2:54 pm
Forum: Tricks 'n' Tips
Topic: TimeBoxGadget - Like DateGadget..
Replies: 10
Views: 3668

Re: TimeBoxGadget - Like DateGadget..

Hi,
search in the forum for julianday
and you find what you need.
Sincerly
glomph
by glomph
Sun Jul 19, 2015 8:14 pm
Forum: Coding Questions
Topic: Checking 10 check-boxes State with loop
Replies: 9
Views: 1863

Re: Checking 10 check-boxes State with loop

Code: Select all

j= GetGadgetState(i) ;Checkbox_i always =0
by glomph
Thu May 28, 2015 6:18 am
Forum: Mac OSX
Topic: Cocoa: how to do Line, Circle, Dash & Arrow?
Replies: 4
Views: 6200

Re: Cocoa: how to do Line, Circle, Dash & Arrow?

Hi Wilbert,
thanks for that!
I hoped for for a snippet like that,
now i would get through.
:D

Sincerely
glomph
by glomph
Thu May 28, 2015 1:08 am
Forum: Mac OSX
Topic: Cocoa: how to do Line, Circle, Dash & Arrow?
Replies: 4
Views: 6200

Re: Cocoa: how to do Line, Circle, Dash & Arrow?

Hi IdeasVacuum,

thanks for the hint, but that stuff i use since years,
it is a bit slow.

I found out that cocoa can do this much faster and in better quality.
A line in cocoa i got out of Wilberts code ([PB Cocoa] Methods, Tips & Tricks)
about a filled roundbox.
This the rest i am stuck ...
by glomph
Thu May 28, 2015 12:19 am
Forum: Mac OSX
Topic: Cocoa: how to do Line, Circle, Dash & Arrow?
Replies: 4
Views: 6200

Cocoa: how to do Line, Circle, Dash & Arrow?

Hello,
not so experienced with cocoa
i need little help to draw in Cocoa :

a line , with thickness, dash and arrow
and a circle
even plot a point.

Sincerely
Glomph
by glomph
Fri Apr 17, 2015 7:21 am
Forum: Off Topic
Topic: The Scientific Comics of Jean-Pierre Petit
Replies: 2
Views: 2170

Re: The Scientific Comics of Jean-Pierre Petit

....good stuff! :D
by glomph
Sun Feb 22, 2015 4:00 pm
Forum: Feature Requests and Wishlists
Topic: Anti-Aliased 2D Drawing
Replies: 11
Views: 6080

Re: Anti-Aliased 2D Drawing

+1
by glomph
Sat Feb 21, 2015 3:01 am
Forum: Coding Questions
Topic: Draw an antialiased circle?
Replies: 16
Views: 8373

Re: Draw an antialiased circle?

Wonderful idea Samuel.

I took your example to get also outlined circles.
It does not work for overlapping ones.
Enumeration
#Window
#Canvas
EndEnumeration

Declare AntialiasedCircle(StartX.d, StartY.d, Radius.d,dick.d,AntiLength.d, front,back,art=0)
Global.i WindowW = 800
Global.i WindowH = 600 ...
by glomph
Mon Feb 16, 2015 2:54 pm
Forum: Coding Questions
Topic: Moon Phases
Replies: 13
Views: 4915

Re: Moon Phases

With so little code it is impossible to get a better result.
If you want to go deeper have a look here:
http://www.naughter.com/aa.html
by glomph
Sun Jan 04, 2015 3:01 pm
Forum: Coding Questions
Topic: How to detect if a PB program is running inside a VM
Replies: 6
Views: 3523

Re: How to detect if a PB program is running inside a VM

@ jassing,
thanks you for your advice.

Surely you point the right direction.

Never before I had to look a NIC,
so I nead a little more help,
to get through.

Have all a nice day
Glomph
by glomph
Sat Jan 03, 2015 5:28 am
Forum: Coding Questions
Topic: How to detect if a PB program is running inside a VM
Replies: 6
Views: 3523

Re: How to detect if a PB program is running inside a VM

....and even more fine:
It works on MAC too.
:D
by glomph
Sat Jan 03, 2015 5:18 am
Forum: Coding Questions
Topic: How to detect if a PB program is running inside a VM
Replies: 6
Views: 3523

Re: How to detect if a PB program is running inside a VM

Thank you very much Idle

That's a start!

Glomph
by glomph
Sat Jan 03, 2015 12:22 am
Forum: Coding Questions
Topic: How to detect if a PB program is running inside a VM
Replies: 6
Views: 3523

How to detect if a PB program is running inside a VM

Happy new year to all.

It is possible to detect if a PB program is running inside a Virtual Machine.

Saw same stuff here:
http://www.codeproject.com/Articles/9823/Detect-if-your-program-is-running-inside-a-Virtual

Unfortunately I'm not able to translate that code into PB.
Maybe someone has ...