Xojo Conferences
XDCMay2019MiamiUSA

[MBS] Adding an boarder around an QLPreviewViewMBS (MBS Xojo Plugin Mailinglist archive)

Back to the thread list
Previous thread: [MBS] QLPreviewViewMBS
Next thread: [MBS] [ANN] 13.1pr13


Re: [MBS] [ANN] Changes in REAL Studio Project Format   -   Garth Hjelte
  [MBS] Adding an boarder around an QLPreviewViewMBS   -   Obleo Beck
   Re: [MBS] Adding an boarder around an QLPreviewViewMBS   -   Obleo Beck
    Re: [MBS] Adding an boarder around an QLPreviewViewMBS   -   Obleo Beck
   Re: [MBS] Adding an boarder around an QLPreviewViewMBS   -   Christian Schmitz
   Re: [MBS] Adding an boarder around an QLPreviewViewMBS   -   Christian Schmitz
    Re: [MBS] Adding an boarder around an QLPreviewViewMBS   -   Obleo Beck

[MBS] Adding an boarder around an QLPreviewViewMBS
Date: 14.04.13 01:17 (Sat, 13 Apr 2013 19:17:03 -0500)
From: Obleo Beck
Hello Christian,

I have an quick question about quick look view : QLPreviewViewMBS The one that is embedded into an window.

Is there an way to add an boarder around the view? I look around the documents and did see anything, however maybe I missed something.

System info: Real Studio Version 2012 r2.1 , Cocoa Build. MBSComplete 13 pr11 Mac OSX 10.8.3 Development machine.

Thanks,

Obleo Beck

Obleo Productions LLC.
_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
<email address removed>
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

Re: [MBS] Adding an boarder around an QLPreviewViewMBS
Date: 14.04.13 15:40 (Sun, 14 Apr 2013 09:40:52 -0500)
From: Obleo Beck
I had tried an whole ton of different things. I cant recall them all because I since deleted it from my project, over frustration that I was barking up the wrong tree.

I set all the QL Preview stuff that works fine, its when I tried adding an border within the same rect, where I run into issues. I just want an simple box around that rect. I always set the auto resize for everything I make. I could have missed other properties, there so many items not always listed within the same area so it hard to tell what one work with what.

For the NSView I added the CocoaControlMBS and tried to draw it. Not interested in an background color. just an line boarder around its rect. However that gave me an compile error. so I am pretty sure I doing something wrong there or it just does not work the way I thinking it does.

cheers,

Obleo beck

On Apr 14, 2013, at 8:47 AM, Christian Schmitz <<email address removed>> wrote:

>
> Am 14.04.2013 um 15:31 schrieb Obleo Beck <obeck@me.com>:
>
>> I have tried that, however I notice that when I do that there an performance issue when I resize the window, once the QL preview active. Like resize the window is very sticky. It seems that like that area on screen where the QLPreviewViewMBS is at if anything else is within that same rect when resizing the window is when I get the performance downgrade.
>>>
> did you just draw or put a nsview there with background color?
> you have to set autoresizingmask and probably some other properties, too.
>
> Greetings
> Christian
>
> --
> Read our blog about news on our plugins:
>
> http://www.mbsplugins.de/
>
> _______________________________________________
> Mbsplugins_monkeybreadsoftware.info mailing list
> <email address removed>
> https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
<email address removed>
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

Re: [MBS] Adding an boarder around an QLPreviewViewMBS
Date: 14.04.13 17:43 (Sun, 14 Apr 2013 11:43:06 -0500)
From: Obleo Beck
I got this to work somewhat using an NSBox now, it everything draws and performs fine. The only issue I having is the NSBox is not changing the line style from the default. I tried to change it to NSLineBorder = 1 and while it compiles fine it does not actually change the style. Would never thought adding an border around another view would be this difficult, this should be so simple, lol.

Well Thanks for the help, I thinking I just drop the whole boarder idea, and let it float on window without one.

Thanks for help.

Obleo Beck

On Apr 14, 2013, at 9:40 AM, Obleo Beck <obeck@me.com> wrote:

> I had tried an whole ton of different things. I cant recall them all because I since deleted it from my project, over frustration that I was barking up the wrong tree.
>
> I set all the QL Preview stuff that works fine, its when I tried adding an border within the same rect, where I run into issues. I just want an simple box around that rect. I always set the auto resize for everything I make. I could have missed other properties, there so many items not always listed within the same area so it hard to tell what one work with what.
>
> For the NSView I added the CocoaControlMBS and tried to draw it. Not interested in an background color. just an line boarder around its rect. However that gave me an compile error. so I am pretty sure I doing something wrong there or it just does not work the way I thinking it does.
>
> cheers,
>
> Obleo beck
>
> On Apr 14, 2013, at 8:47 AM, Christian Schmitz <<email address removed>> wrote:
>
>>
>> Am 14.04.2013 um 15:31 schrieb Obleo Beck <obeck@me.com>:
>>
>>> I have tried that, however I notice that when I do that there an performance issue when I resize the window, once the QL preview active. Like resize the window is very sticky. It seems that like that area on screen where the QLPreviewViewMBS is at if anything else is within that same rect when resizing the window is when I get the performance downgrade.
>>>>
>> did you just draw or put a nsview there with background color?
>> you have to set autoresizingmask and probably some other properties, too.
>>
>> Greetings
>> Christian
>>
>> --
>> Read our blog about news on our plugins:
>>
>> http://www.mbsplugins.de/
>>
>> _______________________________________________
>> Mbsplugins_monkeybreadsoftware.info mailing list
>> <email address removed>
>> https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info
>
> _______________________________________________
> Mbsplugins_monkeybreadsoftware.info mailing list
> <email address removed>
> https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
<email address removed>
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

Re: [MBS] Adding an boarder around an QLPreviewViewMBS
Date: 14.04.13 14:47 (Sun, 14 Apr 2013 15:47:54 +0200)
From: Christian Schmitz

Am 14.04.2013 um 15:31 schrieb Obleo Beck <obeck@me.com>:

> I have tried that, however I notice that when I do that there an performance issue when I resize the window, once the QL preview active. Like resize the window is very sticky. It seems that like that area on screen where the QLPreviewViewMBS is at if anything else is within that same rect when resizing the window is when I get the performance downgrade.
>>


did you just draw or put a nsview there with background color?
you have to set autoresizingmask and probably some other properties, too.

Greetings
Christian

Re: [MBS] Adding an boarder around an QLPreviewViewMBS
Date: 14.04.13 09:44 (Sun, 14 Apr 2013 10:44:54 +0200)
From: Christian Schmitz

Am 14.04.2013 um 02:17 schrieb Obleo Beck <obeck@me.com>:

> Hello Christian,
>
> I have an quick question about quick look view : QLPreviewViewMBS The one that is embedded into an window.
>

You could put it inside a CustomNSViewMBS and draw something.

Greetings
Christian

Re: [MBS] Adding an boarder around an QLPreviewViewMBS
Date: 14.04.13 14:31 (Sun, 14 Apr 2013 08:31:34 -0500)
From: Obleo Beck
I have tried that, however I notice that when I do that there an performance issue when I resize the window, once the QL preview active. Like resize the window is very sticky. It seems that like that area on screen where the QLPreviewViewMBS is at if anything else is within that same rect when resizing the window is when I get the performance downgrade.

It seems if I go with the styleCompact of the QLPreviewViewMBS It sort of get an border around the preview document (however it pretty small). It just when I chose the full size it looks goofy to the rest of the interface I have that there no boarder around it.

I was hoping that I could somehow tap into the NSViewMBS properties where there is border items like NSLineBorder. However if that even works, I can not figure out how. Maybe it just does not because what I doing.

Thanks,

Obleo Beck

On Apr 14, 2013, at 3:44 AM, Christian Schmitz <<email address removed>> wrote:

>
> Am 14.04.2013 um 02:17 schrieb Obleo Beck <obeck@me.com>:
>
>> Hello Christian,
>>
>> I have an quick question about quick look view : QLPreviewViewMBS The one that is embedded into an window.
>>
> You could put it inside a CustomNSViewMBS and draw something.
>
> Greetings
> Christian
>
> --
> Read our blog about news on our plugins:
>
> http://www.mbsplugins.de/
>
> _______________________________________________
> Mbsplugins_monkeybreadsoftware.info mailing list
> <email address removed>
> https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info
_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
<email address removed>
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info