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
Forum Rules
About donations (wiki)
Bookstore
Computer Math and Games in Pascal
(preview)
Lazarus Handbook
Search
Advanced search
Recent
Strings in Free Pascal: I...
by
Thaddy
[
Today
at 10:15:00 am]
What's wrong with my appl...
by
Thaddy
[
Today
at 09:49:16 am]
Very simple Style Manager...
by
sgj
[
Today
at 09:29:05 am]
Cross Compile for Dos on ...
by
Thaddy
[
Today
at 09:19:24 am]
IStringList...
by
Thaddy
[
Today
at 08:17:55 am]
AdvancedHTTPServer: A Go-...
by
egsuh
[
Today
at 06:25:59 am]
Unit decfloat
by
srvaldez
[
Today
at 12:14:43 am]
Access violation during d...
by
Martin_fr
[January 19, 2026, 08:02:11 pm]
Adjacent rectangles not a...
by
jamie
[January 19, 2026, 06:21:09 pm]
Developing FreePascal on ...
by
HKPhysicist
[January 19, 2026, 03:53:13 pm]
Assigning firebird file n...
by
egsuh
[January 19, 2026, 10:18:22 am]
Postgres, ZEOS and Visual...
by
Thaddy
[January 19, 2026, 07:00:03 am]
Feature announcement: Fun...
by
Thaddy
[January 19, 2026, 06:55:15 am]
[SOLVED] Strange behavior...
by
jamie
[January 19, 2026, 12:08:12 am]
ThemeServices.OnThemeChan...
by
sgj
[January 18, 2026, 10:37:32 pm]
AVRPascal – free code edi...
by
ackarwow
[January 18, 2026, 10:18:12 pm]
help implementing frexp
by
srvaldez
[January 18, 2026, 09:25:07 pm]
my implementation of frex...
by
srvaldez
[January 18, 2026, 06:27:39 pm]
Rolling releases Lazarus[...
by
Martin_fr
[January 18, 2026, 04:37:42 pm]
Question about optimizer ...
by
PascalDragon
[January 18, 2026, 04:01:54 pm]
How to set the Excel cell...
by
dodgex
[January 18, 2026, 02:06:25 pm]
PeaZip project turns 20 t...
by
JanRoza
[January 18, 2026, 01:57:46 pm]
How to implement multiple...
by
bills
[January 18, 2026, 01:26:29 pm]
RPNCalc in Lazarus
by
jwdietrich
[January 18, 2026, 12:13:43 pm]
Is this Pascal Compiler t...
by
HKPhysicist
[January 18, 2026, 11:11:59 am]
« previous
next »
Print
Pages: [
1
]
Author
Topic: Cross-platform & language HBITMAP and SetParent analog (Read 6505 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: 8835
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: 8835
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: 1822
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