Search found 537 matches
- Wed Mar 27, 2024 11:34 am
- Forum: Announcement
- Topic: MixPerfect
- Replies: 29
- Views: 1421
Re: MixPerfect
Oh ok, it looks a lot better than Windows
- Wed Mar 27, 2024 8:45 am
- Forum: Announcement
- Topic: MixPerfect
- Replies: 29
- Views: 1421
Re: MixPerfect
Very cool! What UI library did you use if I may ask?
- Mon Mar 25, 2024 11:46 am
- Forum: Bugs - Windows
- Topic: [Done] Static array index-less reference
- Replies: 11
- Views: 836
[Done] Static array index-less reference
Code: Select all
Structure _a
b.i[2]
EndStructure
Define n._a
n\b = 2
- Wed Feb 21, 2024 11:22 am
- Forum: Coding Questions
- Topic: Full justification code?
- Replies: 4
- Views: 472
Re: Full justification code?
Ok thanks for the help #NULL.
- Mon Feb 19, 2024 4:00 am
- Forum: Coding Questions
- Topic: Get dead keys in canvases?
- Replies: 6
- Views: 466
Re: Get dead keys in canvases?
I have a custom GUI, and a menu bar. Pressing ALT on its own would make the menu active, so you can navigate through it, like it does on Windows.
- Mon Feb 19, 2024 3:58 am
- Forum: Coding Questions
- Topic: Full justification code?
- Replies: 4
- Views: 472
Re: Full justification code?
General purpose. It would be for my own gadget, so nothing to do with the native ones. There are some codes out there for other languages, including Python and Java, but I failed at porting them
- Tue Feb 13, 2024 1:44 pm
- Forum: Coding Questions
- Topic: Full justification code?
- Replies: 4
- Views: 472
Full justification code?
Does anyone have a full justify function for mono fonts? I'm sure that must exist somewhere
- Tue Feb 13, 2024 11:20 am
- Forum: Coding Questions
- Topic: Get dead keys in canvases?
- Replies: 6
- Views: 466
Re: Get dead keys in canvases?
Thanks for your help. I want to detect CTRL and ALT on their own. It doesn't work with the input event, nor key down, and doesn't work with the AddKeyboardShortcut() method. Besides, GetAttributeModifier() cannot be used to detect those keys, unlike what the documentation says about #PB_Canvas_Modif...
- Fri Feb 09, 2024 9:15 am
- Forum: Coding Questions
- Topic: Get dead keys in canvases?
- Replies: 6
- Views: 466
Re: Get dead keys in canvases?
Thanks for your code. ALT seems to have weird behaviour, once you press it once, SHIFT and CONTROL seem to not work anymore (lost of focus?). Procedure OnGainFocus() AddKeyboardShortcut(0, #PB_Shortcut_Tab, 0) AddKeyboardShortcut(0, #PB_Shortcut_Alt, 1) EndProcedure Procedure OnLostFocus() RemoveKey...
- Thu Feb 08, 2024 9:12 pm
- Forum: Coding Questions
- Topic: Get dead keys in canvases?
- Replies: 6
- Views: 466
Get dead keys in canvases?
Procedure OnKeyDown() Define char = GetGadgetAttribute(0, #PB_Canvas_Key) Debug "Raw key: " + char EndProcedure Procedure OnInput() Define char$ = Chr(GetGadgetAttribute(0, #PB_Canvas_Input)) Debug Bool(GetGadgetAttribute(0, #PB_Canvas_Modifiers) = #PB_Canvas_Shift) ; Only works with #PB_...
- Tue Jan 30, 2024 4:33 pm
- Forum: Coding Questions
- Topic: Forbidding console resize?
- Replies: 3
- Views: 242
Re: Forbidding console resize?
Thanks!
- Tue Jan 30, 2024 2:23 pm
- Forum: Coding Questions
- Topic: Forbidding console resize?
- Replies: 3
- Views: 242
Forbidding console resize?
Is it possible to deactivate resize and maximize gadgets on the Windows console?
I saw this C# solution, but not sure what to do with it (_DeleteMenu doesn't seem to be recognised...?).
I saw this C# solution, but not sure what to do with it (_DeleteMenu doesn't seem to be recognised...?).
- Tue Jan 30, 2024 1:35 pm
- Forum: Bugs - IDE
- Topic: [Done] PB 6.10 beta 4 Reload an empty text file doesn't work.
- Replies: 8
- Views: 762
- Tue Jan 30, 2024 1:00 pm
- Forum: Bugs - IDE
- Topic: [Done] PB 6.10 beta 4 Reload an empty text file doesn't work.
- Replies: 8
- Views: 762
[Done] PB 6.10 beta 4 Reload an empty text file doesn't work.
Code: Select all
CreateFile(0, "PureBasicFile.pb", #PB_File_SharedRead | #PB_File_SharedWrite | #PB_UTF8)
WriteString(0, "This is text.")
- Tue Jan 30, 2024 12:59 pm
- Forum: Coding Questions
- Topic: [PB 6.10 beta 4] WriteString breaks file encoding in IDE?
- Replies: 1
- Views: 210
[PB 6.10 beta 4] WriteString breaks file encoding in IDE?
Probably a bug with the IDE more than encoding, as Notepad++ always properly detects that the file is UTF-8 in the following examples. CreateFile(0, "PureBasicFile.pb", #PB_File_SharedRead | #PB_File_SharedWrite | #PB_UTF8) The file format is recognised as UTF-8. If I type Alt 196, I have ...