Search found 113 matches

by zapman*
Wed Sep 18, 2024 10:28 am
Forum: Tricks 'n' Tips
Topic: List Clipboard content
Replies: 4
Views: 1206

Re: List Clipboard content


Thanks, but are images supposed to look dithered/low quality?
Yes, they are. All images are converted to Bitmap to be drawn on the canvas. They are displayed for monitoring purposes only and nothing else.
Another way to present them could be to include them 'as is' in the contents of the ...
by zapman*
Tue Sep 17, 2024 4:53 pm
Forum: Tricks 'n' Tips
Topic: List Clipboard content
Replies: 4
Views: 1206

List Clipboard content

; ***************************************************************************
;
; Examine Cliboard data
;
; List all data contained in the clipboard
; For Windows only
; PB 6.11 - By Zapman Sept 2024
;
; ***************************************************************************
;
; For each data ...
by zapman*
Thu Sep 12, 2024 5:30 pm
Forum: Coding Questions
Topic: [Solved] Save content of ClipBoard
Replies: 15
Views: 3814

Re: [Solved] Save content of ClipBoard

Hi, DrGolf,
I revised the procedures to make them more robust:

; ***************************************************
;
; Save and restore Clipboard content
; From Zapman helped by ChatGPT
; Windows Only
; PB 6.11 - Sept 2024


; Structure pour stocker les données du presse-papier
Structure ...
by zapman*
Fri Jun 01, 2012 5:15 pm
Forum: Announcement
Topic: COMatePLUS version 1.2
Replies: 339
Views: 230942

Re: COMatePLUS version 1.2

I've posted a tip to convert .doc, .docx and .odt documents to HTML and PDF using COMatePLUS and OpenOffice.
You can find it here : http://www.purebasic.fr/english/viewtop ... 12&t=50137
by zapman*
Fri Jun 01, 2012 5:07 pm
Forum: Tricks 'n' Tips
Topic: Convert doc to HTML or PDF using OpenOffice with COMatePLUS
Replies: 1
Views: 4096

Convert doc to HTML or PDF using OpenOffice with COMatePLUS

;
; Convert a Word or OpenOffice writer document to an HTML document or PDF document
;
; This program uses OpenOffice as background application to make the conversion
; so, you need to have OpenOffice installed on your machine to use this.
;
; You also need COMatePLUS to be installed into your ...
by zapman*
Tue Sep 07, 2010 2:24 am
Forum: Windows
Topic: Hierarchical pop-up Combo Gadget
Replies: 31
Views: 9188

Re: Hierarchical pop-up Combo Gadget

Excellent!

Go one step beyond offering an "OpenSubMenu" similare to the one used with classical popup menu:
Procedure OpenSubMenu_CBM(iGadgetID,ItemIndex=-1,Text$="_NoText_")
;
If Text$<>"_NoText_"
AddGadgetItem(iGadgetID, ItemIndex,Text$)
EndIf
;
If ItemIndex = -1
ItemIndex ...
by zapman*
Mon Sep 06, 2010 12:19 pm
Forum: Windows
Topic: Hierarchical pop-up Combo Gadget
Replies: 31
Views: 9188

Re: Hierarchical pop-up Combo Gadget

Sorry :oops:

It's fixed.
by zapman*
Mon Sep 06, 2010 3:47 am
Forum: Windows
Topic: Hierarchical pop-up Combo Gadget
Replies: 31
Views: 9188

Re: Hierarchical pop-up Combo Gadget

zapman*: chr(160) does work visually :) . There is a side-effect that should be noted with any line entries that containing the "close-submenu" cmd character. The character is a part of the entry and may cause difficulty if one is trying to match the selected entry against a list of the entries ...
by zapman*
Sun Sep 05, 2010 9:09 am
Forum: Windows
Topic: Hierarchical pop-up Combo Gadget
Replies: 31
Views: 9188

Re: Hierarchical pop-up Combo Gadget

I'm also using XP without any problem and I think that it does not depend on your system version but on some special configuration of your computer.

Ok, if not any other option is found, we could use a simple space and a double space, but I don't really like that.

Did you test chr(160) as ...
by zapman*
Sun Sep 05, 2010 1:22 am
Forum: Windows
Topic: Hierarchical pop-up Combo Gadget
Replies: 31
Views: 9188

Re: Hierarchical pop-up Combo Gadget

@Demivec:

It seems that the character #9 presents no problem: viewing your screen capture, I see no problem with the line "sauces".

So, I propose to use only this character: a simple chr(9) to open the submenu, a double chr(9) to close it. Please try this in the GUY declaration: AddGadgetItem ...
by zapman*
Sat Sep 04, 2010 9:49 am
Forum: Windows
Topic: Hierarchical pop-up Combo Gadget
Replies: 31
Views: 9188

Re: Hierarchical pop-up Combo Gadget

The code above has been updated.
The eventtypes generated by the new gadget are now exactly the same as for a classical ComboBox, so you can replace one by the other wthout changing anything in the rest of your codes. :D
by zapman*
Thu Sep 02, 2010 5:25 pm
Forum: Windows
Topic: Hierarchical pop-up Combo Gadget
Replies: 31
Views: 9188

Re: Hierarchical pop-up Combo Gadget

The only thing with this though is that the popup menu will be repositioned and/or resized automatically by windows if there are too many items for it to fit on the screen. It will also expand vertically to fill the entire screen (if you add loads of items) instead of adding a scrollbar etc. Try it ...
by zapman*
Thu Sep 02, 2010 3:50 pm
Forum: Windows
Topic: Hierarchical pop-up Combo Gadget
Replies: 31
Views: 9188

Re: Hierarchical pop-up Combo Gadget

I've just updated my code using the idea of TomS.

The beauty of this new solution is that the gagdet can now be used
exactly like a classical combobox and manages all PureBasic functions like
addgadgetitem, setgadgetitemtext, etc. ...

I love it. Thank you again TomS :D
by zapman*
Thu Sep 02, 2010 12:18 pm
Forum: Windows
Topic: Hierarchical pop-up Combo Gadget
Replies: 31
Views: 9188

Re: Hierarchical pop-up Combo Gadget

Hi Toms,

Your solution is terrific. Thanks many time for that!.

For my needs, it's just missing 2 things to your very elegant and small code:
- when the user click and the combo and maintain the click on and then release on a popup line, the menu stay open. He has to click a second time to close ...
by zapman*
Wed Sep 01, 2010 6:32 am
Forum: Windows
Topic: Hierarchical pop-up Combo Gadget
Replies: 31
Views: 9188

Re: Hierarchical pop-up Combo Gadget

Thanks a lot for testing :D

I add a DrawingMode(#PB_2DDrawing_Outlined ) to avoid the white background for the text and a modified the screen capture to try to solve the problem you noticed.

Code above has been updated. Please tell me if it's OK now.

I also added some functions ...