Various notes and questions #1242

CLOSED
Submitted 6 months ago

On section 3.2, the screenshots could have the same order as the code (or the code could have the same order as the screenshots, ah, you get my point! :-P)

On section 3.3, why do the buttons on the screenshot appear as 2nd, 3rd, 1st? Is it related to the order of the buttons on Linux? I used the code on Windows and they appear as 1st, 2nd, 3rd.

On section 3.5, the first paragraph mentions that "you can add an OK and Cancel button". The 'OK' is text is the 'Cancel' is a button image. It would be nice if the 'OK' was also a button image.

On section 3.6, as I’m running the codes from the application we’re building as the course progresses, the "This is a TitleAreaDialog" widget is not css’ed and then is white, contrasting with the nice gray used on the dialog. Is there a css property that can be used to change the color of the dialog header?

Comments

  6 months ago

3.2 order of the screenshots is now fixed

  6 months ago

3.3. Added the following: NOTE: The display of the default button is platform dependent, the above screenshot shows it on Linux.

  6 months ago

3.5. Done

  6 months ago

3.6. AFAICS there is not CSS for this specific case. You could use the method dialog.setTitleAreaColor(Display.getDefault().getSystemColor(SWT.COLOR_DARK_RED).getRGB()); for this, if you like.

  6 months ago

Regarding 3.6, I couldn’t make it work. No matter what I do, the background remains white. Whatever, it was just a low-priority question. :)

  6 months ago

You may have to also set the background image to see a bigger difference.

Please login to write a comment.