Search found 1624 matches

by Shardik
Thu Mar 28, 2024 10:31 am
Forum: Coding Questions
Topic: Problem with Mouse and F10 key ...
Replies: 16
Views: 375

Re: Problem with Mouse and F10 key ...

marc_256 wrote: But what is the meaning of LTS version as they are abandoned after some time.
What is LTS, what is the time weeks, months, one year ??
Fred explained LTS in this blog entry.
by Shardik
Tue Mar 26, 2024 6:34 pm
Forum: Coding Questions
Topic: ListIcons: color of selected row, can be set?
Replies: 4
Views: 195

Re: ListIcons: color of selected row, can be set?

can the color of the selected row of a listicons (by SetGadgetState(), not by mouse) be set other than the default one? You may try this 16 year old example from Sparkie. I have just tested it successfully on Windows 7 with PB 5.73 x86 and x64. Unfortunately I am on vacation with a 14 year old iMac...
by Shardik
Thu Mar 21, 2024 6:59 pm
Forum: Bugs - IDE
Topic: IDE window auto-widens in Linux
Replies: 4
Views: 204

Re: IDE window auto-widens in Linux

mk-soft wrote: Wed Mar 20, 2024 8:27 pm Not here on Mint Linux LMDE 6 and PB v6.10 Beta 8
Did you test with an IDE window resized to display only about 80 characters per line?

I am testing on Linux Mint 21.3 'Virginia' x64 with Cinnamon 6.0.4.
by Shardik
Wed Mar 20, 2024 4:39 pm
Forum: Bugs - IDE
Topic: IDE window auto-widens in Linux
Replies: 4
Views: 204

Re: IDE window auto-widens in Linux

Fred wrote: Wed Mar 20, 2024 4:34 pm may be you can try with the purebasic_gtk2 exe to see if it's GTK3 related
Good idea! The described bug does NOT occur in PB 6.04 and 6.10 Beta 8 with "purebasic_gtk2". So it's definitely related to GTK3!
by Shardik
Wed Mar 20, 2024 4:29 pm
Forum: Bugs - IDE
Topic: IDE window auto-widens in Linux
Replies: 4
Views: 204

IDE window auto-widens in Linux

In PB 6.04 and PB 6.10 (all Beta versions) the width of the IDE sometimes increases without the user changing the width of the IDE. To reproduce the bug (which only occurs in Linux!): Open IDE Change the IDE's width to display about 80 characters Type "Mess" and then <Tab> The width of the...
by Shardik
Tue Mar 12, 2024 7:13 pm
Forum: Mac OSX
Topic: TreeGadget scroll position
Replies: 4
Views: 152

Re: TreeGadget scroll position

You already asked in this thread how to get the y-coordinate of a TreeGadget item and RASHAD and me both posted an example. Did you try my MacOS example in that thread? It displays the text of a clicked item and its y-position. I just tested it to work in PB 6.04.
by Shardik
Tue Mar 12, 2024 1:50 pm
Forum: Coding Questions
Topic: Gadget with text coloring (?)
Replies: 1
Views: 173

Re: Gadget with text coloring (?)

I used RTF earlier, but it's Windows only. I searched the forum ("Rich Linux") and found only bold text . MacOS also supports RTF but Linux doesn't. In your posted link I have linked to my source code in the German forum and explained it. In the posted images for Linux, RaspberryPi, MacOS...
by Shardik
Tue Feb 27, 2024 6:04 pm
Forum: Coding Questions
Topic: How do I get Row and Column Positions within a Editor Gadget
Replies: 15
Views: 2687

Re: How do I get Row and Column Positions within a Editor Gadget

About 10 years ago I already posted this cross-platform example on how to get the number of lines in an EditorGadget.
by Shardik
Thu Feb 22, 2024 3:09 pm
Forum: Coding Questions
Topic: Item Height in a ComboBoxGadget
Replies: 3
Views: 136

Re: Item Height in a ComboBoxGadget

EnableExplicit Define i.I Define ItemHeight.I OpenWindow(0, 0, 0, 390, 180, "", #PB_Window_SystemMenu | #PB_Window_ScreenCentered) ComboBoxGadget(0, 10, 10, 180, 21) ComboBoxGadget(1, 200, 10, 180, 21) For i = 1 To 5 AddGadgetItem(0, -1,"ComboBox item " + Str(i)) AddGadgetItem(1...
by Shardik
Wed Feb 21, 2024 9:11 am
Forum: Bugs - Windows
Topic: [Done] 6.10 Beta 6 SetGadgetItemAttribute() with #PB_ListIcon_ColumnAlignment
Replies: 3
Views: 251

Re: [6.10 Beta 6] SetGadgetItemAttribute() with #PB_ListIcon_ColumnAlignment

Looks like an update issue. Nice finding! I can confirm that the problem is solved with RedrawWindow_()! By the way, your cross-platform alignment code seems to have the same problem on Windows 10. The alignment code in my link without a ButtonGadget works correctly. But with the added ButtonGadget...
by Shardik
Mon Feb 19, 2024 2:02 pm
Forum: Bugs - Windows
Topic: [Done] 6.10 Beta 6 SetGadgetItemAttribute() with #PB_ListIcon_ColumnAlignment
Replies: 3
Views: 251

[Done] 6.10 Beta 6 SetGadgetItemAttribute() with #PB_ListIcon_ColumnAlignment

Unfortunately my bug report for Windows was deleted and the bug report for Linux was moved to "Bugs - Documentation" with the following hint: No it works per column, not per cell. The doc is wrong. This holds true for MacOS and Linux. But in Windows only the cell text of the column title i...
by Shardik
Sat Feb 17, 2024 1:22 pm
Forum: Bugs - Documentation
Topic: [6.10 Beta 6] SetGadgetItemAttribute() with #PB_ListIcon_ColumnAlignment
Replies: 2
Views: 231

[6.10 Beta 6] SetGadgetItemAttribute() with #PB_ListIcon_ColumnAlignment

According to the english help for SetGadgetItemAttribute() the second parameter should be the item index of the row in a ListIconGadget (-1: header row, 0: index of 1st row). But the given index is not respected. Independant from the given index all cell texts in a column plus header text are right-...
by Shardik
Fri Feb 16, 2024 10:50 pm
Forum: Mac OSX
Topic: [PB Cocoa] Methods, Tips & Tricks
Replies: 228
Views: 438327

Re: [PB Cocoa] Methods, Tips & Tricks

Could you verify this: I'm using your great code to update my code from PB5 to PB6 and to newest OSX. I think some CocoaMessage uses a 0 instead of the right ListIconGadgetID. In your example, ListIconGadgetID = 0, but if I change it to something else, the ListIconGadget stops displaying. You have ...
by Shardik
Sat Jan 13, 2024 7:49 pm
Forum: Mac OSX
Topic: Simulate Keyboard
Replies: 10
Views: 1311

Re: Simulate Keyboard

This is old code found on the PB Forum. Whether it still works is another story but it should do what you are looking for or close to it. It would have been nice if you also would have posted the link to your code. Often the thread contains additional information which might further help the reader...
by Shardik
Sun Dec 31, 2023 5:51 pm
Forum: Coding Questions
Topic: Get system font name - or load the system font with a different size
Replies: 4
Views: 346

Re: Get system font name - or load the system font with a different size

For MacOS you may use the following example to get the system font name and size. The size may differ between different Gadgets or in the ListIconGadget between header line and rows: EnableExplicit Procedure.S GetFontNameAndSize(FontID.I) Protected FontName.S Protected FontSize.CGFloat If FontID Fon...