[GB.FORM]
* BUG: LCDLabel drwas its border even if there is no text. [GB.GUI.BASE] * BUG: Fix Draw.Circle() and Draw.Ellipse() end angle argument. git-svn-id: svn://localhost/gambas/trunk@5415 867c0c6c-44f3-4631-809d-bfa615b0a4ec
This commit is contained in:
parent
9274cabcc0
commit
c6167e0785
9 changed files with 90 additions and 25 deletions
|
@ -45,6 +45,7 @@
|
|||
MoveScaled(4,125,68,11)
|
||||
Background = &HFFFFFF&
|
||||
ReadOnly = True
|
||||
Wrap = True
|
||||
Border = False
|
||||
ScrollBar = Scroll.None
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
51 Maurizio Da Lio
|
||||
52 Maurizio Da Lio
|
||||
37 GNU/Linex
|
||||
33 Radoslav Dejanovic
|
||||
18 Kari Laine
|
||||
|
@ -12,6 +12,7 @@
|
|||
12 Eight Virtues
|
||||
12 Laurent Carlier
|
||||
12 Ricardo Díaz Martin
|
||||
12 Gerry Douglas
|
||||
10 Thierry Senges
|
||||
10 Nando Favaro
|
||||
9 Technical Racing Products
|
||||
|
@ -20,7 +21,6 @@
|
|||
8 Two-Second Software
|
||||
8 Boris Diskus
|
||||
8 Jacky Tripoteau
|
||||
8 Gerry Douglas
|
||||
7 John Laurence
|
||||
7 Roy Jones
|
||||
7 Nicola Giacobbe
|
||||
|
|
|
@ -235,12 +235,32 @@ msgstr ""
|
|||
msgid "TextBox1"
|
||||
msgstr ""
|
||||
|
||||
#: FLCDLabel.form:14
|
||||
msgid "ABCDEF"
|
||||
#: FMain.form:22
|
||||
msgid "First wizard step"
|
||||
msgstr ""
|
||||
|
||||
#: FMain.form:17
|
||||
msgid "Expander1"
|
||||
#: FMain.form:27
|
||||
msgid "What do you want to do?"
|
||||
msgstr ""
|
||||
|
||||
#: FMain.form:32
|
||||
msgid "Uninstall Windows"
|
||||
msgstr ""
|
||||
|
||||
#: FMain.form:37
|
||||
msgid "Uninstall Mac OSX"
|
||||
msgstr ""
|
||||
|
||||
#: FMain.form:42
|
||||
msgid "Install Linux"
|
||||
msgstr ""
|
||||
|
||||
#: FMain.form:45
|
||||
msgid "Étape n°2"
|
||||
msgstr ""
|
||||
|
||||
#: FMain.form:47
|
||||
msgid "Étape n°3"
|
||||
msgstr ""
|
||||
|
||||
#: FMessage.form:39
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
# Gambas Project File 3.0
|
||||
# Compiled with Gambas 3.3.90
|
||||
Title=More controls for graphical components
|
||||
Startup=FLCDLabel
|
||||
Startup=FMain
|
||||
Version=3.3.90
|
||||
VersionFile=1
|
||||
Component=gb.image
|
||||
|
@ -9,7 +9,7 @@ Component=gb.gui
|
|||
Component=gb.form
|
||||
Component=gb.settings
|
||||
Authors="Benoît Minisini"
|
||||
Environment="GB_GUI=gb.qt4\nGB_STOCK=debug"
|
||||
Environment="GB_GUI=gb.qt4\nGB_STOCK=debug\nLANG=C\nLC_ALL=C"
|
||||
TabSize=2
|
||||
Translate=1
|
||||
Language=en
|
||||
|
|
|
@ -171,7 +171,7 @@ Public Sub View_Draw()
|
|||
W = $hView.W - iPad * 2
|
||||
H = $hView.H - iPad * 2
|
||||
|
||||
If W < 16 Or If H < 8 Or If Not $sText Then Return
|
||||
If W < 16 Or If H < 8 Or If Not $sText Then Goto DRAW_BORDER
|
||||
|
||||
For I = 1 To String.Len($sText)
|
||||
sCar = String.Mid$($sText, I, 1)
|
||||
|
@ -204,6 +204,8 @@ Public Sub View_Draw()
|
|||
$iBg = GetRealBackground()
|
||||
$iLightBg = Color.Merge($iFg, $iBg, 0.9)
|
||||
|
||||
Paint.ResetClip
|
||||
|
||||
iLen = String.Len($sText)
|
||||
For I = 1 To iLen
|
||||
sCar = String.Mid$($sText, I, 1)
|
||||
|
@ -222,6 +224,8 @@ Public Sub View_Draw()
|
|||
X += CW
|
||||
Next
|
||||
|
||||
DRAW_BORDER:
|
||||
|
||||
If $bBorder Then
|
||||
Draw.Rect(0, 0, $hView.W, $hView.H)
|
||||
Endif
|
||||
|
|
|
@ -1 +1,17 @@
|
|||
' Gambas class file
|
||||
|
||||
Private $bColon As Boolean
|
||||
|
||||
Public Sub Timer1_Timer()
|
||||
|
||||
$bColon = Not $bColon
|
||||
|
||||
LCDLabel2.Text = Format(Now, "hh" & If($bColon, ":", "") & "nn" & If($bColon, ":", "") & "ss")
|
||||
|
||||
End
|
||||
|
||||
Public Sub Form_Open()
|
||||
|
||||
Timer1_Timer
|
||||
|
||||
End
|
||||
|
|
|
@ -1,17 +1,19 @@
|
|||
# Gambas Form File 3.0
|
||||
|
||||
{ Form Form
|
||||
MoveScaled(0,0,159,80)
|
||||
MoveScaled(0,0,44,19)
|
||||
Arrangement = Arrange.Fill
|
||||
{ LCDLabel1 LCDLabel
|
||||
MoveScaled(17,21,54,40)
|
||||
{ LCDLabel2 LCDLabel
|
||||
MoveScaled(8,7,24,8)
|
||||
Background = &H000000&
|
||||
Foreground = &HFFFF00&
|
||||
Text = ("ABCDEF")
|
||||
Alignment = Align.Center
|
||||
Sheared = True
|
||||
Padding = 8
|
||||
Border = True
|
||||
HighlightColor = &HFF0000&
|
||||
}
|
||||
{ Timer1 #Timer
|
||||
#MoveScaled(36,11)
|
||||
Enabled = True
|
||||
Delay = 500
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,15 +1,39 @@
|
|||
# Gambas Form File 3.0
|
||||
|
||||
{ Form Form
|
||||
Move(0,0,539,350)
|
||||
Move(0,0,476,308)
|
||||
#Scaled = False
|
||||
Arrangement = Arrange.Fill
|
||||
Spacing = True
|
||||
Margin = True
|
||||
{ Panel1 Panel
|
||||
Move(56,35,371,245)
|
||||
{ Expander1 Expander
|
||||
Move(7,7,322,210)
|
||||
Text = ("Expander1")
|
||||
{ Wizard1 Wizard
|
||||
Move(7,14,462,287)
|
||||
Count = 3
|
||||
TextFont = Font["Bold,+4"]
|
||||
ShowIndex = True
|
||||
Index = 0
|
||||
Text = ("First wizard step")
|
||||
{ Label1 Label
|
||||
Move(245,14,252,28)
|
||||
Font = Font["Bold"]
|
||||
Text = ("What do you want to do?")
|
||||
}
|
||||
{ RadioButton1 RadioButton
|
||||
Move(245,42,168,28)
|
||||
Text = ("Uninstall Windows")
|
||||
}
|
||||
{ RadioButton2 RadioButton
|
||||
Move(245,70,168,28)
|
||||
Text = ("Uninstall Mac OSX")
|
||||
}
|
||||
{ RadioButton3 RadioButton
|
||||
Move(245,98,168,28)
|
||||
Text = ("Install Linux")
|
||||
}
|
||||
Index = 1
|
||||
Text = ("Étape n°2")
|
||||
Index = 2
|
||||
Text = ("Étape n°3")
|
||||
Index = 0
|
||||
}
|
||||
}
|
||||
|
|
|
@ -419,12 +419,10 @@ Private Sub DrawEllipse(iAction As Integer, X As Float, Y As Float, W As Float,
|
|||
|
||||
hInfo = _GetInfo()
|
||||
|
||||
Angle = Start
|
||||
Length = {End}
|
||||
If Angle = 0 And If Length = 0 Then
|
||||
If Start = 0 And If {End} = 0 Then
|
||||
Paint.Ellipse(X, Y, W, H, Angle, Pi(2), False)
|
||||
Else
|
||||
Paint.Ellipse(X, Y, W, H, Angle, Length, True)
|
||||
Paint.Ellipse(X, Y, W, H, Start, {End} - Start, True)
|
||||
Endif
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue