NTK and The NTK Project
are properties of Jn Dechereux
Home | Documentation | FAQ.

Vanilla 1.1.8 is a product of Lussumo. More Information: Documentation, Community Support.

Welcome Guest!
Want to take part in these discussions? If you have an account, sign in now.
If you don't have an account, apply for one now.
    •  
      CommentAuthorMarkus II
    • CommentTimeSep 22nd 2010
     
    Tout d'abord, 3 fonctions pour créer et habiller vos fenêtres et vos boutons :
    - NTK_MakeSkin() pour créer, à partir d'un bitmap, 9 bitmap pour dessiner un habillage(explication sous peu)
    - NTK_DrawSkin() pour dessiner un habillage à partir de 9 bitmap.
    - NTK_SkinToBitmap() pour créer un bitmap à partir d'un habillage (utile pour générer des bitmap à la volée pour les boutons, en attendant que JND les intègre dans la fonction BUTTON()

    Et ensuite, une nouvelle fonction de requête message un peu plus graphique et sonore, et exploitant les fonctions ci-dessus :
    - NTK_ReqMessage()

    On peut voir les fonctions en exemple dans le post sur NTKDIC.

    Je posterai prochainement des démos et des exemples de code.

    En attendant, défoulez-vous bien avec NTK.

    A+
    Markus II
    •  
      CommentAuthorjnd
    • CommentTimeOct 5th 2010 edited
     
    Salut Markus,

    Grand Merci à toi pour cette Librairie de grande qualité, je suis personnellement impressionné par les effets visuels obtenus. J'apprécie tout particulièrement les possibilités de transparence. WOW!
    Je ne manquerai de satisfaire à ta demande et de l'inclure officiellement dans la prochaine version de NTK.

    Cordialement,
    JN


    Hi Markus,
    Thousand thanks for this valuable Library. I must admit, I am personaly impressed by the visual effects obtained with these few functions. I do really appreciate the transparency abilities. Wow!
    It's no doubt, I will include officially your Lib in next NTK's release.

    Cheers,
    JN


    Example: NTK_MessageBoxEx()

    FUNCTION DoExit(hWnd, message, nwParam, nlParam)
    // This proc. is automatically called each time our window receives a Destroy Msg or
    // when NTK_SendCloseEvent() is invoked...
    LOCAL Nbutoon
    
    // Message, color
    LOCAL tMess := { { "QUITTER CETTE BELLE APPLICATION ???", NTK_RGB(255,255,255) }, ;
                     { "Vois tu une lampe...", NTK_RGB(255,255,000) }, ;
                     { "...ou bien un citron", NTK_RGB(255,155,000) }, ;
                     { "...ou bien une patate", NTK_RGB(255,55,000) } }
    // Text, Key, color, width, Normal Skin, Down Skin, Over Skin, Help
    LOCAL tBtn  := { { "YO NO SOY", K_ENTER, NTK_RGB(255,000,000), 0, 1, 2, 3, "Quit this program..." }, ;
                     { "LIGHT", K_F1, NTK_RGB(000,255,255), 0, 1, 2, 3, "Faut que l'on en parle." }, ;
                     { "LEMON", K_F2, NTK_RGB(255,255,255), 0, 1, 2, 3, "Je reste pour voir..." }, ;
                     { "POTATOES", K_F3, NTK_RGB(255,255,255), 0, 1, 2, 3, "Je reste pour voir..." }, ;
                     { "LUCAS'S HEAD", K_F4, NTK_RGB(255,255,255), 0, 1, 2, 3, "Je reste pour voir..." }, ;
                     { "JE SUIS AVEUGLE", K_ESC, NTK_RGB(255,255,255), 0, 1, 2, 3, "Encore un autre bouton" } }
    
    // Sample using a background image.
    // handle, Table message, Font message, Image, Color transparency, Table button, Font button, Skin window or Image Disc
    Nbutoon := NTK_MsgBoxEX(hWnd, tMess, hObjFONT2, hWarn, NTK_RGB(255,000,255), tBtn, hObjFONT1, ".\Images\BlackDesert.jpg")
    IF Nbutoon == 1
       RETURN( NTK_SendQuitEvent() )
    ELSE
       NTK_MsgBox(,tBtn[Nbutoon,1])
    ENDIF
    
    RETURN(.F.)       // Do not quit, keep on current task
    


    Look at the result in the enclosed picture.
    •  
      CommentAuthorMarkus II
    • CommentTimeOct 17th 2010
     
    Un site dédié à la bibliothèque NTK MKII vient de voir le jour :
    http://markus2.e-monsite.com/
    Vous y retrouverez toute l'évolution de cette librairie dédiée aux applications graphiques et tactiles.