05-18-2013, 03:54 AM
Sets an user-defined function to be called to draw on a control in a dialog or other window.
Draw on a control
|
05-18-2013, 03:54 AM
Sets an user-defined function to be called to draw on a control in a dialog or other window.
05-18-2013, 07:50 PM
Thanks, works great for the icons!!! I couldn't however, understand how to use the example to change the vertical splitter into a horizontal splitter with updown arrows. The marlett character "v" for up/down arrows is great but I couldn't get it to size right. with the TextOutW definition of "dll gdi32 #TextOutW hdc x y @*lpString c". For some reason, it was getting extremely large or small when I put variable or absolute integer values in for x and y depending on the size and height/width of the splitter bar.
Thanks though for an amazing UI element. Stuart
05-19-2013, 01:19 AM
Hi Gintaras,
I am trying to use this function in an executable therefore the icon I refer to will need resource id. Unfortunately, if I include a resource id in the filepath for the icon, it fails to appear when I run the dialog: Is there a way to get this into an executable? S
05-19-2013, 04:41 AM
Now added code for horizontal splitter too.
Can be GetFileIcon(":5 $qm$\cut.ico")
05-23-2013, 12:17 AM
many many thanks Gintaras!
S
10-28-2013, 01:07 PM
Hi Gintaras,
This is probably figure-out-able from what you have in the section and examples but I am still having trouble. I would like to give a color to both the background dialog and the splitter. Perhaps same perhaps different. To give dialog background color, I use this: If there was a way to similarly assign color to this element, that would be great. I guess if it was transparent, it would take the background color but still be grab-able? I see that this may be relevant but not yet sure how to implement: Not sure what this would do with any draw-on-controls. Thanks for any help! S
10-28-2013, 02:03 PM
Example with 3 splitters. Vertical transparent, horizontal yellow, vertical with arrows and icon.
Function Dialog137 \Dialog_Editor
10-28-2013, 04:01 PM
weird, example not working in installed or portable versions of QM editor. - splitters remain standard default color.
Will try later to put it into my specific code. S
10-28-2013, 04:23 PM
Maybe you have older splitters version...
10-28-2013, 04:28 PM
Yes, updated now.
Resizable dialog, resizable controls, splitters
10-28-2013, 04:36 PM
yes that was the problem. I just redownloaded from forum archive and works fine. Thanks!!!!, S
|
« Next Oldest | Next Newest »
|