Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - Jean

Pages: 1 [2] 3
16
Astrobasic / command(BUTTON, -1
« on: September 18, 2021, 07:53:53 AM »
You can now use -1 to indicate the last created command when using command(XXXX, functions like BUTTON, CHECKBOX, EDIT etc.

17
Astrobasic / added hint() command
« on: September 18, 2021, 07:32:15 AM »
hint

Syntax: hint("Some text");
Action: makes the last created control display a hint when the user moves the cursor over the control.

example
Code: [Select]
button(0, 0, "Push me", go);
hint("Push this to make something happening");

18
Astrobasic / Syntax Changes`
« on: April 03, 2021, 12:34:45 PM »
Hi,
In this topic i will announces changes to syntax.
Whenever this happens, i will adjust all necessary scripts myself, but you should update if your own scripts are affected.

------------------------
- 2020 april 3, added minute parameter to drawpos().

Syntax: drawpos(int mx, int my, int angle, int radius, int fontsize, char minutes, real r);
Action: draws the length 'r' at angle and radius, if minutes = 0, no minutes are displayed.
------------------------

19
Planetdance General / MOVED: Customized ring
« on: February 07, 2021, 07:35:45 PM »

20
Astrobasic / looking for ingress
« on: January 20, 2021, 02:38:51 PM »
findaspect() can search for ingress.
There is now command(FUNCTION, 59, 1, 0), this sets a flag inside findevent() which lets it exit as soon as it finds the first ingress. This is handy when you just want to quickly search when a planet has the next ingress. You don't need to calculate an end time for the search, just use 250 years or something.
For an example see horoscope extra ingress.ab

21
Astrobasic / include "Sabian.ab"
« on: January 19, 2021, 03:52:49 PM »
include "Sabian.ab"

After this you can use the variable sabian[360][333] containing the sabian symbols in your code.

22
Astrobasic / new command: popup
« on: December 16, 2020, 12:11:52 PM »
from the help:

[popup]
Syntax: popup(int x, int y, char options[$], label onclick, char default);
Action: present a popupmenu. If default >= 0 that entry will be selected.

Example:
Code: [Select]
window(666, 666);
char s[99];
int n;
button(0,0, "Test", test);
run;

:test;
  popup(99, 99, "one|two|three", test1);
  return;

:test1;
  strset(s, "%d %d", n, menunumber);
  setcaption(s);
  n += 1;
  return;

23
Astrobasic / editor - application - layout
« on: November 24, 2020, 08:05:44 AM »
This is a new command in the editor. You can layout buttons, labels etc with this.

Layout (F6)
First select some text to operate upon.
You can enter expressions and commands that start with left, top like button etc. will be affected.
Syntax
  • ,[y], where x and y can be

-number only, all instances will just be replaced.
+ / - number, all instances will be in/decremented.
* number, all instances will be spaced with that amount.

example +10,*20, increase all x values with 10 and make each y 20 pixels bigger then the previous one.


24
Astrobasic / added dectolon
« on: November 22, 2020, 01:24:18 PM »
dectolon

Syntax: real dectolon(real dec, real lon, real ec);

Action: returns returns longitude equivalent for longitude lon, declination dec and ecliptica ec.


25
Planetdance General / possible bug with whole sign houses
« on: October 16, 2020, 06:28:13 PM »
This is about a bug reported by Hellen, and i'm making a topic for it.  ik constateer zojuist dat bij het gebruik van hele huizen de termen verkeerd rond de de tekens staan. Zie mijn voorbeeld. Deze horoscoop uitgedraaid via klassiek/Eds Greek is wel goed en in de tabel van klassiek/EssentiĆ«le Waardigheden staan ze ook goed. Ik schrik hier erg van.

26
Planetdance General / Filemanager and editors as tabbed windows
« on: September 19, 2020, 07:41:57 PM »
After some days work most seems to work. I will probably publish tomorrow.
Things to know, that need to go into the help:
- switching with alt-digit to another window does not work when an editor has focus because it uses alt-digit to set a bookmark. Use ctrl-alt digit to switch.
- A right mouseclick in the filemanager now shows a popup with the complete menu in stead of selecting a record. Use ctrl-click to (un)select a record.

[Edit] Gonna have a go at multiple window filemanager again before i publish.

27
Astrobasic / Multiple Document Interface
« on: September 10, 2020, 07:22:17 PM »
After lots of storm, the dust is settling down. Ab scripts can have embedded windows.

This seems a succes, i like it a lot. Pretty, user friendly, better monitor size support, options for extra menus.
See ab editor - templates - embedded, it contains

Code: [Select]
window(0, 0);
button(10, height - 30, "Menu", NULL);
command(BUTTON, 0, 10, 0);
command(MENU, 0, 12, 0);

The first line is the new window mode.

This is the updated help for window()

----------------------------------------
There are two special kind of windows possible, the first is when you use window(0, 0);

This makes the script window an 'MDI child', Multiple Document Interface, it embeds itself in the main program just like a horoscope (or graph or moving wheel). The Horoscope menu changes to a menu with the name of the script and it will contain all the menu() items from the script.

You can do command(MENU, 0, 12, 0); preferably on the line just before run; it will do two things:
- it will make a copy of the menu in the script mainmenu into a rightmouseclick popmenu, so the user can rightclick anywhere in the window for the script menu (just like the horoscope window).
- it will add a menu item Output, with subitems Copy to clipboard, Save Bitmap and Print to both menus.

You can also put a special ^button^ on the script like this
button(x, y, "Menu", NULL);
command(BUTTON, buttonnumber, 10, 0);

^setcaption^ will only set the upper caption in the mainwindow, if you want it to change the caption in the tab use command(FUNCTION, 67, x, 0); where x is on/off.

You should use 'width' and 'height' when designing your window and try to fit at least on 1920x1080 as well as 1366x768, in this case you can support the majority of screensizes.

28
You can now do this

Code: [Select]
button(0, 0, "hi", NULL);
command(BUTTON, buttonnumber, 0, 0); ` operate on the previously made button

Previously you had to do:

Code: [Select]
int i = button(0, 0, "hi", NULL);
command(BUTTON, i, 0, 0); ` operate on the previously made button

In stead of
Code: [Select]
menu(4, "Show Radix Lines", go);
menu(4, "Show Radix Planets", go);
menu(4, "Show House Lines", go);
command(MENU, 4, AUTOCHECK, 1); 
command(MENU, 5, AUTOCHECK, 1); 
command(MENU, 6, AUTOCHECK, 1);

It's easier to do this

Code: [Select]
menu(4, "Show Radix Lines", go);
command(MENU, menunumber, AUTOCHECK, 1); 
menu(4, "Show Radix Planets", go);
command(MENU, menunumber, AUTOCHECK, 1); 
menu(4, "Show House Lines", go);
command(MENU, menunumber, AUTOCHECK, 1);

In the last example you can now  delete / add / change the order of the menu()'s without having to change the numbers for command().

This applies to: buttonnumber, scrollnumber, editnumber, updownnumber and menunumber;

29
Planetdance General / MOVED: strlist command
« on: September 08, 2020, 03:48:17 PM »

30
Planetdance General / embedded script windows.
« on: September 06, 2020, 12:17:14 PM »
When i designed it, I choose to make the astrobasic window form a separate one, and give it an entry in the taskbar because else you couldn't make a small simple scripts to show some info.
But more extensive scripts could benefit from being embedded like horoscopes.

Pro / cons.

+ the most screenspace
+ user friendly, a tab like the others
+ has been requested
- the programmer has more work (use vars width / height to determine how much, what / where to display).
- There is no main menu at the top possible (but there is a button which has the same functionality).

The screenshot is

Pages: 1 [2] 3