Koda

Welcome to Koda bug tracker!

At the moment you can post bugreports or suggestions anonymously. But registered users have some benefits: attaching files, commenting, voting, tracking tasks e.t.c.

Due some asshole started spamming tracker, now (at least for some time) it’s not allowed to create anonymous tasks. Sorry for unconvenience.

In edit fields you can use DokuWiki syntax for formatting.

Tasklist

FS#280 - Graphics styles: some suggestions

Attached to Project: Koda
Opened by Chris Haslam (c.haslam) - Friday, 20 May 2011, 04:58 GMT+3
Type Bug Report
Category Application
Status Unconfirmed
Assigned To No-one
Operating System All
Severity Low
Priority Normal
Reported Version Development
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 0
Private No

Details

SS_LEFTNOWORDWRAP appears in OI but is not, I think, applicable to a control that has no text

SS_SIMPLE seems to do nothing

SS_ETCHEDHORZ reduces the Height to 2, and when the Height is restored in OI, the graphic is not drawn. Indeed, Graphics Editor no longer shows the graphic although Item still shows 1 item.

SS_ETCHEDVERT behaves similarly except that the Width increased to about 630.

These tests were with a graphic that was larger than the control.

This task depends upon

Comment by Chris Haslam (c.haslam) - Friday, 20 May 2011, 07:49 GMT+3

SS_LEFT, SS_RIGHT, SS_CENTER seem to do nothing.

Comment by Admin (Lazycat) - Thursday, 09 June 2011, 14:44 GMT+3

By default text formatting styles looks useless for Graphic, but... this is still static control. How about this example:

#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
Local $Form1 = GUICreate("Form1", 623, 449, 192, 114)
Local $Graphic1 = GUICtrlCreateGraphic(40, 32, 200, 200, BitOR($GUI_SS_DEFAULT_GRAPHIC,$SS_CENTER,$SS_CENTERIMAGE))
GUICtrlSetGraphic(-1, $GUI_GR_ELLIPSE, 24, 21, 159, 158)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
 
ControlSetText ($Form1, "", $Graphic1, "This is a text") 
 
While 1
	$nMsg = GUIGetMsg()
	Switch $nMsg
		Case $GUI_EVENT_CLOSE
			Exit
 
	EndSwitch
WEnd
Comment by Chris Haslam (c.haslam) - Saturday, 11 June 2011, 00:33 GMT+3

I have added to documentation | Graphic | Remarks, at least for now,

To add text, call ControlSetText.

.

It would be possible (and would give SS_LEFT, etc. an obvious reason for being styles for Graphic) to make Koda capable of generating ControlSetText.

Comment by Chris Haslam (c.haslam) - Saturday, 11 June 2011, 08:25 GMT+3

I wrote

SS_SIMPLE seems to do nothing

This is inaccurate: it does do something according to MSDN: limited to one line, never grayed, control is not cleared before updating text (except when combined with SS_NOPREFIX), color can't be changed from default.

I will add SS_SIMPLE to doc for static controls.

Loading...