Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsReproducing Gdesklet look and feel ?
https://www.eclipse.org/forums/index.php/mv/msg/143464/451753/#msg_451753
I'm asked to develop particular components in my application (with should
work both on Linux and Mac).
These components can be dragged from the main window and dropped onto the
desktop which will then create a new window having a Gdesklet look and
feel.
- rounded corners,
- transparent images displayed partially outside the window,
- transparent window background,
- possibility to display it "always on top",
- shadowed,
- ...
Please could you give hints about the possibilities offered by SWT ?
Thanks a lot,
Helene]]>hortiz Mising name2005-03-08T15:21:54-00:00Re: Reproducing Gdesklet look and feel ?
https://www.eclipse.org/forums/index.php/mv/msg/143464/451823/#msg_451823
I've started with Snippet180 (emulate transparent shell) but is it
possible to put Label, Text, Button... instances in the generated region ?
hortiz wrote:
> Hi,
> I'm asked to develop particular components in my application (with should
> work both on Linux and Mac).
> These components can be dragged from the main window and dropped onto the
> desktop which will then create a new window having a Gdesklet look and
> feel.
> - rounded corners,
> - transparent images displayed partially outside the window,
> - transparent window background,
> - possibility to display it "always on top",
> - shadowed,
> - ...
> Please could you give hints about the possibilities offered by SWT ?
> Thanks a lot,
> Helene]]>hortiz Mising name2005-03-09T15:54:19-00:00Re: Reproducing Gdesklet look and feel ?
https://www.eclipse.org/forums/index.php/mv/msg/143464/451825/#msg_451825
however that events will pass right through and go to whatever is behind the
widget if the widget is over a semi-transparent part of the shell. You
should probably make the shell solid in the area of the button. For a
Label, it is ok to be transparent because Labels don't respond to user
events anyway.
"hortiz" <hortiz@xxx.com> wrote in message
news:d0n67b$e26$1@www.eclipse.org...
> Nobody could give me some hints ?
>
> I've started with Snippet180 (emulate transparent shell) but is it
> possible to put Label, Text, Button... instances in the generated region ?
>
>
>
>
> hortiz wrote:
>
>> Hi,
>
>> I'm asked to develop particular components in my application (with should
>> work both on Linux and Mac).
>
>> These components can be dragged from the main window and dropped onto the
>> desktop which will then create a new window having a Gdesklet look and
>> feel.
>
>> See different examples at :
>
>> http://adesklets.sourceforge.net/images/weather_screen.jpg
>
>>
> http://www.lynucs.org/index.php?screen_type=1&screen_id= 5235311274028194baaf11&m=screen
>
>> i.e. :
>
>> - rounded corners,
>> - transparent images displayed partially outside the window,
>> - transparent window background,
>> - possibility to display it "always on top",
>> - shadowed,
>> - ...
>
>> Please could you give hints about the possibilities offered by SWT ?
>> Thanks a lot,
>> Helene
>
>]]>Veronika Irvine2005-03-09T16:07:45-00:00Re: Reproducing Gdesklet look and feel ?
https://www.eclipse.org/forums/index.php/mv/msg/143464/451835/#msg_451835
But how do I make the shell solid in the area of the button ?
And can you give me your thoughts about my question on the Desklet look
and feel ?
Thanks in advance
Helene
Veronika Irvine wrote:
> Yes it is - just create and size the widgets as you would normally. Note
> however that events will pass right through and go to whatever is behind the
> widget if the widget is over a semi-transparent part of the shell. You
> should probably make the shell solid in the area of the button. For a
> Label, it is ok to be transparent because Labels don't respond to user
> events anyway.
> "hortiz" <hortiz@xxx.com> wrote in message
> news:d0n67b$e26$1@www.eclipse.org...
>> Nobody could give me some hints ?
>>
>> I've started with Snippet180 (emulate transparent shell) but is it
>> possible to put Label, Text, Button... instances in the generated region ?
>>
>>
>>
>>
>> hortiz wrote:
>>
>>> Hi,
>>
>>> I'm asked to develop particular components in my application (with should
>>> work both on Linux and Mac).
>>
>>> These components can be dragged from the main window and dropped onto the
>>> desktop which will then create a new window having a Gdesklet look and
>>> feel.
>>
>>> See different examples at :
>>
>>> http://adesklets.sourceforge.net/images/weather_screen.jpg
>>
>>>
>> http://www.lynucs.org/index.php?screen_type=1&screen_id= 5235311274028194baaf11&m=screen
>>
>>> i.e. :
>>
>>> - rounded corners,
>>> - transparent images displayed partially outside the window,
>>> - transparent window background,
>>> - possibility to display it "always on top",
>>> - shadowed,
>>> - ...
>>
>>> Please could you give hints about the possibilities offered by SWT ?
>>> Thanks a lot,
>>> Helene
>>
>>]]>hortiz Mising name2005-03-09T16:28:24-00:00Re: Reproducing Gdesklet look and feel ?
https://www.eclipse.org/forums/index.php/mv/msg/143464/451876/#msg_451876
located to the region used by the shell:
Region region = new Region();
Rectangle pixel = new Rectangle(0, 0, 1, 1);
for (int y = 0; y < 200; y+=2) {
for (int x = 0; x < 200; x+=2) {
pixel.x = x;
pixel.y = y;
region.add(pixel);
}
}
// make sure button is solid:
Rectangle bounds = button.getBounds();
for (int y = bounds.y; y < bounds.y + bounds.height; y++) {
for (int x = bounds.x; x < bounds.x + bounds.width; x++) {
pixel.x = x;
pixel.y = y;
region.add(pixel);
}
}
"hortiz" <hortiz@xxx.com> wrote in message
news:d0n878$pc5$1@www.eclipse.org...
> Thanks Veronika for your answer.
> But how do I make the shell solid in the area of the button ?
>
> And can you give me your thoughts about my question on the Desklet look
> and feel ?
>
> Thanks in advance
> Helene
>
>
> Veronika Irvine wrote:
>
>> Yes it is - just create and size the widgets as you would normally. Note
>> however that events will pass right through and go to whatever is behind
>> the widget if the widget is over a semi-transparent part of the shell.
>> You should probably make the shell solid in the area of the button. For
>> a Label, it is ok to be transparent because Labels don't respond to user
>> events anyway.
>
>
>> "hortiz" <hortiz@xxx.com> wrote in message
>> news:d0n67b$e26$1@www.eclipse.org...
>>> Nobody could give me some hints ?
>>>
>>> I've started with Snippet180 (emulate transparent shell) but is it
>>> possible to put Label, Text, Button... instances in the generated region
>>> ?
>>>
>>>
>>>
>>>
>>> hortiz wrote:
>>>
>>>> Hi,
>>>
>>>> I'm asked to develop particular components in my application (with
>>>> should work both on Linux and Mac).
>>>
>>>> These components can be dragged from the main window and dropped onto
>>>> the desktop which will then create a new window having a Gdesklet look
>>>> and feel.
>>>
>>>> See different examples at :
>>>
>>>> http://adesklets.sourceforge.net/images/weather_screen.jpg
>>>
>>>>
>>>
> http://www.lynucs.org/index.php?screen_type=1&screen_id= 5235311274028194baaf11&m=screen
>>>
>>>> i.e. :
>>>
>>>> - rounded corners,
>>>> - transparent images displayed partially outside the window,
>>>> - transparent window background,
>>>> - possibility to display it "always on top",
>>>> - shadowed,
>>>> - ...
>>>
>>>> Please could you give hints about the possibilities offered by SWT ?
>>>> Thanks a lot,
>>>> Helene
>>>
>>>
>
>]]>Veronika Irvine2005-03-10T14:27:02-00:00Re: Reproducing Gdesklet look and feel ?
https://www.eclipse.org/forums/index.php/mv/msg/143464/451878/#msg_451878
tranparent label in a transparent shell).
Regarding the "Desklet look and feel", I suppose it is a little too
ambitious ?!
Helene
Veronika Irvine wrote:
> You make the button solid by adding all the pixels where the button is
> located to the region used by the shell:
> Region region = new Region();
> Rectangle pixel = new Rectangle(0, 0, 1, 1);
> for (int y = 0; y < 200; y+=2) {
> for (int x = 0; x < 200; x+=2) {
> pixel.x = x;
> pixel.y = y;
> region.add(pixel);
> }
> }
> // make sure button is solid:
> Rectangle bounds = button.getBounds();
> for (int y = bounds.y; y < bounds.y + bounds.height; y++) {
> for (int x = bounds.x; x < bounds.x + bounds.width; x++) {
> pixel.x = x;
> pixel.y = y;
> region.add(pixel);
> }
> }
> "hortiz" <hortiz@xxx.com> wrote in message
> news:d0n878$pc5$1@www.eclipse.org...
>> Thanks Veronika for your answer.
>> But how do I make the shell solid in the area of the button ?
>>
>> And can you give me your thoughts about my question on the Desklet look
>> and feel ?
>>
>> Thanks in advance
>> Helene
>>
>>
>> Veronika Irvine wrote:
>>
>>> Yes it is - just create and size the widgets as you would normally. Note
>>> however that events will pass right through and go to whatever is behind
>>> the widget if the widget is over a semi-transparent part of the shell.
>>> You should probably make the shell solid in the area of the button. For
>>> a Label, it is ok to be transparent because Labels don't respond to user
>>> events anyway.
>>
>>
>>> "hortiz" <hortiz@xxx.com> wrote in message
>>> news:d0n67b$e26$1@www.eclipse.org...
>>>> Nobody could give me some hints ?
>>>>
>>>> I've started with Snippet180 (emulate transparent shell) but is it
>>>> possible to put Label, Text, Button... instances in the generated region
>>>> ?
>>>>
>>>>
>>>>
>>>>
>>>> hortiz wrote:
>>>>
>>>>> Hi,
>>>>
>>>>> I'm asked to develop particular components in my application (with
>>>>> should work both on Linux and Mac).
>>>>
>>>>> These components can be dragged from the main window and dropped onto
>>>>> the desktop which will then create a new window having a Gdesklet look
>>>>> and feel.
>>>>
>>>>> See different examples at :
>>>>
>>>>> http://adesklets.sourceforge.net/images/weather_screen.jpg
>>>>
>>>>>
>>>>
>> http://www.lynucs.org/index.php?screen_type=1&screen_id= 5235311274028194baaf11&m=screen
>>>>
>>>>> i.e. :
>>>>
>>>>> - rounded corners,
>>>>> - transparent images displayed partially outside the window,
>>>>> - transparent window background,
>>>>> - possibility to display it "always on top",
>>>>> - shadowed,
>>>>> - ...
>>>>
>>>>> Please could you give hints about the possibilities offered by SWT ?
>>>>> Thanks a lot,
>>>>> Helene
>>>>
>>>>
>>
>>]]>hortiz Mising name2005-03-10T14:45:49-00:00Re: Reproducing Gdesklet look and feel ?
https://www.eclipse.org/forums/index.php/mv/msg/143464/451883/#msg_451883
"hortiz" <hortiz@xxx.com> wrote in message
news:d0pmit$ac8$1@www.eclipse.org...
> Thanks a lot for your answer Veronika (and also for that regarding the
> tranparent label in a transparent shell).
>
> Regarding the "Desklet look and feel", I suppose it is a little too
> ambitious ?!
>
> Helene
>
>
> Veronika Irvine wrote:
>
>> You make the button solid by adding all the pixels where the button is
>> located to the region used by the shell:
>
>> Region region = new Region();
>> Rectangle pixel = new Rectangle(0, 0, 1, 1);
>> for (int y = 0; y < 200; y+=2) {
>> for (int x = 0; x < 200; x+=2) {
>> pixel.x = x;
>> pixel.y = y;
>> region.add(pixel);
>> }
>> }
>
>> // make sure button is solid:
>> Rectangle bounds = button.getBounds();
>> for (int y = bounds.y; y < bounds.y + bounds.height; y++) {
>> for (int x = bounds.x; x < bounds.x + bounds.width; x++) {
>> pixel.x = x;
>> pixel.y = y;
>> region.add(pixel);
>> }
>> }
>
>
>> "hortiz" <hortiz@xxx.com> wrote in message
>> news:d0n878$pc5$1@www.eclipse.org...
>>> Thanks Veronika for your answer.
>>> But how do I make the shell solid in the area of the button ?
>>>
>>> And can you give me your thoughts about my question on the Desklet look
>>> and feel ?
>>>
>>> Thanks in advance
>>> Helene
>>>
>>>
>>> Veronika Irvine wrote:
>>>
>>>> Yes it is - just create and size the widgets as you would normally.
>>>> Note however that events will pass right through and go to whatever is
>>>> behind the widget if the widget is over a semi-transparent part of the
>>>> shell. You should probably make the shell solid in the area of the
>>>> button. For a Label, it is ok to be transparent because Labels don't
>>>> respond to user events anyway.
>>>
>>>
>>>> "hortiz" <hortiz@xxx.com> wrote in message
>>>> news:d0n67b$e26$1@www.eclipse.org...
>>>>> Nobody could give me some hints ?
>>>>>
>>>>> I've started with Snippet180 (emulate transparent shell) but is it
>>>>> possible to put Label, Text, Button... instances in the generated
>>>>> region ?
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> hortiz wrote:
>>>>>
>>>>>> Hi,
>>>>>
>>>>>> I'm asked to develop particular components in my application (with
>>>>>> should work both on Linux and Mac).
>>>>>
>>>>>> These components can be dragged from the main window and dropped onto
>>>>>> the desktop which will then create a new window having a Gdesklet
>>>>>> look and feel.
>>>>>
>>>>>> See different examples at :
>>>>>
>>>>>> http://adesklets.sourceforge.net/images/weather_screen.jpg
>>>>>
>>>>>>
>>>>>
>>>
> http://www.lynucs.org/index.php?screen_type=1&screen_id= 5235311274028194baaf11&m=screen
>>>>>
>>>>>> i.e. :
>>>>>
>>>>>> - rounded corners,
>>>>>> - transparent images displayed partially outside the window,
>>>>>> - transparent window background,
>>>>>> - possibility to display it "always on top",
>>>>>> - shadowed,
>>>>>> - ...
>>>>>
>>>>>> Please could you give hints about the possibilities offered by SWT ?
>>>>>> Thanks a lot,
>>>>>> Helene
>>>>>
>>>>>
>>>
>>>
>
>]]>Veronika Irvine2005-03-10T15:48:50-00:00Re: Reproducing Gdesklet look and feel ?
https://www.eclipse.org/forums/index.php/mv/msg/143464/451888/#msg_451888
Thanks again
Veronika Irvine wrote:
> You would be breaking new ground : )
> "hortiz" <hortiz@xxx.com> wrote in message
> news:d0pmit$ac8$1@www.eclipse.org...
>> Thanks a lot for your answer Veronika (and also for that regarding the
>> tranparent label in a transparent shell).
>>
>> Regarding the "Desklet look and feel", I suppose it is a little too
>> ambitious ?!
>>
>> Helene
>>
>>
>> Veronika Irvine wrote:
>>
>>> You make the button solid by adding all the pixels where the button is
>>> located to the region used by the shell:
>>
>>> Region region = new Region();
>>> Rectangle pixel = new Rectangle(0, 0, 1, 1);
>>> for (int y = 0; y < 200; y+=2) {
>>> for (int x = 0; x < 200; x+=2) {
>>> pixel.x = x;
>>> pixel.y = y;
>>> region.add(pixel);
>>> }
>>> }
>>
>>> // make sure button is solid:
>>> Rectangle bounds = button.getBounds();
>>> for (int y = bounds.y; y < bounds.y + bounds.height; y++) {
>>> for (int x = bounds.x; x < bounds.x + bounds.width; x++) {
>>> pixel.x = x;
>>> pixel.y = y;
>>> region.add(pixel);
>>> }
>>> }
>>
>>
>>> "hortiz" <hortiz@xxx.com> wrote in message
>>> news:d0n878$pc5$1@www.eclipse.org...
>>>> Thanks Veronika for your answer.
>>>> But how do I make the shell solid in the area of the button ?
>>>>
>>>> And can you give me your thoughts about my question on the Desklet look
>>>> and feel ?
>>>>
>>>> Thanks in advance
>>>> Helene
>>>>
>>>>
>>>> Veronika Irvine wrote:
>>>>
>>>>> Yes it is - just create and size the widgets as you would normally.
>>>>> Note however that events will pass right through and go to whatever is
>>>>> behind the widget if the widget is over a semi-transparent part of the
>>>>> shell. You should probably make the shell solid in the area of the
>>>>> button. For a Label, it is ok to be transparent because Labels don't
>>>>> respond to user events anyway.
>>>>
>>>>
>>>>> "hortiz" <hortiz@xxx.com> wrote in message
>>>>> news:d0n67b$e26$1@www.eclipse.org...
>>>>>> Nobody could give me some hints ?
>>>>>>
>>>>>> I've started with Snippet180 (emulate transparent shell) but is it
>>>>>> possible to put Label, Text, Button... instances in the generated
>>>>>> region ?
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> hortiz wrote:
>>>>>>
>>>>>>> Hi,
>>>>>>
>>>>>>> I'm asked to develop particular components in my application (with
>>>>>>> should work both on Linux and Mac).
>>>>>>
>>>>>>> These components can be dragged from the main window and dropped onto
>>>>>>> the desktop which will then create a new window having a Gdesklet
>>>>>>> look and feel.
>>>>>>
>>>>>>> See different examples at :
>>>>>>
>>>>>>> http://adesklets.sourceforge.net/images/weather_screen.jpg
>>>>>>
>>>>>>>
>>>>>>
>>>>
>> http://www.lynucs.org/index.php?screen_type=1&screen_id= 5235311274028194baaf11&m=screen
>>>>>>
>>>>>>> i.e. :
>>>>>>
>>>>>>> - rounded corners,
>>>>>>> - transparent images displayed partially outside the window,
>>>>>>> - transparent window background,
>>>>>>> - possibility to display it "always on top",
>>>>>>> - shadowed,
>>>>>>> - ...
>>>>>>
>>>>>>> Please could you give hints about the possibilities offered by SWT ?
>>>>>>> Thanks a lot,
>>>>>>> Helene
>>>>>>
>>>>>>
>>>>
>>>>
>>
>>]]>hortiz Mising name2005-03-10T16:34:21-00:00Re: Reproducing Gdesklet look and feel ?
https://www.eclipse.org/forums/index.php/mv/msg/143464/451889/#msg_451889
Thanks again
Veronika Irvine wrote:
> You would be breaking new ground : )
> "hortiz" <hortiz@xxx.com> wrote in message
> news:d0pmit$ac8$1@www.eclipse.org...
>> Thanks a lot for your answer Veronika (and also for that regarding the
>> tranparent label in a transparent shell).
>>
>> Regarding the "Desklet look and feel", I suppose it is a little too
>> ambitious ?!
>>
>> Helene
>>
>>
>> Veronika Irvine wrote:
>>
>>> You make the button solid by adding all the pixels where the button is
>>> located to the region used by the shell:
>>
>>> Region region = new Region();
>>> Rectangle pixel = new Rectangle(0, 0, 1, 1);
>>> for (int y = 0; y < 200; y+=2) {
>>> for (int x = 0; x < 200; x+=2) {
>>> pixel.x = x;
>>> pixel.y = y;
>>> region.add(pixel);
>>> }
>>> }
>>
>>> // make sure button is solid:
>>> Rectangle bounds = button.getBounds();
>>> for (int y = bounds.y; y < bounds.y + bounds.height; y++) {
>>> for (int x = bounds.x; x < bounds.x + bounds.width; x++) {
>>> pixel.x = x;
>>> pixel.y = y;
>>> region.add(pixel);
>>> }
>>> }
>>
>>
>>> "hortiz" <hortiz@xxx.com> wrote in message
>>> news:d0n878$pc5$1@www.eclipse.org...
>>>> Thanks Veronika for your answer.
>>>> But how do I make the shell solid in the area of the button ?
>>>>
>>>> And can you give me your thoughts about my question on the Desklet look
>>>> and feel ?
>>>>
>>>> Thanks in advance
>>>> Helene
>>>>
>>>>
>>>> Veronika Irvine wrote:
>>>>
>>>>> Yes it is - just create and size the widgets as you would normally.
>>>>> Note however that events will pass right through and go to whatever is
>>>>> behind the widget if the widget is over a semi-transparent part of the
>>>>> shell. You should probably make the shell solid in the area of the
>>>>> button. For a Label, it is ok to be transparent because Labels don't
>>>>> respond to user events anyway.
>>>>
>>>>
>>>>> "hortiz" <hortiz@xxx.com> wrote in message
>>>>> news:d0n67b$e26$1@www.eclipse.org...
>>>>>> Nobody could give me some hints ?
>>>>>>
>>>>>> I've started with Snippet180 (emulate transparent shell) but is it
>>>>>> possible to put Label, Text, Button... instances in the generated
>>>>>> region ?
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> hortiz wrote:
>>>>>>
>>>>>>> Hi,
>>>>>>
>>>>>>> I'm asked to develop particular components in my application (with
>>>>>>> should work both on Linux and Mac).
>>>>>>
>>>>>>> These components can be dragged from the main window and dropped onto
>>>>>>> the desktop which will then create a new window having a Gdesklet
>>>>>>> look and feel.
>>>>>>
>>>>>>> See different examples at :
>>>>>>
>>>>>>> http://adesklets.sourceforge.net/images/weather_screen.jpg
>>>>>>
>>>>>>>
>>>>>>
>>>>
>> http://www.lynucs.org/index.php?screen_type=1&screen_id= 5235311274028194baaf11&m=screen
>>>>>>
>>>>>>> i.e. :
>>>>>>
>>>>>>> - rounded corners,
>>>>>>> - transparent images displayed partially outside the window,
>>>>>>> - transparent window background,
>>>>>>> - possibility to display it "always on top",
>>>>>>> - shadowed,
>>>>>>> - ...
>>>>>>
>>>>>>> Please could you give hints about the possibilities offered by SWT ?
>>>>>>> Thanks a lot,
>>>>>>> Helene
>>>>>>
>>>>>>
>>>>
>>>>
>>
>>]]>hortiz Mising name2005-03-10T16:47:01-00:00