Jump to content

Several fonts in one label or edit?

Recommended Posts

I am trying to find out how to put multiple fonts definitions in one edit or label control.

The normal update function updates the whole control.

In short how to format text within one control.

I haven't found it in the manual does anyone know a way?

Link to post
Share on other sites

Is not you there not average to deviate the functions principal ??

If I takes an example of GUI of CyberSlug, and that I deviate it towards controls :

#include <GUIConstants.au3>
GUICreate("My Gui", 200, 200, -1, -1)
Dim $gui_parent_control, $gui_child_control, $gui_child2_control
$gui_parent_control = GUICtrlCreateLabel("", 10, 10, 180, 180)
$gui_child_control = GUICtrlCreateLabel("My text", 15, 15, 50, 40, -1, $gui_parent_control)
    GUICtrlSetFont(-1, 9, 400, 4, "Tahoma")
$gui_child_control = GUICtrlCreateLabel("My second text", 80, 15, 100, 100, -1, $gui_parent_control)
    GUICtrlSetFont(-1, 14, 600, 2, "Comic sans MS")

While 1
    $msg = GUIGetMsg()
    If $msg = $GUI_EVENT_CLOSE Then ExitLoop

Unfortunately that does not function [correctly] (I am newbie on inclusion, sorry).

Could that by taking example there above function ? (with modification with the Style & Parent ?!)

Edited by Groumphy

----------------------GroumphyMore information about me [Fr]

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...