IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

PureBasic Discussion :

SpiderBasic 1.10 beta est disponible sur votre compte


Sujet :

PureBasic

  1. #1
    Responsable Purebasic

    Avatar de comtois
    Inscrit en
    Avril 2003
    Messages
    1 261
    Détails du profil
    Informations forums :
    Inscription : Avril 2003
    Messages : 1 261
    Points : 9 924
    Points
    9 924
    Billets dans le blog
    8
    Par défaut SpiderBasic 1.10 beta est disponible sur votre compte
    La sortie de cette nouvelle version est plus rapide que je pensais

    une démonstration de la nouvelle bibliothèque dialog avec une grande police :
    http://www.spiderbasic.com/showcase/dialog/

    Hi everydoby !

    We are very happy to announce the new SpiderBasic version (beta), which brings some quite nice enhancements:

    - New powerful dialog lib to easily create auto-resizable form with XML definition
    - New 'flat' skin for gadget and window manager for modern looking app
    - Added DataSection support, with Read/Restore
    - Added DrawAlphaImage()
    - Added escaped string support with ~"" syntax
    - Added SetGadgetFont() support
    - Added theme selectors in "Compiler Options", and --windowtheme, --gadgettheme support for commandline
    - Added #PB_Gadget_RequiredSize support for GadgetWidth() and GadgetHeight()
    - Better gadget resizing to handle CSS margin and borders definition
    - Reworked the window theme files, it's now much easier to create a skin for window.
    - Better optimization for libraries Dialog, Gadget and Window with google closure compiler
    - Various bug fixes

    It available on your online account, grab it while it's hot and don't forget to report any bug found, so we can get a stable final release !

    To create your new window theme: go to the SpiderBasic/Libraries/Javascript/Theme drawer, copy one on the theme drawer (ex: 'flat') into a new one, and start tweaking the window.css. The new theme will automatically appear in the IDE, so you can test it. The same can be done for the dijit/theme/ drawer, but it's way more complex .

    Have fun,

    The Fantaisie Software team
    Vous souhaitez participer à la rubrique PureBasic (tutoriels, FAQ, sources) ? Contactez-moi par MP.

  2. #2
    Responsable Purebasic

    Avatar de comtois
    Inscrit en
    Avril 2003
    Messages
    1 261
    Détails du profil
    Informations forums :
    Inscription : Avril 2003
    Messages : 1 261
    Points : 9 924
    Points
    9 924
    Billets dans le blog
    8
    Par défaut
    voici le code source pour l'exemple dialog mentionné plus haut

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    151
    152
    153
    154
    155
    156
    157
    158
    159
    160
    161
    162
    163
    164
    165
    166
    ;
    ; ------------------------------------------------------------
    ;
    ;   SpiderBasic - Complex dialog example file
    ;
    ;    (c) Fantaisie Software
    ;
    ; ------------------------------------------------------------
    ;
     
    Enumeration
      #Dialog
      #Dialog2
      #Dialog3
    EndEnumeration
     
    #Xml = 0
     
    ; Declare this enumeration as 'Runtime' so we can use the constants directly in the XML
    ;
    Runtime Enumeration Gadget
      #ListView
      #GeneralContainer
      #EditorContainer
      #BackupContainer
    EndEnumeration
     
     
    Procedure ShowPanels()
     
      HideGadget(#GeneralContainer, #True)
      HideGadget(#EditorContainer, #True) 
      HideGadget(#BackupContainer, #True)
     
      Select GetGadgetState(#ListView)
        Case 0
          HideGadget(#GeneralContainer, #False)
     
        Case 1
          HideGadget(#EditorContainer, #False)
     
        Case 2
          HideGadget(#BackupContainer, #False)
      EndSelect
    EndProcedure
     
    ; Declare this procedure as 'Runtime' so we can use it as an event handler directly in the XML
    ;
    Runtime Procedure OnListViewEvent()
      ShowPanels()
    EndProcedure
     
     
    Procedure CreateDialogGeneric(Dialog, XML$, x, y)
      If ParseXML(#Xml, XML$) And XMLStatus(#Xml) = #PB_XML_Success
     
        If CreateDialog(Dialog) And OpenXMLDialog(Dialog, #Xml, "test", x, y) = #False
          Debug "Dialog error: " + DialogError(Dialog)
        EndIf
      Else
        Debug "XML error: " + XMLError(#Xml) + " (Line: " + XMLErrorLine(#Xml) + ")"
      EndIf  
    EndProcedure
     
     
    XML$ = "<window id='#PB_Any' name='test' text='Preferences' minwidth='auto' minheight='auto' flags='#PB_Window_SystemMenu | #PB_Window_SizeGadget'>" +
           "  <hbox expand='item:2'>" +
           "    <listview id='#ListView' width='100' onevent='OnListViewEvent()'/>" +
           "    <multibox>" +
           "" +
           "      <container id='#GeneralContainer'>" +
           "        <frame text='General'>" +
           "          <vbox expand='no'>" +
           "            <checkbox text='Enable red light'/>" +
           "            <checkbox text='Enable green light'/>" +
           "          </vbox>" +
           "        </frame>" +
           "      </container>" +
           "" +
           "      <container id='#EditorContainer'>" +
           "        <frame text='Editor'>" +
           "          <vbox expand='no'>" +
           "            <checkbox text='Set read only mode'/>" +
           "            <checkbox text='Duplicate line automatically'/>" +
           "            <checkbox text='Enable monospace font'/>" +
           "          </vbox>" +
           "        </frame>" +
           "      </container>" +
           "" +
           "      <container  id='#BackupContainer'>" +
           "      <frame text='Backup'>" +
           "        <vbox expand='no'>" +
           "          <checkbox text='Activate backup'/>" +
           "        </vbox>" +
           "      </frame>" +
           "      </container>" +
           "" +
           "    </multibox>" +
           "  </hbox>" +
           "</window>"
     
    CreateDialogGeneric(#Dialog2, XML$, 10, 10)
      AddGadgetItem(#ListView, -1, "General")
      AddGadgetItem(#ListView, -1, "Editor")
      AddGadgetItem(#ListView, -1, "Backup")
     
      SetGadgetState(#ListView, 0)
     
      ShowPanels()
     
    XML$ = "<window id='#PB_Any' name='test' text='All Gadgets' minwidth='400' minheight='auto' flags='#PB_Window_SystemMenu | #PB_Window_SizeGadget'>" +
             "  <panel>" +
             "    <tab text='First tab'>" +
             "      <vbox>" +
             "        <hbox>" +
             "          <button text='button'/>" +
             "          <editor text='editor'/>" +
             "          <hyperlink text='hyperlink'/>" +
             "        </hbox>" +
             "        <hbox>" +
             "          <date text='date'/>" +
             "          <checkbox text='checkbox'/>" +
             "          <option text='option'/>" +
             "          <trackbar/>" +
             "        </hbox>" +
             "        <hbox>" +
             "          <canvas text='date' flags='#PB_Canvas_Border'/>" +
             "          <calendar text='checkbox'/>" +
             "          <listview text='combo'/>" +
             "          <web text='http://www.purebasic.com'/>" +
             "        </hbox>" +
             "        <hbox>" +
             "          <image text='date' flags='#PB_Image_Border'/>" +
             "          <progressbar/>" +
             "          <combobox text='combo'/>" +
             "          <text text='Text'/>" +
             "        </hbox>" +
             "        <hbox>" +
             "          <scrollarea flags='#PB_ScrollArea_Border'/>" +
             "          <listicon height='80' text='ListIcon'/>" +
             "          <frame text='Frame'/>" +
             "          <tree/>" +
             "        </hbox>" +
             "        <hbox>" +
             "          <container flags='#PB_Container_Flat'/>" +
             "          <string text='StringGadget'/>" +
             "          <spin/>" +
             "        </hbox>" +
             "        <hbox>" +
             "          <splitter flags='#PB_Splitter_Vertical'>" +
             "            <button text='Left'/>" +
             "            <button text='Right'/>" +
             "          </splitter>" +
             "          <buttonimage/>" +
             "          <panel width='100'>" +
             "            <tab text='1'/>" +
             "            <tab text='2'/>" +
             "            <tab text='3'/>" +
             "          </panel>" +
             "        </hbox>" +
             "      </vbox>" +
             "    </tab>" +
             "  </panel>" +
             "</window>"
     
    CreateDialogGeneric(#Dialog3, XML$, 370, 10)
    Vous souhaitez participer à la rubrique PureBasic (tutoriels, FAQ, sources) ? Contactez-moi par MP.

  3. #3
    Responsable Purebasic

    Avatar de comtois
    Inscrit en
    Avril 2003
    Messages
    1 261
    Détails du profil
    Informations forums :
    Inscription : Avril 2003
    Messages : 1 261
    Points : 9 924
    Points
    9 924
    Billets dans le blog
    8
    Par défaut SpiderBasic 1.10 beta 2 est disponible sur votre compte
    La beta 2 est disponible sur votre compte.
    Hi everydoby !

    - Beta 2 is out and brings the following things:

    - 'f_procedurename' alias in the generated JS, to interact with SpiderBasic functions easily.
    - Fixed regressions due to aggressive optimisations
    - Reworked many examples to be more polished and straight to the point
    Vous souhaitez participer à la rubrique PureBasic (tutoriels, FAQ, sources) ? Contactez-moi par MP.

  4. #4
    Responsable Purebasic

    Avatar de comtois
    Inscrit en
    Avril 2003
    Messages
    1 261
    Détails du profil
    Informations forums :
    Inscription : Avril 2003
    Messages : 1 261
    Points : 9 924
    Points
    9 924
    Billets dans le blog
    8
    Par défaut
    Voila un commentaire qui fera plaisir à l'équipe de développement de SpiderBasic. (Comme d'hab je ne traduis pas, votre anglais est meilleur que le mien).

    Citation Envoyé par mahan
    This is cool stuff.

    I'm experimenting with SpiderBasic to create basic GUIs/tooling for RESTful APIs that deal with configurations and system settings (in combination with a Node.JS HTTP backend) and I really like where SpiderBasic is going.

    Many of us backend coders hate to have to deal with HTML+CSS just to get a basic UI for our HTTP interfaces (like for company internal stuff). At the same time it's not very user friendly to ask users/colleagues to use unix 'curl' to configure your programs, right?

    SpiderBasic looks very good from this perspective even at this early stage.

    Keep up the good work!
    Vous souhaitez participer à la rubrique PureBasic (tutoriels, FAQ, sources) ? Contactez-moi par MP.

Discussions similaires

  1. PureBasic 5.40 beta 1 est disponible sur votre compte
    Par comtois dans le forum PureBasic
    Réponses: 9
    Dernier message: 12/10/2015, 18h00
  2. PureBasic 5.30 (beta) est disponible sur votre compte
    Par comtois dans le forum PureBasic
    Réponses: 10
    Dernier message: 09/07/2014, 19h50
  3. PureBasic 5.22 LTS beta 1 est disponible sur votre compte
    Par comtois dans le forum PureBasic
    Réponses: 1
    Dernier message: 10/03/2014, 17h16
  4. PureBasic 5.21 LTS beta 1 est disponible sur votre compte
    Par comtois dans le forum PureBasic
    Réponses: 2
    Dernier message: 18/11/2013, 18h40
  5. PureBasic 5.11 beta 1 est disponible sur votre compte
    Par comtois dans le forum PureBasic
    Réponses: 2
    Dernier message: 13/03/2013, 15h33

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo