Search found 57 matches

by hdt888
Sun Oct 26, 2025 1:55 pm
Forum: Feature Requests and Wishlists
Topic: Rename Variables and Procedures in bulk
Replies: 1
Views: 235

Rename Variables and Procedures in bulk

Please add support "Rename variables and Procedure in bulk" to PB SourceCode Editor.

By right-clicking on the Procedure, Variable; then type the new name and enter, boom! :wink:
All renamed in a snap; even XIncludeFile modules file.

We are happy, we don't have to do any editing anymore.
by hdt888
Thu Oct 23, 2025 6:42 am
Forum: Feature Requests and Wishlists
Topic: Add RegAdd(), RegUpdate(), RegDelete() functions
Replies: 6
Views: 388

Add RegAdd(), RegUpdate(), RegDelete() functions

I am working (add/delete/edit) on HKLM\XXX and HKLM\Wow6432Node\XXX branches. I have to use "registrymodule.pbi". The code is verbose and not performance-friendly.

Admin, please add RegAdd(), RegUpdate(), RegDelete() functions, support HKLM\XXX and HKLM\WOW6432Node\XXX branches without using ...
by hdt888
Tue Oct 21, 2025 1:03 pm
Forum: Coding Questions
Topic: How to set window close event to match each window?
Replies: 3
Views: 293

How to set window close event to match each window?

I have 3 windows: exit, welcome and main.

Nothing happened until I tried put the #PB_Event_CloseWindow event for each Windows. It didn't work as expected.

How to set window close event to match each window?

That means I want to separate the #PB_Event_CloseWindow event into each window's own ...
by hdt888
Sat Oct 18, 2025 9:00 am
Forum: Coding Questions
Topic: Set icon for each window?
Replies: 10
Views: 551

Re: Set icon for each window?

Thanks RASHAD sir!

Edited: Add the icon to the resource file generated by PackEx (Thorsten1867), the code "PostMessage_" work too.


ResourceEx::Open(#ResEx, #RES_NAME)
ResourceEx::UseImage(#ResEx, #ICO_1, "my_ico_64x64.ico")
PostMessage_(WindowID(2),#WM_SETICON,1,ImageID(#ICO_1))


https://www ...
by hdt888
Fri Oct 17, 2025 2:27 am
Forum: Coding Questions
Topic: Set icon for each window?
Replies: 10
Views: 551

Re: Set icon for each window?

It's not work. Thank RASHAD sir !
by hdt888
Fri Oct 17, 2025 12:19 am
Forum: Coding Questions
Topic: Set icon for each window?
Replies: 10
Views: 551

Set icon for each window?

I have a program with 2 windows:

+ main1 -> icon1
+ main2 -> icon2


And 2 child windows of main window 2.

+child2_1 -> icon3
+child2_2 -> icon4


How to set window icons for these 4 windows (this icon will be displayed under the Windows Taskbar) ?
by hdt888
Sun Oct 12, 2025 9:46 am
Forum: Coding Questions
Topic: Randomly select a declared Constant (string/number type) ?
Replies: 2
Views: 270

Randomly select a declared Constant (string/number type) ?

I have declared the constant:


#Book_on_shelf1 = "Hello world - Basic program"
#Book_on_shelf2 = "How to learn PureBasic ?"
#Book_on_shelf3 = "PureBasic on Internet !!!"

#Bookshelf_location1 = 1
#Bookshelf_location2 = 2
#Bookshelf_location3 = 3


How can I randomly select a declared Constant ...
by hdt888
Sat Oct 11, 2025 5:42 am
Forum: Windows
Topic: Open the “Open with ” Dialog ...
Replies: 3
Views: 2643

Re: Open the “Open with ” Dialog ...

Axolotl ! Nice sharing.
by hdt888
Sun Oct 05, 2025 10:27 am
Forum: Coding Questions
Topic: Update values ​​for JSON file why were the other members lost ?
Replies: 2
Views: 481

Update values ​​for JSON file why were the other members lost ?

I have successfully added the "FastMode" member and set its value to "OK" for the settings.json file which does not exist yet.

But when the settings.json file already exists, I am in the situation:

+ if the "FastMode" member does not exist yet.
+ if the value of the "FastMode" member already ...
by hdt888
Tue Apr 29, 2025 10:31 am
Forum: Coding Questions
Topic: Why mouse pointer occupied ?
Replies: 1
Views: 695

Why mouse pointer occupied ?

I have 2 windows, window A as main window, window B as 2nd window.
Why after every 4 seconds the cursor on the main window disappears (like it was occupied) ?.
Where do I fix the error?.


Procedure THREAD_RELOAD_DATA_MAIN_WIN(okok)
Repeat
PostEvent(#EVENT_RELOAD_DATA_MAIN_WIN, #MAIN_WIN, #PB ...
by hdt888
Sun Apr 13, 2025 5:39 am
Forum: Coding Questions
Topic: Create vertical panel tabs in Purebasic ?
Replies: 4
Views: 435

Create vertical panel tabs in Purebasic ?

By default Panel/Tabs are in horizontal position, is there any option to make it vertical? :?:
Thanks you for help.
by hdt888
Fri Nov 08, 2024 3:02 pm
Forum: Coding Questions
Topic: How to determine that the current OS is WinPE?
Replies: 3
Views: 716

Re: How to determine that the current OS is WinPE?

WinPE often has wmic omitted. just check the existence of this file.
by hdt888
Fri Nov 08, 2024 2:46 pm
Forum: Coding Questions
Topic: How to stretch any image to fit background Window ?
Replies: 1
Views: 389

How to stretch any image to fit background Window ?

How to stretch any image to fit the background window? And change this background image accordingly 3 OptionGadget is clicked.
Thank fỏ help.
by hdt888
Mon Nov 04, 2024 5:16 am
Forum: Coding Questions
Topic: How to stretch the image when the user resizes the window in Scale Desktop 125% and 150% display mode?
Replies: 3
Views: 789

Re: How to stretch the image when the user resizes the window in Scale Desktop 125% and 150% display mode?

thanks RASHAD, Fred.

I modified the code, using only 5 basic functions, everything works smoothly.
CopyImage(), ResizeImage(), FreeImage(), SetGadgetState(), DesktopResolutionX().