1
1
Fork 0
mirror of https://github.com/FellippeHeitor/InForm.git synced 2024-05-12 06:50:12 +00:00
Commit graph

652 commits

Author SHA1 Message Date
FellippeHeitor 2f2e21caf7 Begins adapting Editor/Preview to new Menu system. 2018-09-12 12:17:30 -03:00
FellippeHeitor ca50978da5 Allows Left arrow key to close a sub menu of a context menu. 2018-09-12 11:41:21 -03:00
FellippeHeitor 4e08c4e2a8 Refines keyboard control for new MenuItems with SubMenus. Closes #16. 2018-09-12 11:37:00 -03:00
FellippeHeitor 8b211ecb14 Closes all menus when focusing a new menu bar item. +
+ Allows clicking a menu bar item when a context menu is open.
2018-09-12 10:41:58 -03:00
FellippeHeitor c3e280b05c Implements sub-menus. Fully controllable by mouse. +
+ Reduces memory usage by using SINGLE precision variables for TIMER control instead of DOUBLE.
2018-09-12 02:43:53 -03:00
FellippeHeitor 5ce5ac43c5 Allows Escape codes to work more reliably. 2018-09-06 10:56:19 -03:00
FellippeHeitor 228518d902 Properly checks if ID > 0 instead of just IF ID. 2018-09-06 01:37:35 -03:00
FellippeHeitor a79a7e1d94 Adjust internal dialogs to new form size. Closes #87. 2018-09-06 00:35:59 -03:00
FellippeHeitor 045eca9583 Attempts to detect more state changes for controls. Closes #83. 2018-09-06 00:09:47 -03:00
FellippeHeitor 4ac822d2c8 Adds InForm method/function names to forbidden list. Closes #85. 2018-09-05 23:47:35 -03:00
FellippeHeitor 9671aec7fe Shows message when an invalid value is returned. 2018-09-05 23:14:07 -03:00
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