Results 1 to 4 of 4

Thread: IMAGECTX - border

  1. #1
    Member
    Join Date
    Mar 2009
    Location
    Netherlands
    Age
    52
    Posts
    248
    Rep Power
    40

    IMAGECTX - border

    A small question about the IMAGECTX control.
    Is is possible to remove the border around the picture?

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

    Re: IMAGECTX - border

    Hi Martin,

    yes, it is of course - by not specifying %WS_BORDER style.

    So when you do not specify any style:
    [code=thinbasic]
    control add IMAGECTX, cbhndl, %imageCtx01, "", 5, 5, 200, 200
    [/code]

    or by specifying the default one:
    [code=thinbasic]
    control add IMAGECTX, cbhndl, %imageCtx01, "", 5, 5, 200, 200, %WS_CHILD or %WS_VISIBLE
    [/code]
    ... you should get what you want.


    Let me know,
    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
    Member
    Join Date
    Mar 2009
    Location
    Netherlands
    Age
    52
    Posts
    248
    Rep Power
    40

    Re: IMAGECTX - border

    Hi Petr,

    This is really stupid! I copied the "control add IMAGECTX" code from an example into my script, played a hour with it and didn't notice %ws_border at all. But now after your advice I see it IS present. I feel so dumb. I am too long behind the pc I guess...

    Best regards,

    Martin

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

    Re: IMAGECTX - border

    No problem, I am happy it worked

    Good thing is this rule applies to most controls - LABELs, LISTBOXes, ...
    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. imageCTX two in one
    By Lionheart008 in forum UI (User Interface)
    Replies: 5
    Last Post: 12-11-2009, 19:52

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
  •