Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Programming
»
Operating Systems
»
Cross-platform & language HBITMAP and SetParent analog
Free Pascal
Website
Downloads
Wiki
Documentation
Bugtracker
Mailing List
Lazarus
Website
Downloads (Laz+FPC)
Packages (OPM)
FAQ
Wiki
Documentation (RTL/FCL/LCL)
Bugtracker
CCR Bugs
GIT
Mailing List
Other languages
Foundation
Website
Useful Wiki Links
Project Roadmap
Getting the Source
Screenshots
How to use the forum
About donations (wiki)
Bookstore
Computer Math and Games in Pascal
(preview)
Lazarus Handbook
Search
Advanced search
Recent
IsNan
by
Paolo
[
Today
at 09:34:34 am]
Why free pascal suppress ...
by
runewalsh
[
Today
at 09:22:50 am]
TmemTable has not onCalcF...
by
egsuh
[
Today
at 08:46:27 am]
Failed to connect to a si...
by
egsuh
[
Today
at 08:26:42 am]
Reading and writing AVIF ...
by
Okoba
[
Today
at 08:25:04 am]
Simple mouse solution for...
by
Lauriet
[
Today
at 08:15:34 am]
Scrollbox, scrollbar Back...
by
ASerge
[
Today
at 08:14:46 am]
"extended" real type prec...
by
LV
[
Today
at 06:48:44 am]
Treeview: full-width back...
by
wp
[
Today
at 01:03:20 am]
FPC can't link screen_dem...
by
mccfrank
[
Today
at 12:06:32 am]
ThemeServices.DrawText in...
by
regs
[February 08, 2025, 11:25:01 pm]
my programs crash
by
turunk
[February 08, 2025, 10:56:26 pm]
Gradient with fcl-image
by
wp
[February 08, 2025, 10:46:18 pm]
using RunCommand to wrap ...
by
nomorelogic
[February 08, 2025, 10:39:37 pm]
ellipse ? off topic
by
BubikolRamios
[February 08, 2025, 10:15:18 pm]
FLIF and FUIF Formats (Fr...
by
Tomxe
[February 08, 2025, 09:43:37 pm]
Reading FLIF images in La...
by
Tomxe
[February 08, 2025, 09:43:03 pm]
Basic canvas drawing
by
Jonny
[February 08, 2025, 09:31:17 pm]
Transparent animation
by
majolika
[February 08, 2025, 08:17:52 pm]
API definitions
by
440bx
[February 08, 2025, 07:35:57 pm]
Candlestick chart
by
ronhud
[February 08, 2025, 07:31:12 pm]
missed warning
by
Paolo
[February 08, 2025, 07:30:04 pm]
Error assembling some lab...
by
Fred vS
[February 08, 2025, 07:10:13 pm]
Building the FPC cross-co...
by
marcov
[February 08, 2025, 07:09:09 pm]
HelpNDoc.com and Pascal
by
paule32
[February 08, 2025, 06:42:02 pm]
« previous
next »
Print
Pages: [
1
]
Author
Topic: Cross-platform & language HBITMAP and SetParent analog (Read 6177 times)
Человек_Борща
New Member
Posts: 33
Cross-platform & language HBITMAP and SetParent analog
«
on:
January 20, 2015, 12:30:48 pm »
Greetings!
I've writing pluginable application where plugin return's to me THandle of control which I put on some panel via WinAPI setParent(<for what>, <who's parent>) and image which returns as HBITMAP.
Any cross-platform analogs(interesting GTK2, GTK3 widget sets) for Linux?
Logged
With best regards, Alexandr.
_
OS: Windows 8.1 x64 / Ubuntu 14.02 x64
IDE: CodeTyphon 5.4 (win32-win64/win64) / FPC 3.1.1
Leledumbo
Hero Member
Posts: 8785
Programming + Glam Metal + Tae Kwon Do = Me
Re: Cross-platform & language HBITMAP and SetParent analog
«
Reply #1 on:
January 20, 2015, 01:06:40 pm »
Use LCL handle (TControl / TWinControl) instead, it's cross widgetset already.
Logged
Follow this if you want me to answer:
http://wiki.lazarus.freepascal.org/Lazarus_Faq#What_is_the_correct_way_to_ask_questions_in_the_forum.3F
http://pascalgeek.blogspot.com
https://bitbucket.org/leledumbo
https://github.com/leledumbo
Code first, think later - Natural programmer B)
Человек_Борща
New Member
Posts: 33
Re: Cross-platform & language HBITMAP and SetParent analog
«
Reply #2 on:
January 20, 2015, 03:38:53 pm »
hm.. yep. But it broke all cross-language features. C++ programmer can't use TContol
Logged
With best regards, Alexandr.
_
OS: Windows 8.1 x64 / Ubuntu 14.02 x64
IDE: CodeTyphon 5.4 (win32-win64/win64) / FPC 3.1.1
Leledumbo
Hero Member
Posts: 8785
Programming + Glam Metal + Tae Kwon Do = Me
Re: Cross-platform & language HBITMAP and SetParent analog
«
Reply #3 on:
January 20, 2015, 06:16:55 pm »
Choose one: cross widgetset or cross language, unless you want the C++ part to use LCL as well (feel free to complete LCL Bindings). If you choose cross language anyway, you will have to use damn ifdef for all widgetsets you want to use. Plus, not all backend uses multi-handle design, so a control doesn't always have a handle depending on the backend.
Logged
Follow this if you want me to answer:
http://wiki.lazarus.freepascal.org/Lazarus_Faq#What_is_the_correct_way_to_ask_questions_in_the_forum.3F
http://pascalgeek.blogspot.com
https://bitbucket.org/leledumbo
https://github.com/leledumbo
Code first, think later - Natural programmer B)
zeljko
Hero Member
Posts: 1692
Re: Cross-platform & language HBITMAP and SetParent analog
«
Reply #4 on:
March 16, 2015, 10:45:36 am »
Gtk2 returns PGtkWidget (so that's original gtk2 lib handle).
Qt,gtk3,carbon,cocoa: returns TObject, eg. qt returns TQtWidget() and you can access qt lib handle with TQtWidget(Handle).Widget. Same applies for gtk3,carbon and cocoa.
Logged
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Forum
»
Programming
»
Operating Systems
»
Cross-platform & language HBITMAP and SetParent analog
TinyPortal
© 2005-2018