Results 1 to 4 of 4

Thread: UI: Line-Control questions

  1. #1
    thinBasic MVPs
    Join Date
    Oct 2012
    Location
    Germany
    Age
    54
    Posts
    1,527
    Rep Power
    170

    Question UI: Line-Control questions

    How does it work in tB to change behaviour of a Line-control so it gets displayed

    -colored (not just black or gray)

    -inverted (black background becomes white etc.)

    -dotted (or dash-dot-dot etc.)

    Attached sample-script, try run and draw some selection-rectangle on the dialog. Nothing else possible anyway.
    Using canvas to draw on is no solution because lines shall be visible over later added controls and repainting canvas each frame is too slow also.

    I want those lines of my selection-box dotted & inverted - or at least displayed in some eye-biting, good visible color. Setting color (lines 104 to 107) has no visible effect.
    Attached Files Attached Files
    I think there are missing some Forum-sections as beta-testing and support

  2. #2
    Super Moderator Petr Schreiber's Avatar
    Join Date
    Aug 2005
    Location
    Brno - Czech Republic
    Posts
    7,128
    Rep Power
    732
    Hi Rene,

    I think it would be maybe better to take similar route as you can see in SampleScripts/UI/MDI/MDI_Test_DialogEdit.tbasic.

    When you look at the SelRectBegin, SelRectDraw, SelRectEnd, it gives you idea how to draw rectangle.
    You can see the WIN_CreatePen allows to define pen for drawing, for example like:
    hPen = Win_SelectObject(memDC, Win_CreatePen(%PS_dash, 1, Rgb(255, 0, 0)))
    
    Maybe it could be what are you looking for...


    Petr
    Learn 3D graphics with ThinBASIC, learn TBGL!
    Windows 10 64bit - Intel Core i5-3350P @ 3.1GHz - 16 GB RAM - NVIDIA GeForce GTX 1050 Ti 4GB

  3. #3
    thinBasic MVPs
    Join Date
    Oct 2012
    Location
    Germany
    Age
    54
    Posts
    1,527
    Rep Power
    170
    Nope, I can not read that code.
    I think there are missing some Forum-sections as beta-testing and support

  4. #4
    Super Moderator Petr Schreiber's Avatar
    Join Date
    Aug 2005
    Location
    Brno - Czech Republic
    Posts
    7,128
    Rep Power
    732
    It is a bit ugly, isn't it But I think the solution to your request, even in form of built in functionality, would work similar. I am afraid the LINE control does not offer such a tuning you desire.


    Petr
    Last edited by Petr Schreiber; 23-10-2013 at 16:52.
    Learn 3D graphics with ThinBASIC, learn TBGL!
    Windows 10 64bit - Intel Core i5-3350P @ 3.1GHz - 16 GB RAM - NVIDIA GeForce GTX 1050 Ti 4GB

Similar Threads

  1. Replies: 1
    Last Post: 29-08-2013, 22:50
  2. time line control exists ?
    By Lionheart008 in forum TBGL General
    Replies: 1
    Last Post: 11-01-2011, 19:30
  3. A few more questions..
    By oldpapa49 in forum thinBasic General
    Replies: 12
    Last Post: 21-03-2009, 21:45
  4. DT questions
    By Dave in forum DT (Date module)
    Replies: 9
    Last Post: 16-04-2008, 09:48

Members who have read this thread: 0

There are no members to list at the moment.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •