![]() ResizeWindow(0, #PB_Ignore, #PB_Ignore, DesktopUnscaledX( ImageWidth(0)+4), DesktopUnscaledY( ImageHeight(0)+34))įilename$ = SaveFileRequester("Save a picture", Left(Filename$, Len(Filename$)- Len( GetExtensionPart(Filename$))-1), "BMP Format|*.bmp|JPEG Format|*.jpg|PNG Format|*. SetGadgetState(0, ImageID(0)) change the picture in the gadgetĭisableToolBarButton(0, 1, 0) enable the save button MessageRequester("About GIF files", "Please, take a look at the example 'ImagePlugin_GIF.pb' to see animated GIF") If UCase( GetExtensionPart(Filename$)) = "GIF" PNG I believe doesnt require a licence and offers the transparency of GIFs and the compression of JPG. Older PureBasic versions normally relied on CallFunction() and CallFunctionFast. If Event = #PB_Event_Menu ToolBar are acting as menuįilename$ = OpenFileRequester("Choose a picture", "", "All Images Formats|*.bmp *.jpg *.png *.tif *.tga *.gif", 0) Note how Windows mangles names of functions in the import libraries. ImageGadget(0, 0, 28, WindowWidth(0), WindowHeight(0), 0, #PB_Image_Border) Is it possible to import the functiond of the DLL (phpmysql. The application uses a MySQL database, and PHP has great functions to access MySQL. ToolBarImageButton(1, LoadImage(0, #PB_Compiler_Home + "examples/sources/Data/ToolBar/Save.png"))ĭisableToolBarButton(0, 1, 1) disable the save button I have an web application writen in PHP I would like to transform in a desktop application writen in PB. ToolBarImageButton(0, LoadImage(0, #PB_Compiler_Home + "examples/sources/Data/ToolBar/Open.png")) If OpenWindow(0, 0, 0, 250, 130, "PureBasic - Image Converter", #PB_Window_SystemMenu | #PB_Window_ScreenCentered) Enable all the encoders than PureBasic actually supports ![]() Enable all the decoders than PureBasic actually supports It would really be nice to have these functionnality in the official web-clipper. I believe that kind of clipper does not exist yet, and would truly be a game changer.ĮDIT: I just tried the webclipper by DiamondYuan and the ‘Manual Element Selection’ is kindof working the way I propose here, except for the multipages clipping and screenshotting. ![]() That would also allow for multi-pages clipping, with an option to retain the url of every section of the note. The clips are then concatenated in a single note that is pushed to Joplin, and the session closes. When you have sniffed all the infos you want from the page, you select your destination folder, write your tags and note name, and you hit Finalize!. ![]() The session records you clipping actions (text selection, screenshot, elements, URL…).The way I would like it to work is a deeper workflow. ![]() Remember to set the resource file in compiler options and uncheck include version info. The way the webclipper works as of now is that you click on an action and the note contains only the one element you have selected. Location: Boston, MA Re: How to use Resources in PureBasic by skywalk Thu 10:38 pm For Windows, I use a combination of IncludeBinary and a 'myapp.rc' text file that contains the app icon and version info. The URL is retained in the (i) info dialog which is nice…ĭuring this ADHD screenshotting session, I noticed that what I really wanted was to be able to sequentially build a note from one or several web pages. So, I was clipping a lot of screenshots this morning, and it works fine and it is fast. It offers standard features as seen in much other note-taking packages, which are also incomplete. The Web clipper as of now in my point of view is very incomplete. Okay, I’m just dumping a line of thought about the web clipper and how I would like to see it evolve. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |