Search found 61 matches

by dougmo52usr
Fri Jul 26, 2024 4:19 pm
Forum: Coding Questions
Topic: Dialog titlebar font
Replies: 2
Views: 790

Re: Dialog titlebar font

For my Linux distribution, I am satisfied to use "Control Center/Look and Feel/Appearance" menu item "Fonts" to select appropriate font size. In this tab I can set fonts for "Application", Document", Desktop", Window title" and "Fixed width". Although it changes fonts for other apps, I am writing ...
by dougmo52usr
Fri Jul 26, 2024 2:09 am
Forum: Coding Questions
Topic: Dialog titlebar font
Replies: 2
Views: 790

Dialog titlebar font

LoadFont changes the font on dialog gadgets, but the titlebar font stays the same. How do I change the titlebar font for a dialogwindow?

PureBasic 6.11 LTS (Linux - x64)
Feel the ..Pure.. Power
by dougmo52usr
Wed Jul 24, 2024 8:36 pm
Forum: Coding Questions
Topic: Get Image from ImageID
Replies: 5
Views: 1035

Re: Get Image from ImageID

If I pass an image to a ButtonImageGadget by ImageID, then immediately free the image, the button still shows the image. For that reason, I felt that the button copied the image, and it seemed to be wasteful of memory to keep an image the button has copied. But if there is no way to request the ...
by dougmo52usr
Wed Jul 24, 2024 4:45 pm
Forum: Coding Questions
Topic: Get Image from ImageID
Replies: 5
Views: 1035

Get Image from ImageID

I did a Google search for "#Image from ImageID", and found a link to a forum question. The response to the question on the google link was Hi Julian. Until the team implements the long-lamented GetImageNumber (fromImageID) function, here's a simple drop-in solution that might work for you. It's ...
by dougmo52usr
Thu Jul 04, 2024 4:10 pm
Forum: Linux
Topic: CreateXMLDialog questions
Replies: 1
Views: 2032

Re: CreateXMLDialog questions

4. I noticed that ResizeWindow(DialogWindow(dialog),DesktopMouseX(),DesktopMouseY(),#PB_Ignore,#PB_Ignore) puts the dialog where I clicked the mouse.
by dougmo52usr
Thu Jul 04, 2024 3:53 pm
Forum: Linux
Topic: CreateXMLDialog questions
Replies: 1
Views: 2032

CreateXMLDialog questions

PureBasic 6.11 LTS (Linux - x64)

1. Is there any way to specify a ParentID without also specifying x, y, width, height?
2. If I specify a ParentID, the dialog seems to be centered in the parent, ignoring the values of x, y, width, height. Is that typical?
3. If I skip optional parameters, is there ...
by dougmo52usr
Mon Feb 05, 2024 12:52 am
Forum: Coding Questions
Topic: Map access questions
Replies: 3
Views: 591

Re: Map access questions

Your method certainly works. I was hoping that I could avoid passing a map in a structure by creating a map reference.

In DoSomething1, Global MapA is altered through a reference. In DoSomething2, Global MapA is altered directly. In the Procedures, MapA syntax looks exactly the same.

Is there a ...
by dougmo52usr
Sat Feb 03, 2024 7:19 pm
Forum: Coding Questions
Topic: Map access questions
Replies: 3
Views: 591

Map access questions

I see in the help, that I can pass a Map ByRef like Procedure DebugMap(Map ParameterMap.s()).

Suppose I rather need to pick a map within a function at runtime. The code below which obviously fails compile, gives an idea of what I want to accomplish. Is there a way to create a local variable and ...
by dougmo52usr
Tue Jan 23, 2024 3:15 am
Forum: Coding Questions
Topic: Mouse position in a gadget coordinates?
Replies: 3
Views: 527

Re: Mouse position in a gadget coordinates?

Thanks for the quick response. That would work if the gadget was on the main window. Once I start putting containers inside containers things get tricky.

The Form Designer has an option to reparent gadgets which means their x and y are no longer relative to the main window, but their to new parent ...
by dougmo52usr
Tue Jan 23, 2024 2:18 am
Forum: Coding Questions
Topic: Mouse position in a gadget coordinates?
Replies: 3
Views: 527

Mouse position in a gadget coordinates?

I have a window with a PanelGadget that contains another PanelGadget as a child. When I call OpenGadgetList on one of the child panel tabs, the top left corner seems to be at 0,0. However, WindowMouseX, WindowMouseY return coordinates based on the main window independent of the gadget below the ...
by dougmo52usr
Wed Jan 10, 2024 8:47 pm
Forum: Coding Questions
Topic: ParseXML error using value returned by CreateXML(#PB_Any,
Replies: 3
Views: 747

Re: ParseXML error using value returned by CreateXML(#PB_Any,

Thanks for the quick response. Your way works great and I'm moving on the create the next bug.
by dougmo52usr
Wed Jan 10, 2024 6:37 pm
Forum: Coding Questions
Topic: ParseXML error using value returned by CreateXML(#PB_Any,
Replies: 3
Views: 747

ParseXML error using value returned by CreateXML(#PB_Any,

When I call ParseXML in the code below, it gives me the error "#XML object number is very high (over 10000), are You sure of that ?"
Is this a bug as I would think ParseXML should be able to handle whatever #PB_Any would generate.

; try to create a minimal ParamsXML file
hParamsXML = CreateXML ...
by dougmo52usr
Mon Jan 08, 2024 3:17 am
Forum: Linux
Topic: Dynamically altering menus created in form designer
Replies: 0
Views: 1249

Dynamically altering menus created in form designer

1. If I add a menu to a window in form designer, then run the app, clicking on the menu title causes the title to highlight and the menu drops down as expected. Is there a way to be notified before the menu drops down so I can dynamically edit it?

2. If I click on a submenu, it highlights and the ...
by dougmo52usr
Fri Jan 05, 2024 10:30 pm
Forum: Coding Questions
Topic: What are the .imp files in purelibraries?
Replies: 8
Views: 1177

Re: What are the .imp files in purelibraries?

Sorry, I typed gtk_init and got a list. Not sure why I did not see anything the last time I tried it.
by dougmo52usr
Fri Jan 05, 2024 10:28 pm
Forum: Coding Questions
Topic: What are the .imp files in purelibraries?
Replies: 8
Views: 1177

Re: What are the .imp files in purelibraries?

I bought the product several years back. I assume purchasing it means I have the full version. Is there anything in the about that tells me I am not running the full version?