Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Reproducing Gdesklet look and feel ?
|
Re: Reproducing Gdesklet look and feel ? [message #451823 is a reply to message #451753] |
Wed, 09 March 2005 15:54 |
hortiz Mising name Messages: 96 Registered: July 2009 |
Member |
|
|
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
|
|
|
Re: Reproducing Gdesklet look and feel ? [message #451825 is a reply to message #451823] |
Wed, 09 March 2005 16:07 |
Veronika Irvine Messages: 1272 Registered: July 2009 |
Senior Member |
|
|
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
>
>
|
|
|
Re: Reproducing Gdesklet look and feel ? [message #451835 is a reply to message #451825] |
Wed, 09 March 2005 16:28 |
hortiz Mising name Messages: 96 Registered: July 2009 |
Member |
|
|
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
>>
>>
|
|
|
Re: Reproducing Gdesklet look and feel ? [message #451876 is a reply to message #451835] |
Thu, 10 March 2005 14:27 |
Veronika Irvine Messages: 1272 Registered: July 2009 |
Senior Member |
|
|
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
>>>
>>>
>
>
|
|
|
Re: Reproducing Gdesklet look and feel ? [message #451878 is a reply to message #451876] |
Thu, 10 March 2005 14:45 |
hortiz Mising name Messages: 96 Registered: July 2009 |
Member |
|
|
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
>>>>
>>>>
>>
>>
|
|
|
Re: Reproducing Gdesklet look and feel ? [message #451883 is a reply to message #451878] |
Thu, 10 March 2005 15:48 |
Veronika Irvine Messages: 1272 Registered: July 2009 |
Senior Member |
|
|
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
>>>>>
>>>>>
>>>
>>>
>
>
|
|
|
Re: Reproducing Gdesklet look and feel ? [message #451888 is a reply to message #451883] |
Thu, 10 March 2005 16:34 |
hortiz Mising name Messages: 96 Registered: July 2009 |
Member |
|
|
ok now I get the picture ;-)
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
>>>>>>
>>>>>>
>>>>
>>>>
>>
>>
|
|
|
Re: Reproducing Gdesklet look and feel ? [message #451889 is a reply to message #451883] |
Thu, 10 March 2005 16:47 |
hortiz Mising name Messages: 96 Registered: July 2009 |
Member |
|
|
ok now I get the picture ;-)
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
>>>>>>
>>>>>>
>>>>
>>>>
>>
>>
|
|
|
Goto Forum:
Current Time: Fri Apr 26 03:20:38 GMT 2024
Powered by FUDForum. Page generated in 0.04053 seconds
|