Author Topic: TK lib  (Read 2155 times)

Offline Hemlos

  • To boldy go where no pixel has gone before!
  • Global Moderator
  • Prof. Inline
  • *******
  • Posts: 1621
  • Particle Hawk
    • View Profile
TK lib
« on: 2012-Dec-16 »
http://www.glbasic.com/forum/index.php?action=dlattach;topic=8806.0;attach=5566
// --------------------------------- //
// Project: TK
// Start: Sunday, December 16, 2012
// IDE Version: 11.261
// --------------------------------- //
//
// Gernot, seriously speaking, I Don't want to ruin your day.
// If you ignore this thread, that won't bother me a bit.
// This report is rather extensive, and can be used by other people, as a "known issues list."
// I didn't check all the commands, as a matter of fact, i didn't get chance to use most of them.
//
// - Hope you have a great holiday season!
// - Neil
//
// =========================================================================================================================== //
//
// Bug report - TK Project @ GLBasic\Samples\_Projects_\TclTk
//
//
// Bugs found -
//
//    1. KEY() - always returns 0. afterthought: makes me wonder if other controllers are working too, I didnt test joystick.
//
//    2. ALLOWESCAPE TRUE - Doesn't work either way..keys aren't recognized.
//
//    3. Dialog window section isn't part of the IDE options window size. The dialog and the opengl view are culmulative in size.
//
//    4. AUTOPAUSE FALSE - Command must be FALSE, otherwise window locks, program freezes.
//
//    5. tk_ComboBox() command
//
//      a. This typo is in the help dialog of the TclTk.gbas file -
//         // \param text$ - items, seperated by "|" character
//
//      b. You must use a space, not a bar | to separate elements in this combo box.
//         - It could be a bit handier to use | instead of the space, so some writting can be an option.
//         - eg. "All images|*.bmp|*.png"
//
//      c. "0", Zero is always returned to this caller: tk_GetVal$(combo%)
//
//    6. tk_ListBox() command
//
//      a. elements do not 'deselect' if you click on the words instead of whitespace.
//
//      b. list resets if you use a tk_ComboBox(), Is this expected, maybe?
//
//    7. SYSTEMPOINTER - true or false, the mouse is always system style.
//
//    8. MOUSEAXIS() - x and y returns unexpected integers, buttons not sensed.
//
//  9. MOUSESTATE - returns all zeros
//
//
//  As an alternative to putting buttons in the main window, and to make most of the stuff work(excluding combobox), take these steps(unfortunetly it makes a second window instead) -
//  1. comment these out -
//    // ogl% = tk_OpenGL(1280,720);
//    // tk_GL_Swap(ogl) // SHOWSCREEN
//  2. Add SHOWSCREEN in place of gl swap.
//
//
// Questions - hope its not too many {innocent whistle}
//
//    1. How do i find these optional attribute values?  \param style$ - optional Tk style attributes
//
//    2. do we need to include the whole library found in the .app directory?
//
//    3. Are both drivers needed in the app directory at all times, or just one or the other in certain situations?
//
//    4. Is this driver/library set part of a future release integrated into GLBasic command sets?
//
//    5. Is there a way to left justify instead of center the elements in the dialog?
//
//    6. Is there a way to start radio buttons with a default selected dot?
//
//    7. Is there an optional way to stack the radio buttons instead of spanning to the right?
//
//    8. Is there a slider?
//
// Feedback -
//
//    I was just playing around with this TK project for grins.
//    toying the idea of using windows buttons in future GLBasic tools.
//    Please, dont rush to fix this on my behalf, i dont need these, at all.
//
//    I do like how this library works, its great.
//    I see no framerate loss at all!
//  The project seems overwhelming at first.
//    However daunting it may seem, the reality is you dont need to learn much about it to use it effectively.
//    After about an hour i found it VERY easy to use.
//    Making a row of buttons; across the top, or down the side, or any side, is very easy to do.
//






[attachment deleted by admin]
« Last Edit: 2012-Dec-16 by Hemlos »
Volume_of_Earth(km^3) = 4/3*3.14*POW(6371.392896,3)

Offline Kitty Hello

  • code monkey
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 10814
  • here on my island the sea says 'hello'
    • View Profile
    • http://www.glbasic.com
Re: TK lib
« Reply #1 on: 2012-Dec-26 »
oh dear. I'll have a look. But the native gui is much better than the Tcl/Tk thing.

Offline Hemlos

  • To boldy go where no pixel has gone before!
  • Global Moderator
  • Prof. Inline
  • *******
  • Posts: 1621
  • Particle Hawk
    • View Profile
Re: TK lib
« Reply #2 on: 2012-Dec-27 »
oh dear. I'll have a look. But the native gui is much better than the Tcl/Tk thing.

I heard of this, but i cant seem to find it in the samples or help file.
Volume_of_Earth(km^3) = 4/3*3.14*POW(6371.392896,3)