Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Few questions
Few questions [message #466181] Wed, 04 January 2006 17:09 Go to next message
Eclipse UserFriend
Originally posted by: mikko.tanskanen.tut.fi

I have some questions that I have come across while coding with SWT.

The structure of my gui is as follows:

Shell
-SashForm wholePane
--SashForm rightPane
---not relevant
--SashForm leftPane
---Label gameName (text)
---SashForm gameTablePane
----Composite leftPlayers (gridLayout, cols 1)
-----Composite newPlayer (several of these, rowLayout)
------Label with image
------Label with text
------Label with image
----Composite middleArea (gridLayout, cols 1)
-----Composite cardRow (several of these, rowLayout)
------Label (several of these)
-------image
----Composite rightPalyers (same as leftPlayers)
---SashForm errorPane
----Label with text
---Label with text
---Composite cardsPane
----Label (several of these)
-----image

In cardRows in middleArea, I would like to get the labels(with images) to
spread out on the area evenly. Now they all seem to stay on the left side
of the area, whatever I set to the rowLayout or rowData (should I add
rowData
to newPlayer-Composite or where). And same with newPlayer Composite
in leftPlayer Composite. They don't even out across the Composite.

In cardsPane I have several Labels, which have a single image each. Somehow
a horizontal scrollbar is in the bottom, even though there wouldn't be a
need
for it.

Here's an ASCII to clear out(??) the layout:

wholePane
leftPane____________________________________rightPane
|_________________gameName_______________| |
| leftPlayers | middleArea | rightPlayers |
|
| C text C | C C C C | C text C |
|
| C text C | C C C C | C text C |
|
| C text C | | C text C |
|
| | |
| |
| | |
| |
|______________|____________|______________| |
|_________________errorMessage_____________| |
| cardsPane
| |
| C C C C C C C C C C C C C | |
|_________________________________________|_______|

C = card (Label with image)

If I click one of the images in the cardsPane, that image should rise up
a little so you could see which card you have selected. Any ideas how
this should be done?

Also, if I move the cursor over an image in middleArea, the image's
background color should be changed. How can I do this?

Might be a little complicated to understand, hope you can give me
some answers.

Thank you,

-Mikko Tanskanen
Re: Few questions [message #466372 is a reply to message #466181] Mon, 09 January 2006 19:02 Go to previous message
Eclipse UserFriend
Originally posted by: mikko.tanskanen.tut.fi

Mikko Tanskanen wrote:
> I have some questions that I have come across while coding with SWT.
>
> The structure of my gui is as follows:
>
> Shell
> -SashForm wholePane
> --SashForm rightPane
> ---not relevant
> --SashForm leftPane
> ---Label gameName (text)
> ---SashForm gameTablePane
> ----Composite leftPlayers (gridLayout, cols 1)
> -----Composite newPlayer (several of these, rowLayout)
> ------Label with image
> ------Label with text
> ------Label with image
> ----Composite middleArea (gridLayout, cols 1)
> -----Composite cardRow (several of these, rowLayout)
> ------Label (several of these)
> -------image
> ----Composite rightPalyers (same as leftPlayers)
> ---SashForm errorPane
> ----Label with text
> ---Label with text
> ---Composite cardsPane
> ----Label (several of these)
> -----image
>
> In cardRows in middleArea, I would like to get the labels(with images) to
> spread out on the area evenly. Now they all seem to stay on the left side
> of the area, whatever I set to the rowLayout or rowData (should I add
> rowData
> to newPlayer-Composite or where). And same with newPlayer Composite
> in leftPlayer Composite. They don't even out across the Composite.
>
> In cardsPane I have several Labels, which have a single image each. Somehow
> a horizontal scrollbar is in the bottom, even though there wouldn't be a
> need
> for it.
>
> If I click one of the images in the cardsPane, that image should rise up
> a little so you could see which card you have selected. Any ideas how
> this should be done?
>
> Also, if I move the cursor over an image in middleArea, the image's
> background color should be changed. How can I do this?
>
> Might be a little complicated to understand, hope you can give me
> some answers.
>

Actually, here is a link to a screencap, it may make it easier to
see what's going on.

http://www.cs.tut.fi/~tanskanm/table.jpg

So I would like to get the scrollbar away and cards in the gametable
to be in the middle, not on the left side. Also, players' area should
be evenly layed out. So that all the cards are at the same level.

I hope you can help me with this. Even just a bit.

-Mikko Tanskanen
Previous Topic:CellEditors in Table
Next Topic:Could any find the error in this piece of code
Goto Forum:
  


Current Time: Sat Dec 07 01:20:23 GMT 2024

Powered by FUDForum. Page generated in 0.02964 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top