Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Hanging objects on Splitter Bars
#1
Hi Gintaras,

I was wondering the best way to hang objects on splitter bars - either simple icons or bmp's (like an up/down arrow icon) or actual functional buttons. I can manage their location with the intrinsic stickiness of the qmsplitter bar or can get the location of the qm splitter bar and then mov the object in a timer loop. Either way, though I get a lot of bleeding of the object and it eventually limits the excursion of the splitter bar. Any ideas?
Thanks!!!,
S

Function dlg_splitter_with_icon
Code:
Copy      Help
\Dialog_Editor

;dialog with splitter and icon on splitter.

str controls = "5 3 4"
str si5 lb3 e4

si5 = "$qm$\properties.ico"
if(!ShowDialog("dlg_splitter_with_icon" 0 &controls)) ret
;if error, forgot to run function InitSplitter

;BEGIN DIALOG
;0 "" 0x90C80AC8 0x0 0 0 225 180 "Dialog"
;5 Static 0x50000003 0x0 98 64 16 16 ""
;3 ListBox 0x54230101 0x200 4 4 216 53 ""
;4 Edit 0x54231044 0x200 4 80 216 54 ""
;1 Button 0x54030001 0x4 112 158 48 14 "OK"
;2 Button 0x54030000 0x4 164 158 48 14 "Cancel"
;6 QM_Splitter 0x54000000 0x0 4 56 216 24 ""
;END DIALOG
;DIALOG EDITOR: "" 0x2030502 "*" "" "" ""
#2
Try SetParent to change eg icon control parent from dialog to splitter.


Forum Jump:


Users browsing this thread: 1 Guest(s)