1
1
Fork 0
mirror of https://github.com/FellippeHeitor/InForm.git synced 2025-01-15 03:49:56 +00:00
Commit graph

441 commits

Author SHA1 Message Date
FellippeHeitor
c4f91eaab5 Fixes FUNCTION AdaptName$(). Closes #86. 2018-09-05 23:13:41 -03:00
FellippeHeitor
e83bd67965 Adjusts ListBox height to give items more vertical spacing. 2018-09-04 11:23:00 -03:00
FellippeHeitor
6c4f729ef7 Fixes ContextMenu not being properly saved when assigned to the form. 2018-09-04 01:33:08 -03:00
FellippeHeitor
ddd062df54 Fixes conversion from MenuBar to ContextMenu and vice versa. 2018-09-04 01:09:14 -03:00
FellippeHeitor
ec2184f2c5 Allows TrackBar controls to have ticks hidden. Closes #79. 2018-09-02 20:01:00 -03:00
FellippeHeitor
79fe5df319 Enforces "no frame inside frame". Fixes #81. 2018-09-02 18:15:41 -03:00
FellippeHeitor
0dd62d7a7e Always shows ContextMenu dropdown list. 2018-09-01 02:19:38 -03:00
FellippeHeitor
d6febe8339 Allows detaching a ContextMenu from a control by selecting "(none)". 2018-09-01 02:15:00 -03:00
FellippeHeitor
703c12f2e8 New global variable: __UI_ContextMenuSourceID
__UI_ContextMenuSourceID holds the ID of the control associated to a ContextMenu control that triggered the most recent MenuItem click.
2018-09-01 02:04:27 -03:00
FellippeHeitor
be65b6e3d8 Allows assigning a ContextMenu control to another control in the Editor. +
Properly loads/saves the ContextMenuID.
2018-09-01 01:23:51 -03:00
FellippeHeitor
b0d6c47e5d New SelectItem function for List/DropdownList controls.
Syntax:
    Found%% = SelectItem(ControlID, "Item")

Can be used to select an item by contents instead of by index. If the list contains multiple identical items, the first is selected.
Adjusts the .Value property if the item is found and returns True.
If item is not found, returns False.
2018-09-01 01:22:29 -03:00
Fellippe Heitor
a88417e7f8
Adds new View menu item and increases form height. 2018-08-31 17:31:46 -03:00
Fellippe Heitor
b843ccbc81
Prevents clicking on invisible controls. 2018-08-31 16:18:32 -03:00
Fellippe Heitor
7130323eaf
Accepts command SHOWINVISIBLECONTROLS from editor. 2018-08-31 16:01:03 -03:00
Fellippe Heitor
be6722fa43
Adds toggle for invisible controls (View menu). +
+ saves the new setting to InForm.ini
2018-08-31 15:59:41 -03:00
Fellippe Heitor
3ad1975015
Adds toggle __UI_ShowInvisibleControls 2018-08-31 15:56:44 -03:00
Fellippe Heitor
21cb237d8e
Repositions ContextMenu panels at design time 2018-08-31 14:13:05 -03:00
FellippeHeitor
03d5d2e70a Detects __UI_DidClick as soon as a mouse button is first pressed. 2018-08-31 12:12:58 -03:00
FellippeHeitor
3e34be42cb Allows adding/saving forms with ContextMenu controls.
Can't yet assign context menus to controls in the editor; manual editing is still required in the final project.
2018-08-31 03:41:45 -03:00
FellippeHeitor
10be1e9152 Fixes incorrect detection of hovering after a click. 2018-08-31 03:40:24 -03:00
FellippeHeitor
fc96993395 Allows ToolTips to have soft breaks with \n 2018-08-31 03:39:44 -03:00
FellippeHeitor
2f4b98e266 Begins the foundation for adding ContextMenu controls more easily. 2018-08-30 12:12:08 -03:00
FellippeHeitor
a242dd2c13 Allows TextBox to be converted to NumericTextBox at design time. Also:
- Makes NumericWithBounds the default type for NumericTextBox;
- Renames "Allow .Min/.Max bounds" to "Validate .Min/.Max bounds";
- Considers .BorderSize to adjust TextBox.Height when font changes.
2018-08-28 03:29:53 -03:00
FellippeHeitor
6075c87976 Adds .BorderSize to all controls that can have .HasBorder = True.
Closes #71.
2018-08-28 01:27:21 -03:00
FellippeHeitor
233ebaa4cc Adds .RestrictResize property to control types. Closes #77 2018-08-27 23:26:55 -03:00
FellippeHeitor
f7f2ea4286 Tweaks AdjustCursor routine to consider BorderSize property. 2018-08-27 22:15:06 -03:00
FellippeHeitor
7cd15f2cfc Prevents changes to BorderSize property for Frames. Also:
Validates .BorderSize before drawing it.
2018-08-27 21:55:46 -03:00
FellippeHeitor
b1740261d6 Renames BorderThickness as BorderSize. 2018-08-27 19:58:33 -03:00
FellippeHeitor
1a36eabc7c Adds .BorderThickness, ranging 1-10; Also:
- Fixes color preview not being dynamically updated.
2018-08-27 01:39:20 -03:00
FellippeHeitor
300006982d Sets .PreviousValue = .Value when user manipulates controls. 2018-08-26 23:23:33 -03:00
FellippeHeitor
cb5c6cda57 Properly loads PictureBox controls with Stretch = True/False. 2018-08-26 03:01:38 -03:00
FellippeHeitor
8e05b84297 Labels with .AutoSize = True now consider border and padding. 2018-08-26 03:01:19 -03:00
FellippeHeitor
4f13370533 Only saves .Stretch if True. 2018-08-26 02:38:01 -03:00
FellippeHeitor
2fd0099b44 Adds warning when attempting to resize a label with .AutoSize = True. 2018-08-26 02:30:56 -03:00
FellippeHeitor
529e979b36 New label controls to be created without AutoSize set. 2018-08-26 01:58:37 -03:00
FellippeHeitor
fa61300e10 Properly sets ProgressBar captions at creation time.
Using \# in the caption has InForm insert the actual percentage. This commit makes it easier for a user to notice that.
2018-08-24 01:53:44 -03:00
FellippeHeitor
7fd7c771c4 Properly shows Max or Max length according to selection. Closes #72. 2018-08-24 01:40:44 -03:00
FellippeHeitor
daa01a608a Adds .AutoSize property to labels;
Closes #61
2018-08-23 01:46:09 -03:00
FellippeHeitor
4bbc088c5f Prevents sending properties when values change programmatically. 2018-08-23 00:24:18 -03:00
FellippeHeitor
6cfd2193db Extends "LOCKCONTROLS" functionality to all properties. 2018-08-23 00:11:27 -03:00
FellippeHeitor
10b3e99821 Implements message "LOCKCONTROLS"
When the user starts editing a property in UiEditor, a list of the currently selected controls is built so that the property can be applied to the same controls later; allows for:
   "click control, change property, click another control"
2018-08-22 17:21:30 -03:00
FellippeHeitor
cc86ebda32 Centralizes the detection of control type in the preview component.
Sending .ControlIsSelected was adding too many undesired UndoPointers.
2018-08-22 00:59:16 -03:00
FellippeHeitor
634c8eaab4 Improves editing by not requiring ENTER to confirm changes. 2018-08-19 12:06:27 -03:00
FellippeHeitor
f847c3b5a7 Prevents hidden controls from acquiring focus. 2018-08-19 12:05:37 -03:00
FellippeHeitor
160e1ba407 PasteListBT is now properly positioned and working.
Fixes #65
2018-08-18 21:45:58 -03:00
FellippeHeitor
8bbbed6353 Adds "Convert Type" to UiEditor's Edit menu. 2018-08-18 21:16:47 -03:00
FellippeHeitor
02817799b1 Extended control type management.
Allows design-time swapping between common controls like CheckBox x ToggleSwitch or ListBox x DropdownList.

Closes #66
2018-08-18 20:12:15 -03:00
FellippeHeitor
5894e20312 Properly displays snap lines for controls in frames. Fixes #62 2018-08-17 01:12:36 -03:00
FellippeHeitor
eb209852aa Reverts regression introduced with 9c16df4339
Form controls must be "deletable" for UiEditorPreview to work properly.
2018-06-26 01:52:00 -03:00
FellippeHeitor
c62cc8b3cd Fixes bug that wouldn't allow pasting of controls reliably. 2018-06-26 01:32:36 -03:00